Sdílet prostřednictvím


Releases - Get Release Revision

Získejte verzi pro dané číslo revize.

GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}?definitionSnapshotRevision={definitionSnapshotRevision}&api-version=7.1-preview.8

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
organization
path True

string

Název organizace Azure DevOps.

project
path True

string

ID projektu nebo název projektu

releaseId
path True

integer

int32

ID vydané verze.

api-version
query True

string

Verze rozhraní API, která se má použít. Aby se tato verze rozhraní API používala, měla by být nastavená na 7.1-preview.8.

definitionSnapshotRevision
query True

integer

int32

Číslo revize snímku definice.

Odpovědi

Name Typ Description
200 OK

string

úspěšná operace

Media Types: "text/plain"

Zabezpečení

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.release Umožňuje číst artefakty vydaných verzí, včetně složek, verzí, definic vydaných verzí a prostředí vydaných verzí.

Příklady

Sample Request

GET https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}?definitionSnapshotRevision=1&api-version=7.1-preview.8

Sample Response

transfer-Encoding: chunked