Hierarchy (View Summary)

Implements

Constructors

Properties

Methods

addDefinitionTag addDefinitionTags addReleaseTag addReleaseTags createAcceptHeader createDefinitionEnvironmentTemplate createFavorites createFolder createRelease createReleaseDefinition createRequestOptions deleteDefinitionEnvironmentTemplate deleteDefinitionTag deleteFavorites deleteFolder deleteRelease deleteReleaseDefinition deleteReleaseTag formatResponse getAgentArtifactDefinitions getApproval getApprovalHistory getApprovals getArtifactTypeDefinitions getArtifactVersions getArtifactVersionsForSources getAutoTriggerIssues getDefinitionEnvironments getDefinitionEnvironmentTemplate getDefinitionRevision getDefinitionTags getDeploymentBadge getDeployments getDeploymentsForMultipleEnvironments getFavorites getFlightAssignments getFolders getGateLog getInputValues getIssues getLog getLogs getManualIntervention getManualInterventions getMetrics getOrgPipelineReleaseSettings getPipelineReleaseSettings getRelease getReleaseChanges getReleaseDefinition getReleaseDefinitionHistory getReleaseDefinitionRevision getReleaseDefinitions getReleaseDefinitionSummary getReleaseEnvironment getReleaseHistory getReleaseProjects getReleaseRevision getReleases getReleaseSettings getReleaseTags getReleaseTaskAttachmentContent getReleaseTaskAttachments getReleaseWorkItemsRefs getSourceBranches getSummaryMailSections getTags getTaskAttachmentContent getTaskAttachments getTaskLog getTaskLog2 getTasks getTasks2 getTasksForTaskGroup listDefinitionEnvironmentTemplates sendSummaryMail undeleteRelease undeleteReleaseDefinition undeleteReleaseDefinitionEnvironmentTemplate updateFolder updateGates updateManualIntervention updateOrgPipelineReleaseSettings updatePipelineReleaseSettings updateRelease updateReleaseApproval updateReleaseApprovals updateReleaseDefinition updateReleaseEnvironment updateReleaseResource updateReleaseSettings

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "efc2f575-36ef-48e9-b672-0c6fb4a48ac5"

