Sdílet prostřednictvím


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-preview.1

Parametry identifikátoru URI

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

string

Název organizace Azure DevOps.

pipelineId
path True

integer

int32

ID kanálu

project
path True

string

ID projektu nebo název projektu

runId
path True

integer

int32

ID spuštění

api-version
query True

string

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

Odpovědi

Name Typ Description
200 OK

Run

úspěšná operace

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.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žeb.

Definice

Name Description
Container
ContainerResource
PipelineReference

Odkaz na kanál.

PipelineResource
ReferenceLinks

Třída představující kolekci odkazů REST.

Repository
RepositoryResource
RepositoryType
Run
RunResources
RunResult
RunState
Variable

Container

Name Typ Description
environment

object

image

string

mapDockerSocket

boolean

options

string

ports

string[]

volumes

string[]

ContainerResource

Name Typ Description
container

Container

PipelineReference

Odkaz na kanál.

Name Typ Description
folder

string

Složka kanálu

id

integer

ID kanálu

name

string

Název kanálu

revision

integer

Číslo revize

url

string

PipelineResource

Name Typ Description
pipeline

PipelineReference

Odkaz na kanál.

version

string

Třída představující kolekci odkazů REST.

Name Typ Description
links

object

Zobrazení odkazů jen pro čtení. Vzhledem k tomu, že odkazy jsou jen pro čtení, chceme je zveřejnit jenom jako odkazy jen pro čtení.

Repository

Name Typ Description
type

RepositoryType

RepositoryResource

Name Typ Description
refName

string

repository

Repository

version

string

RepositoryType

Name Typ Description
azureReposGit

string

azureReposGitHyphenated

string

gitHub

string

gitHubEnterprise

string

unknown

string

Run

Name Typ Description
_links

ReferenceLinks

Třída představující kolekci odkazů REST.

createdDate

string

finalYaml

string

finishedDate

string

id

integer

name

string

pipeline

PipelineReference

Odkaz na kanál.

resources

RunResources

result

RunResult

state

RunState

templateParameters

object

url

string

variables

<string,  Variable>

RunResources

Name Typ Description
containers

<string,  ContainerResource>

pipelines

<string,  PipelineResource>

repositories

<string,  RepositoryResource>

RunResult

Name Typ Description
canceled

string

failed

string

succeeded

string

unknown

string

RunState

Name Typ Description
canceling

string

completed

string

inProgress

string

unknown

string

Variable

Name Typ Description
isSecret

boolean

value

string