Optionaloptions: IRequestOptionsStatic ReadonlyRESOURCE_Project ID or project name
The ID of the build.
The tag to add.
Adds tags to a build.
The tags to add. Request body is composed directly from listed tags.
Project ID or project name
The ID of the build.
Adds a tag to a definition
Project ID or project name
The ID of the definition.
The tag to add.
Adds multiple tags to a definition.
The tags to add.
Project ID or project name
The ID of the definition.
Adds new leases for pipeline runs.
Project ID or project name
Project ID or project name
Project ID or project name
OptionalapiVersion: stringAssociates an artifact with a build.
The artifact.
Project ID or project name
The ID of the build.
Creates a new definition.
The definition.
Project ID or project name
OptionaldefinitionToCloneId: numberOptionaldefinitionToCloneRevision: numberOptionalapiVersion: stringDeletes a build.
Project ID or project name
The ID of the build.
Removes a tag from a build. NOTE: This API will not work for tags with special characters. To remove tags with special characters, use the PATCH method instead (in 6.0+)
Project ID or project name
The ID of the build.
The tag to remove.
Deletes a definition and all associated builds.
Project ID or project name
The ID of the definition.
Removes a tag from a definition. NOTE: This API will not work for tags with special characters. To remove tags with special characters, use the PATCH method instead (in 6.0+)
Project ID or project name
The ID of the definition.
The tag to remove.
Deletes a definition folder. Definitions and their corresponding builds will also be deleted.
Project ID or project name
The full path to the folder.
Removes specific retention leases.
Project ID or project name
Removes a tag from builds, definitions, and from the tag store
Project ID or project name
The tag to remove.
Deletes a build definition template.
Project ID or project name
The ID of the template.
Gets a specific artifact for a build.
Project ID or project name
The ID of the build.
The name of the artifact.
Gets a specific artifact for a build.
Project ID or project name
The ID of the build.
The name of the artifact.
Gets all artifacts for a build.
Project ID or project name
The ID of the build.
Gets a specific attachment.
Project ID or project name
The ID of the build.
The ID of the timeline.
The ID of the timeline record.
The type of the attachment.
The name of the attachment.
Gets the list of attachments of a specific type that are associated with a build.
Project ID or project name
The ID of the build.
The type of attachment.
Gets a badge that indicates the status of the most recent build for a definition. Note that this API is deprecated. Prefer StatusBadgeController.GetStatusBadge.
The project ID or name.
The ID of the definition.
OptionalbranchName: stringThe name of the branch.
Gets a build
Project ID or project name
OptionalpropertyFilters: stringGets a badge that indicates the status of the most recent build for the specified branch.
Project ID or project name
The repository type.
OptionalrepoId: stringThe repository ID.
OptionalbranchName: stringThe branch name.
Gets a badge that indicates the status of the most recent build for the specified branch.
Project ID or project name
The repository type.
OptionalrepoId: stringThe repository ID.
OptionalbranchName: stringThe branch name.
Gets controller, optionally filtered by name
Optionalname: stringGets pipeline general settings.
Project ID or project name
Gets an individual log file for a build.
Project ID or project name
The ID of the build.
The ID of the log file.
OptionalstartLine: numberThe start line.
OptionalendLine: numberThe end line.
Gets an individual log file for a build.
Project ID or project name
The ID of the build.
The ID of the log file.
OptionalstartLine: numberThe start line.
OptionalendLine: numberThe end line.
Gets the logs for a build.
Project ID or project name
The ID of the build.
Gets the logs for a build.
Project ID or project name
The ID of the build.
Gets an individual log file for a build.
Project ID or project name
The ID of the build.
The ID of the log file.
OptionalstartLine: numberThe start line.
OptionalendLine: numberThe end line.
Gets all build definition options supported by the system.
Optionalproject: stringProject ID or project name
Gets properties for a build.
Project ID or project name
The ID of the build.
Optionalfilter: string[]A comma-delimited list of properties. If specified, filters to these specific properties.
Gets a build report.
Project ID or project name
The ID of the build.
Optionaltype: stringGets a list of builds.
Project ID or project name
Optionaldefinitions: number[]A comma-delimited list of definition IDs. If specified, filters to builds for these definitions.
Optionalqueues: number[]A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues.
OptionalbuildNumber: stringIf specified, filters to builds that match this build number. Append * to do a prefix search.
OptionalminTime: DateIf specified, filters to builds that finished/started/queued after this date based on the queryOrder specified.
OptionalmaxTime: DateIf specified, filters to builds that finished/started/queued before this date based on the queryOrder specified.
OptionalrequestedFor: stringIf specified, filters to builds requested for the specified user.
OptionalreasonFilter: BuildReasonIf specified, filters to builds that match this reason.
OptionalstatusFilter: BuildStatusIf specified, filters to builds that match this status.
OptionalresultFilter: BuildResultIf specified, filters to builds that match this result.
OptionaltagFilters: string[]A comma-delimited list of tags. If specified, filters to builds that have the specified tags.
Optionalproperties: string[]A comma-delimited list of properties to retrieve.
Optionaltop: numberThe maximum number of builds to return.
OptionalcontinuationToken: stringA continuation token, returned by a previous call to this method, that can be used to return the next set of builds.
OptionalmaxBuildsPerDefinition: numberThe maximum number of builds to return per definition.
OptionaldeletedFilter: QueryDeletedOptionIndicates whether to exclude, include, or only return deleted builds.
OptionalqueryOrder: BuildQueryOrderThe order in which builds should be returned.
OptionalbranchName: stringIf specified, filters to builds that built branches that built this branch.
OptionalbuildIds: number[]A comma-delimited list that specifies the IDs of builds to retrieve.
OptionalrepositoryId: stringIf specified, filters to builds that built from this repository.
OptionalrepositoryType: stringIf specified, filters to builds that built from repositories of this type.
Gets the build settings.
Optionalproject: stringProject ID or project name
Gets the tags for a build.
Project ID or project name
The ID of the build.
Gets details for a build
Project ID or project name
OptionaltimelineId: stringOptionalchangeId: numberOptionalplanId: stringGets the work items associated with a build. Only work items in the same project are returned.
Project ID or project name
The ID of the build.
Optionaltop: numberThe maximum number of work items to return.
Gets the work items associated with a build, filtered to specific commits.
A comma-delimited list of commit IDs.
Project ID or project name
The ID of the build.
Optionaltop: numberThe maximum number of work items to return, or the number of commits to consider if no commit IDs are specified.
Gets the changes made to the repository between two given builds.
Project ID or project name
OptionalfromBuildId: numberThe ID of the first build.
OptionaltoBuildId: numberThe ID of the last build.
Optionaltop: numberThe maximum number of changes to return.
Gets a definition, optionally at a specific revision.
Project ID or project name
The ID of the definition.
Optionalrevision: numberThe revision number to retrieve. If this is not specified, the latest version will be returned.
OptionalminMetricsTime: DateIf specified, indicates the date from which metrics should be included.
OptionalpropertyFilters: string[]A comma-delimited list of properties to include in the results.
OptionalincludeLatestBuilds: booleanGets build metrics for a definition.
Project ID or project name
The ID of the definition.
OptionalminMetricsTime: DateThe date from which to calculate metrics.
Gets properties for a definition.
Project ID or project name
The ID of the definition.
Optionalfilter: string[]A comma-delimited list of properties. If specified, filters to these specific properties.
Project ID or project name
Gets all revisions of a definition.
Project ID or project name
The ID of the definition.
Gets a list of definitions.
Project ID or project name
Optionalname: stringIf specified, filters to definitions whose names match this pattern.
OptionalrepositoryId: stringA repository ID. If specified, filters to definitions that use this repository.
OptionalrepositoryType: stringIf specified, filters to definitions that have a repository of this type.
OptionalqueryOrder: DefinitionQueryOrderIndicates the order in which definitions should be returned.
Optionaltop: numberThe maximum number of definitions to return.
OptionalcontinuationToken: stringA continuation token, returned by a previous call to this method, that can be used to return the next set of definitions.
OptionalminMetricsTime: DateIf specified, indicates the date from which metrics should be included.
OptionaldefinitionIds: number[]A comma-delimited list that specifies the IDs of definitions to retrieve.
Optionalpath: stringIf specified, filters to definitions under this folder.
OptionalbuiltAfter: DateIf specified, filters to definitions that have builds after this date.
OptionalnotBuiltAfter: DateIf specified, filters to definitions that do not have builds after this date.
OptionalincludeAllProperties: booleanIndicates whether the full definitions should be returned. By default, shallow representations of the definitions are returned.
OptionalincludeLatestBuilds: booleanIndicates whether to return the latest and latest completed builds for this definition.
OptionaltaskIdFilter: stringIf specified, filters to definitions that use the specified task.
OptionalprocessType: numberIf specified, filters to definitions with the given process type.
OptionalyamlFilename: stringIf specified, filters to YAML definitions that match the given filename. To use this filter includeAllProperties should be set to true
Gets the tags for a definition.
Project ID or project name
The ID of the definition.
Optionalrevision: numberThe definition revision number. If not specified, uses the latest revision of the definition.
Converts a definition to YAML, optionally at a specific revision.
Project ID or project name
The ID of the definition.
Optionalrevision: numberThe revision number to retrieve. If this is not specified, the latest version will be returned.
OptionalminMetricsTime: DateIf specified, indicates the date from which metrics should be included.
OptionalpropertyFilters: string[]A comma-delimited list of properties to include in the results.
OptionalincludeLatestBuilds: booleanGets a file from the build.
Project ID or project name
The ID of the build.
The name of the artifact.
The primary key for the file.
The name that the file will be set to.
Gets the contents of a file in the given source code repository.
Project ID or project name
The name of the source provider.
OptionalserviceEndpointId: stringIf specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
Optionalrepository: stringIf specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories.
OptionalcommitOrBranch: stringThe identifier of the commit or branch from which a file's contents are retrieved.
Optionalpath: stringThe path to the file to retrieve, relative to the root of the repository.
Gets a list of build definition folders.
Project ID or project name
Optionalpath: stringThe path to start with.
OptionalqueryOrder: FolderQueryOrderThe order in which folders should be returned.
Gets the latest build for a definition, optionally scoped to a specific branch.
Project ID or project name
definition name with optional leading folder path, or the definition id
OptionalbranchName: stringoptional parameter that indicates the specific branch to use. If not specified, the default branch is used.
Gets the contents of a directory in the given source code repository.
Project ID or project name
The name of the source provider.
OptionalserviceEndpointId: stringIf specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
Optionalrepository: stringIf specified, the vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories.
OptionalcommitOrBranch: stringThe identifier of the commit or branch from which a file's contents are retrieved.
Optionalpath: stringThe path contents to list, relative to the root of the repository.
Gets build metrics for a project.
Project ID or project name
OptionalmetricAggregationType: stringThe aggregation type to use (hourly, daily).
OptionalminMetricsTime: DateThe date from which to calculate metrics.
Project ID or project name
Optionaltype: stringOptionalid: stringGets a pull request object from source provider.
Project ID or project name
The name of the source provider.
Vendor-specific id of the pull request.
OptionalrepositoryId: stringVendor-specific identifier or the name of the repository that contains the pull request.
OptionalserviceEndpointId: stringIf specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
Gets information about build resources in the system.
Returns the retention history for the project collection. This includes pipelines that have custom retention rules that may prevent the retention job from cleaning them up, runs per pipeline with retention type, files associated with pipelines owned by the collection with retention type, and the number of files per pipeline.
OptionaldaysToLookback: numberReturns the details of the retention lease given a lease id.
Project ID or project name
Returns any leases matching the specified MinimalRetentionLeases
Project ID or project name
List of JSON-serialized MinimalRetentionLeases separated by '|'
Returns any leases owned by the specified entity, optionally scoped to a single pipeline definition and run.
Project ID or project name
OptionalownerId: stringOptionaldefinitionId: numberAn optional parameter to limit the search to a specific pipeline definition.
OptionalrunId: numberAn optional parameter to limit the search to a single pipeline run. Requires definitionId.
Returns any leases owned by the specified user, optionally scoped to a single pipeline definition and run.
Project ID or project name
The user id to search for.
OptionaldefinitionId: numberAn optional parameter to limit the search to a specific pipeline definition.
OptionalrunId: numberAn optional parameter to limit the search to a single pipeline run. Requires definitionId.
Gets all retention leases that apply to a specific build.
Project ID or project name
The ID of the build.
Gets the project's retention settings.
Project ID or project name
Gets the build status for a definition, optionally scoped to a specific branch, stage, job, and configuration.
If there are more than one, then it is required to pass in a stageName value when specifying a jobName, and the same rule then applies for both if passing a configuration parameter.
Project ID or project name
Either the definition name with optional leading folder path, or the definition id.
OptionalbranchName: stringOnly consider the most recent build for this branch. If not specified, the default branch is used.
OptionalstageName: stringUse this stage within the pipeline to render the status.
OptionaljobName: stringUse this job within a stage of the pipeline to render the status.
Optionalconfiguration: stringUse this job configuration to render the status
Optionallabel: stringReplaces the default text on the left side of the badge.
Gets a list of all build tags in the project.
Project ID or project name
Gets a specific build definition template.
Project ID or project name
The ID of the requested template.
Gets all definition templates.
Project ID or project name
Gets all the work items between two builds.
Project ID or project name
The ID of the first build.
The ID of the last build.
Optionaltop: numberThe maximum number of work items to return.
Gets a list of branches for the given source code repository.
Project ID or project name
The name of the source provider.
OptionalserviceEndpointId: stringIf specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
Optionalrepository: stringThe vendor-specific identifier or the name of the repository to get branches. Can only be omitted for providers that do not support multiple repositories.
OptionalbranchName: stringIf supplied, the name of the branch to check for specifically.
Gets a list of source code repositories.
Project ID or project name
The name of the source provider.
OptionalserviceEndpointId: stringIf specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
Optionalrepository: stringIf specified, the vendor-specific identifier or the name of a single repository to get.
OptionalresultSet: ResultSet'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set.
OptionalpageResults: booleanIf set to true, this will limit the set of results and will return a continuation token to continue the query.
OptionalcontinuationToken: stringWhen paging results, this is a continuation token, returned by a previous call to this method, that can be used to return the next set of repositories.
Get a list of source providers and their capabilities.
Project ID or project name
Gets a list of webhooks installed in the given source code repository.
Project ID or project name
The name of the source provider.
OptionalserviceEndpointId: stringIf specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
Optionalrepository: stringIf specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.
Queues a build
Project ID or project name
OptionalignoreWarnings: booleanOptionalcheckInTicket: stringOptionalsourceBuildId: numberOptionaldefinitionId: numberOptional definition id to queue a build without a body. Ignored if there's a valid body
Restores a deleted definition
Project ID or project name
The identifier of the definition to restore.
When false, restores a deleted definition.
Recreates the webhooks for the specified triggers in the given source code repository.
The types of triggers to restore webhooks for.
Project ID or project name
The name of the source provider.
OptionalserviceEndpointId: stringIf specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.
Optionalrepository: stringIf specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.
Updates an existing build definition template.
The new version of the template.
Project ID or project name
The ID of the template.
Updates pipeline general settings.
Project ID or project name
Updates properties for a build.
A json-patch document describing the properties to update.
Project ID or project name
The ID of the build.
Updates the build settings.
The new settings.
Optionalproject: stringProject ID or project name
Adds/Removes tags from a build.
The tags to add/remove.
Project ID or project name
The ID of the build.
Updates an existing build definition. In order for this operation to succeed, the value of the "Revision" property of the request body must match the existing build definition's. It is recommended that you obtain the existing build definition by using GET, modify the build definition as necessary, and then submit the modified definition with PUT.
The new version of the definition. Its "Revision" property must match the existing definition for the update to be accepted.
Project ID or project name
The ID of the definition.
OptionalsecretsSourceDefinitionId: numberOptionalsecretsSourceDefinitionRevision: numberUpdates properties for a definition.
A json-patch document describing the properties to update.
Project ID or project name
The ID of the definition.
Adds/Removes tags from a definition.
The tags to add/remove.
Project ID or project name
The ID of the definition.
Updates the duration or pipeline protection status of a retention lease.
The new data for the retention lease.
Project ID or project name
The ID of the lease to update.
Updates the project's retention settings.
Project ID or project name
Update a build stage
Optionalproject: stringProject ID or project name
Adds a tag to a build.