Methods

  • Parameters

    • project: string

      Project ID or project name

    • scope: string
    • OptionalidentityId: string
    • OptionalfavoriteItemIds: string

    Returns Promise<void>

  • Deletes a definition folder for given folder name and path and all it's existing definitions.

    Parameters

    • project: string

      Project ID or project name

    • path: string

      Path of the folder to delete.

    Returns Promise<void>

  • Soft delete a release

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • Optionalcomment: string

      Comment for deleting a release.

    Returns Promise<void>

  • Delete a release definition.

    Parameters

    • project: string

      Project ID or project name

    • definitionId: number

      Id of the release definition.

    • Optionalcomment: string

      Comment for deleting a release definition.

    • OptionalforceDelete: boolean

      'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'.

    Returns Promise<void>

  • Get a list of approvals

    Parameters

    • project: string

      Project ID or project name

    • OptionalassignedToFilter: string

      Approvals assigned to this user.

    • OptionalstatusFilter: ApprovalStatus

      Approvals with this status. Default is 'pending'.

    • OptionalreleaseIdsFilter: number[]

      Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4.

    • OptionaltypeFilter: ApprovalType

      Approval with this type.

    • Optionaltop: number

      Number of approvals to get. Default is 50.

    • OptionalcontinuationToken: number

      Gets the approvals after the continuation token provided.

    • OptionalqueryOrder: ReleaseQueryOrder

      Gets the results in the defined order of created approvals. Default is 'descending'.

    • OptionalincludeMyGroupApprovals: boolean

      'true' to include my group approvals. Default is 'false'.

    Returns Promise<PagedList<ReleaseApproval>>

  • Get release definition for a given definitionId and revision

    Parameters

    • project: string

      Project ID or project name

    • definitionId: number

      Id of the definition.

    • revision: number

      Id of the revision.

    Returns Promise<ReadableStream>

  • Gets a badge that indicates the status of the most recent deployment for an environment.

    Parameters

    • projectId: string

      The ID of the Project.

    • releaseDefinitionId: number

      The ID of the Release Definition.

    • environmentId: number

      The ID of the Environment.

    • OptionalbranchName: string

      The name of the branch.

    Returns Promise<string>

  • Get a list of deployments

    Parameters

    • project: string

      Project ID or project name

    • OptionaldefinitionId: number

      List the deployments for a given definition id.

    • OptionaldefinitionEnvironmentId: number

      List the deployments for a given definition environment id.

    • OptionalcreatedBy: string

      List the deployments for which deployments are created as identity specified.

    • OptionalminModifiedTime: Date

      List the deployments with LastModified time >= minModifiedTime.

    • OptionalmaxModifiedTime: Date

      List the deployments with LastModified time <= maxModifiedTime.

    • OptionaldeploymentStatus: DeploymentStatus

      List the deployments with given deployment status. Defult is 'All'.

    • OptionaloperationStatus: DeploymentOperationStatus

      List the deployments with given operation status. Default is 'All'.

    • OptionallatestAttemptsOnly: boolean

      'true' to include deployments with latest attempt only. Default is 'false'.

    • OptionalqueryOrder: ReleaseQueryOrder

      List the deployments with given query order. Default is 'Descending'.

    • Optionaltop: number

      List the deployments with given top. Default top is '50' and Max top is '100'.

    • OptionalcontinuationToken: number

      List the deployments with deployment id >= continuationToken.

    • OptionalcreatedFor: string

      List the deployments for which deployments are requested as identity specified.

    • OptionalminStartedTime: Date

      List the deployments with StartedOn time >= minStartedTime.

    • OptionalmaxStartedTime: Date

      List the deployments with StartedOn time <= maxStartedTime.

    • OptionalsourceBranch: string

      List the deployments that are deployed from given branch name.

    Returns Promise<PagedList<Deployment>>

  • Gets gate logs

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of release environment.

    • gateId: number

      Id of the gate.

    • taskId: number

      ReleaseTask Id for the log.

    Returns Promise<ReadableStream>

  • Gets logs

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of release environment.

    • taskId: number

      ReleaseTask Id for the log.

    • OptionalattemptId: number

      Id of the attempt.

    Returns Promise<ReadableStream>

  • Get a Release

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • OptionalapprovalFilters: ApprovalFilters

      A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default

    • OptionalpropertyFilters: string[]

      A comma-delimited list of extended properties to be retrieved. If set, the returned Release will contain values for the specified property Ids (if they exist). If not set, properties will not be included.

    • Optionalexpand: SingleReleaseExpands

      A property that should be expanded in the release.

    • OptionaltopGateRecords: number

      Number of release gate records to get. Default is 5.

    Returns Promise<Release>

  • Parameters

    • project: string

      Project ID or project name

    • releaseId: number
    • OptionalbaseReleaseId: number
    • Optionaltop: number
    • OptionalartifactAlias: string

    Returns Promise<Change[]>

  • Get a release definition.

    Parameters

    • project: string

      Project ID or project name

    • definitionId: number

      Id of the release definition.

    • OptionalpropertyFilters: string[]

      A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definition will contain values for the specified property Ids (if they exist). If not set, properties will not be included.

    Returns Promise<ReleaseDefinition>

  • Get release definition of a given revision.

    Parameters

    • project: string

      Project ID or project name

    • definitionId: number

      Id of the release definition.

    • revision: number

      Revision number of the release definition.

    Returns Promise<ReadableStream>

  • Get a list of release definitions.

    Parameters

    • project: string

      Project ID or project name

    • OptionalsearchText: string

      Get release definitions with names containing searchText.

    • Optionalexpand: ReleaseDefinitionExpands

      The properties that should be expanded in the list of Release definitions.

    • OptionalartifactType: string

      Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild.

    • OptionalartifactSourceId: string

      Release definitions with given artifactSourceId will be returned. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions.

    • Optionaltop: number

      Number of release definitions to get.

    • OptionalcontinuationToken: string

      Gets the release definitions after the continuation token provided.

    • OptionalqueryOrder: ReleaseDefinitionQueryOrder

      Gets the results in the defined order. Default is 'IdAscending'.

    • Optionalpath: string

      Gets the release definitions under the specified path.

    • OptionalisExactNameMatch: boolean

      'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'.

    • OptionaltagFilter: string[]

      A comma-delimited list of tags. Only release definitions with these tags will be returned.

    • OptionalpropertyFilters: string[]

      A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definitions will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release Definition from results irrespective of whether it has property set or not.

    • OptionaldefinitionIdFilter: string[]

      A comma-delimited list of release definitions to retrieve.

    • OptionalisDeleted: boolean

      'true' to get release definitions that has been deleted. Default is 'false'

    • OptionalsearchTextContainsFolderName: boolean

      'true' to get the release definitions under the folder with name as specified in searchText. Default is 'false'.

    Returns Promise<PagedList<ReleaseDefinition>>

  • Get release summary of a given definition Id.

    Parameters

    • project: string

      Project ID or project name

    • definitionId: number

      Id of the definition to get release summary.

    • releaseCount: number

      Count of releases to be included in summary.

    • OptionalincludeArtifact: boolean

      Include artifact details.Default is 'false'.

    • OptionaldefinitionEnvironmentIdsFilter: number[]

    Returns Promise<ReleaseDefinitionSummary>

  • Get release for a given revision number.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • definitionSnapshotRevision: number

      Definition snapshot revision number.

    Returns Promise<ReadableStream>

  • Get a list of releases

    Parameters

    • Optionalproject: string

      Project ID or project name

    • OptionaldefinitionId: number

      Releases from this release definition Id.

    • OptionaldefinitionEnvironmentId: number
    • OptionalsearchText: string

      Releases with names containing searchText.

    • OptionalcreatedBy: string

      Releases created by this user.

    • OptionalstatusFilter: ReleaseStatus

      Releases that have this status.

    • OptionalenvironmentStatusFilter: number
    • OptionalminCreatedTime: Date

      Releases that were created after this time.

    • OptionalmaxCreatedTime: Date

      Releases that were created before this time.

    • OptionalqueryOrder: ReleaseQueryOrder

      Gets the results in the defined order of created date for releases. Default is descending.

    • Optionaltop: number

      Number of releases to get. Default is 50.

    • OptionalcontinuationToken: number

      Gets the releases after the continuation token provided.

    • Optionalexpand: ReleaseExpands

      The property that should be expanded in the list of releases.

    • OptionalartifactTypeId: string

      Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild.

    • OptionalsourceId: string

      Unique identifier of the artifact used. e.g. For build it would be {projectGuid}:{BuildDefinitionId}, for Jenkins it would be {JenkinsConnectionId}:{JenkinsDefinitionId}, for TfsOnPrem it would be {TfsOnPremConnectionId}:{ProjectName}:{TfsOnPremDefinitionId}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions.

    • OptionalartifactVersionId: string

      Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId.

    • OptionalsourceBranchFilter: string

      Releases with given sourceBranchFilter will be returned.

    • OptionalisDeleted: boolean

      Gets the soft deleted releases, if true.

    • OptionaltagFilter: string[]

      A comma-delimited list of tags. Only releases with these tags will be returned.

    • OptionalpropertyFilters: string[]

      A comma-delimited list of extended properties to be retrieved. If set, the returned Releases will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release from results irrespective of whether it has property set or not.

    • OptionalreleaseIdFilter: number[]

      A comma-delimited list of releases Ids. Only releases with these Ids will be returned.

    • Optionalpath: string

      Releases under this folder path will be returned

    Returns Promise<PagedList<Release>>

  • Get a release task attachment.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of the release environment.

    • attemptId: number

      Attempt number of deployment.

    • planId: string

      Plan Id of the deploy phase.

    • timelineId: string

      Timeline Id of the task.

    • recordId: string

      Record Id of attachment.

    • type: string

      Type of the attachment.

    • name: string

      Name of the attachment.

    Returns Promise<ReadableStream>

  • Get the release task attachments.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of the release environment.

    • attemptId: number

      Attempt number of deployment.

    • planId: string

      Plan Id of the deploy phase.

    • type: string

      Type of the attachment.

    Returns Promise<ReleaseTaskAttachment[]>

  • Get a task attachment.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of the release environment.

    • attemptId: number

      Attempt number of deployment.

    • timelineId: string

      Timeline Id of the task.

    • recordId: string

      Record Id of attachment.

    • type: string

      Type of the attachment.

    • name: string

      Name of the attachment.

    Returns Promise<ReadableStream>

  • Get the task attachments.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of the release environment.

    • attemptId: number

      Attempt number of deployment.

    • timelineId: string

      Timeline Id of the task.

    • type: string

      Type of the attachment.

    Returns Promise<ReleaseTaskAttachment[]>

  • Gets the task log of a release as a plain text file.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of release environment.

    • releaseDeployPhaseId: number

      Release deploy phase Id.

    • taskId: number

      ReleaseTask Id for the log.

    • OptionalstartLine: number

      Starting line number for logs

    • OptionalendLine: number

      Ending line number for logs

    Returns Promise<ReadableStream>

  • Gets the task log of a release as a plain text file.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of the release.

    • environmentId: number

      Id of release environment.

    • attemptId: number
    • timelineId: string
    • taskId: number

      ReleaseTask Id for the log.

    • OptionalstartLine: number

      Starting line number for logs

    • OptionalendLine: number

      Ending line number for logs

    Returns Promise<ReadableStream>

  • Undelete a soft deleted release.

    Parameters

    • project: string

      Project ID or project name

    • releaseId: number

      Id of release to be undeleted.

    • comment: string

      Any comment for undeleting.

    Returns Promise<void>