Runs - Get

Pobiera przebieg dla określonego potoku.

GET https://dev.azure.com/{organization}/{project}/_apis/pipelines/{pipelineId}/runs/{runId}?api-version=7.1-preview.1

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
organization
path True

string

Nazwa organizacji usługi Azure DevOps.

pipelineId
path True

integer

int32

Identyfikator potoku

project
path True

string

Identyfikator projektu lub nazwa projektu

runId
path True

integer

int32

Identyfikator przebiegu

api-version
query True

string

Wersja interfejsu API do użycia. Powinno to być ustawione na wartość "7.1-preview.1", aby używać tej wersji interfejsu API.

Odpowiedzi

Nazwa Typ Opis
200 OK

Run

operacja zakończona powodzeniem

Zabezpieczenia

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

Nazwa Opis
vso.build Umożliwia dostęp do artefaktów kompilacji, w tym wyników kompilacji, definicji i żądań oraz możliwość odbierania powiadomień o zdarzeniach kompilacji za pośrednictwem punktów zaczepienia usługi.

Definicje

Nazwa Opis
Container
ContainerResource
PipelineReference

Odwołanie do potoku.

PipelineResource
ReferenceLinks

Klasa reprezentująca kolekcję linków referencyjnych REST.

Repository
RepositoryResource
RepositoryType
Run
RunResources
RunResult
RunState
Variable

Container

Nazwa Typ Opis
environment

object

image

string

mapDockerSocket

boolean

options

string

ports

string[]

volumes

string[]

ContainerResource

Nazwa Typ Opis
container

Container

PipelineReference

Odwołanie do potoku.

Nazwa Typ Opis
folder

string

Folder potoku

id

integer

Identyfikator potoku

name

string

Nazwa potoku

revision

integer

Numer poprawki

url

string

PipelineResource

Nazwa Typ Opis
pipeline

PipelineReference

Odwołanie do potoku.

version

string

Klasa reprezentująca kolekcję linków referencyjnych REST.

Nazwa Typ Opis
links

object

Czytelny widok linków. Ponieważ linki referencyjne są czytelne, chcemy uwidocznić je tylko jako tylko do odczytu.

Repository

Nazwa Typ Opis
type

RepositoryType

RepositoryResource

Nazwa Typ Opis
refName

string

repository

Repository

version

string

RepositoryType

Nazwa Typ Opis
azureReposGit

string

azureReposGitHyphenated

string

gitHub

string

gitHubEnterprise

string

unknown

string

Run

Nazwa Typ Opis
_links

ReferenceLinks

Klasa reprezentująca kolekcję linków referencyjnych REST.

createdDate

string

finalYaml

string

finishedDate

string

id

integer

name

string

pipeline

PipelineReference

Odwołanie do potoku.

resources

RunResources

result

RunResult

state

RunState

templateParameters

object

url

string

variables

<string,  Variable>

RunResources

Nazwa Typ Opis
containers

<string,  ContainerResource>

pipelines

<string,  PipelineResource>

repositories

<string,  RepositoryResource>

RunResult

Nazwa Typ Opis
canceled

string

failed

string

succeeded

string

unknown

string

RunState

Nazwa Typ Opis
canceling

string

completed

string

inProgress

string

unknown

string

Variable

Nazwa Typ Opis
isSecret

boolean

value

string