Optional
options: IRequestOptionsStatic
Readonly
RESOURCE_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
Optional
apiVersion: 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
Optional
definitionToCloneId: numberOptional
definitionToCloneRevision: numberOptional
apiVersion: 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.
Optional
branchName: stringThe name of the branch.
Gets a build
Project ID or project name
Optional
propertyFilters: stringGets a badge that indicates the status of the most recent build for the specified branch.
Project ID or project name
The repository type.
Optional
repoId: stringThe repository ID.
Optional
branchName: 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.
Optional
repoId: stringThe repository ID.
Optional
branchName: stringThe branch name.
Gets controller, optionally filtered by name
Optional
name: 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.
Optional
startLine: numberThe start line.
Optional
endLine: 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.
Optional
startLine: numberThe start line.
Optional
endLine: 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.
Optional
startLine: numberThe start line.
Optional
endLine: numberThe end line.
Gets all build definition options supported by the system.
Optional
project: stringProject ID or project name
Gets properties for a build.
Project ID or project name
The ID of the build.
Optional
filter: 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.
Optional
type: stringGets a list of builds.
Project ID or project name
Optional
definitions: number[]A comma-delimited list of definition IDs. If specified, filters to builds for these definitions.
Optional
queues: number[]A comma-delimited list of queue IDs. If specified, filters to builds that ran against these queues.
Optional
buildNumber: stringIf specified, filters to builds that match this build number. Append * to do a prefix search.
Optional
minTime: DateIf specified, filters to builds that finished/started/queued after this date based on the queryOrder specified.
Optional
maxTime: DateIf specified, filters to builds that finished/started/queued before this date based on the queryOrder specified.
Optional
requestedFor: stringIf specified, filters to builds requested for the specified user.
Optional
reasonFilter: BuildReasonIf specified, filters to builds that match this reason.
Optional
statusFilter: BuildStatusIf specified, filters to builds that match this status.
Optional
resultFilter: BuildResultIf specified, filters to builds that match this result.
Optional
tagFilters: string[]A comma-delimited list of tags. If specified, filters to builds that have the specified tags.
Optional
properties: string[]A comma-delimited list of properties to retrieve.
Optional
top: numberThe maximum number of builds to return.
Optional
continuationToken: stringA continuation token, returned by a previous call to this method, that can be used to return the next set of builds.
Optional
maxBuildsPerDefinition: numberThe maximum number of builds to return per definition.
Optional
deletedFilter: QueryDeletedOptionIndicates whether to exclude, include, or only return deleted builds.
Optional
queryOrder: BuildQueryOrderThe order in which builds should be returned.
Optional
branchName: stringIf specified, filters to builds that built branches that built this branch.
Optional
buildIds: number[]A comma-delimited list that specifies the IDs of builds to retrieve.
Optional
repositoryId: stringIf specified, filters to builds that built from this repository.
Optional
repositoryType: stringIf specified, filters to builds that built from repositories of this type.
Gets the build settings.
Optional
project: 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
Optional
timelineId: stringOptional
changeId: numberOptional
planId: 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.
Optional
top: 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.
Optional
top: 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
Optional
fromBuildId: numberThe ID of the first build.
Optional
toBuildId: numberThe ID of the last build.
Optional
top: 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.
Optional
revision: numberThe revision number to retrieve. If this is not specified, the latest version will be returned.
Optional
minMetricsTime: DateIf specified, indicates the date from which metrics should be included.
Optional
propertyFilters: string[]A comma-delimited list of properties to include in the results.
Optional
includeLatestBuilds: booleanGets build metrics for a definition.
Project ID or project name
The ID of the definition.
Optional
minMetricsTime: DateThe date from which to calculate metrics.
Gets properties for a definition.
Project ID or project name
The ID of the definition.
Optional
filter: 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
Optional
name: stringIf specified, filters to definitions whose names match this pattern.
Optional
repositoryId: stringA repository ID. If specified, filters to definitions that use this repository.
Optional
repositoryType: stringIf specified, filters to definitions that have a repository of this type.
Optional
queryOrder: DefinitionQueryOrderIndicates the order in which definitions should be returned.
Optional
top: numberThe maximum number of definitions to return.
Optional
continuationToken: stringA continuation token, returned by a previous call to this method, that can be used to return the next set of definitions.
Optional
minMetricsTime: DateIf specified, indicates the date from which metrics should be included.
Optional
definitionIds: number[]A comma-delimited list that specifies the IDs of definitions to retrieve.
Optional
path: stringIf specified, filters to definitions under this folder.
Optional
builtAfter: DateIf specified, filters to definitions that have builds after this date.
Optional
notBuiltAfter: DateIf specified, filters to definitions that do not have builds after this date.
Optional
includeAllProperties: booleanIndicates whether the full definitions should be returned. By default, shallow representations of the definitions are returned.
Optional
includeLatestBuilds: booleanIndicates whether to return the latest and latest completed builds for this definition.
Optional
taskIdFilter: stringIf specified, filters to definitions that use the specified task.
Optional
processType: numberIf specified, filters to definitions with the given process type.
Optional
yamlFilename: 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.
Optional
revision: 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.
Optional
revision: numberThe revision number to retrieve. If this is not specified, the latest version will be returned.
Optional
minMetricsTime: DateIf specified, indicates the date from which metrics should be included.
Optional
propertyFilters: string[]A comma-delimited list of properties to include in the results.
Optional
includeLatestBuilds: 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.
Optional
serviceEndpointId: 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.
Optional
repository: 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.
Optional
commitOrBranch: stringThe identifier of the commit or branch from which a file's contents are retrieved.
Optional
path: 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
Optional
path: stringThe path to start with.
Optional
queryOrder: 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
Optional
branchName: 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.
Optional
serviceEndpointId: 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.
Optional
repository: 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.
Optional
commitOrBranch: stringThe identifier of the commit or branch from which a file's contents are retrieved.
Optional
path: stringThe path contents to list, relative to the root of the repository.
Gets build metrics for a project.
Project ID or project name
Optional
metricAggregationType: stringThe aggregation type to use (hourly, daily).
Optional
minMetricsTime: DateThe date from which to calculate metrics.
Project ID or project name
Optional
type: stringOptional
id: 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.
Optional
repositoryId: stringVendor-specific identifier or the name of the repository that contains the pull request.
Optional
serviceEndpointId: 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.
Optional
daysToLookback: 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
Optional
ownerId: stringOptional
definitionId: numberAn optional parameter to limit the search to a specific pipeline definition.
Optional
runId: 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.
Optional
definitionId: numberAn optional parameter to limit the search to a specific pipeline definition.
Optional
runId: 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.
Optional
branchName: stringOnly consider the most recent build for this branch. If not specified, the default branch is used.
Optional
stageName: stringUse this stage within the pipeline to render the status.
Optional
jobName: stringUse this job within a stage of the pipeline to render the status.
Optional
configuration: stringUse this job configuration to render the status
Optional
label: 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.
Optional
top: 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.
Optional
serviceEndpointId: 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.
Optional
repository: 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.
Optional
branchName: 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.
Optional
serviceEndpointId: 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.
Optional
repository: stringIf specified, the vendor-specific identifier or the name of a single repository to get.
Optional
resultSet: ResultSet'top' for the repositories most relevant for the endpoint. If not set, all repositories are returned. Ignored if 'repository' is set.
Optional
pageResults: booleanIf set to true, this will limit the set of results and will return a continuation token to continue the query.
Optional
continuationToken: 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.
Optional
serviceEndpointId: 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.
Optional
repository: 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
Optional
ignoreWarnings: booleanOptional
checkInTicket: stringOptional
sourceBuildId: numberOptional
definitionId: 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.
Optional
serviceEndpointId: 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.
Optional
repository: 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.
Optional
project: 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.
Optional
secretsSourceDefinitionId: numberOptional
secretsSourceDefinitionRevision: 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
Optional
project: stringProject ID or project name
Adds a tag to a build.