Runs - Get
Získá spuštění pro konkrétní kanál.
GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}?api-version=7.1
Parametry identifikátoru URI
Name | V | Vyžadováno | Typ | Description |
---|---|---|---|---|
organization
|
path | True |
string |
Název organizace Azure DevOps. |
pipeline
|
path | True |
integer (int32) |
ID kanálu |
project
|
path | True |
string |
ID projektu nebo název projektu |
run
|
path | True |
integer (int32) |
ID spuštění |
api-version
|
query | True |
string |
Verze rozhraní API, která se má použít. Pokud chcete použít tuto verzi rozhraní API, měla by být nastavená na hodnotu 7.1. |
Odpovědi
Name | Typ | Description |
---|---|---|
200 OK |
úspěšná operace |
Zabezpečení
oauth2
Typ:
oauth2
Tok:
accessCode
URL autorizace:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
URL tokenu:
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
Rozsahy
Name | Description |
---|---|
vso.build | Uděluje možnost přístupu k artefaktům sestavení, včetně výsledků sestavení, definic a požadavků, a možnost přijímat oznámení o událostech sestavení prostřednictvím volání služby. |
Definice
Name | Description |
---|---|
Container | |
Container |
|
Pipeline |
Odkaz na kanál. |
Pipeline |
|
Reference |
Třída představující kolekci odkazů REST. |
Repository | |
Repository |
|
Repository |
|
Run | |
Run |
|
Run |
|
Run |
|
Variable |
Container
Name | Typ | Description |
---|---|---|
environment |
object |
|
image |
string |
|
mapDockerSocket |
boolean |
|
options |
string |
|
ports |
string[] |
|
volumes |
string[] |
ContainerResource
Name | Typ | Description |
---|---|---|
container |
PipelineReference
Odkaz na kanál.
Name | Typ | Description |
---|---|---|
folder |
string |
Složka kanálu |
id |
integer (int32) |
ID kanálu |
name |
string |
Název kanálu |
revision |
integer (int32) |
Číslo revize |
url |
string |
PipelineResource
Name | Typ | Description |
---|---|---|
pipeline |
Odkaz na kanál. |
|
version |
string |
ReferenceLinks
Třída představující kolekci odkazů REST.
Name | Typ | Description |
---|---|---|
links |
object |
Jen pro čtení odkazů. Vzhledem k tomu, že odkazy odkazy jsou jen pro čtení, chceme je zveřejnit jen pro čtení. |
Repository
Name | Typ | Description |
---|---|---|
type |
RepositoryResource
Name | Typ | Description |
---|---|---|
refName |
string |
|
repository | ||
version |
string |
RepositoryType
Hodnota | Description |
---|---|
azureReposGit | |
azureReposGitHyphenated | |
gitHub | |
gitHubEnterprise | |
unknown |
Run
Name | Typ | Description |
---|---|---|
_links |
Třída představující kolekci odkazů REST. |
|
createdDate |
string (date-time) |
|
finalYaml |
string |
|
finishedDate |
string (date-time) |
|
id |
integer (int32) |
|
name |
string |
|
pipeline |
Odkaz na kanál. |
|
resources | ||
result | ||
state | ||
templateParameters |
object |
|
url |
string |
|
variables |
<string, Variable> |
RunResources
Name | Typ | Description |
---|---|---|
containers |
<string,
Container |
|
pipelines |
<string,
Pipeline |
|
repositories |
<string,
Repository |
RunResult
Hodnota | Description |
---|---|
canceled | |
failed | |
succeeded | |
unknown |
RunState
Hodnota | Description |
---|---|
canceling | |
completed | |
inProgress | |
unknown |
Variable
Name | Typ | Description |
---|---|---|
isSecret |
boolean |
|
value |
string |