Runs - Get

Belirli bir işlem hattı için çalıştırma alır.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
organization
path True

string

Azure DevOps kuruluşunun adı.

pipelineId
path True

integer

int32

İşlem hattı kimliği

project
path True

string

Proje Kimliği veya proje adı

runId
path True

integer

int32

Çalıştırma kimliği

api-version
query True

string

Kullanılacak API sürümü. Api'nin bu sürümünü kullanmak için bu değer '7.1-preview.1' olarak ayarlanmalıdır.

Yanıtlar

Name Tür Description
200 OK

Run

başarılı işlem

Güvenlik

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 Derleme sonuçları, tanımlar ve istekler dahil olmak üzere derleme yapıtlarına erişme ve hizmet kancaları aracılığıyla derleme olayları hakkında bildirim alma olanağı verir.

Tanımlar

Name Description
Container
ContainerResource
PipelineReference

İşlem Hattı başvurusu.

PipelineResource
ReferenceLinks

REST başvuru bağlantıları koleksiyonunu temsil eden sınıf.

Repository
RepositoryResource
RepositoryType
Run
RunResources
RunResult
RunState
Variable

Container

Name Tür Description
environment

object

image

string

mapDockerSocket

boolean

options

string

ports

string[]

volumes

string[]

ContainerResource

Name Tür Description
container

Container

PipelineReference

İşlem Hattı başvurusu.

Name Tür Description
folder

string

İşlem hattı klasörü

id

integer

İşlem Hattı Kimliği

name

string

İşlem hattı adı

revision

integer

Düzeltme numarası

url

string

PipelineResource

Name Tür Description
pipeline

PipelineReference

İşlem Hattı başvurusu.

version

string

REST başvuru bağlantıları koleksiyonunu temsil eden sınıf.

Name Tür Description
links

object

Bağlantıların salt okunur görünümü. Başvuru bağlantıları salt okunur olduğundan, bunları yalnızca salt okunur olarak göstermek istiyoruz.

Repository

Name Tür Description
type

RepositoryType

RepositoryResource

Name Tür Description
refName

string

repository

Repository

version

string

RepositoryType

Name Tür Description
azureReposGit

string

azureReposGitHyphenated

string

gitHub

string

gitHubEnterprise

string

unknown

string

Run

Name Tür Description
_links

ReferenceLinks

REST başvuru bağlantıları koleksiyonunu temsil eden sınıf.

createdDate

string

finalYaml

string

finishedDate

string

id

integer

name

string

pipeline

PipelineReference

İşlem Hattı başvurusu.

resources

RunResources

result

RunResult

state

RunState

templateParameters

object

url

string

variables

<string,  Variable>

RunResources

Name Tür Description
containers

<string,  ContainerResource>

pipelines

<string,  PipelineResource>

repositories

<string,  RepositoryResource>

RunResult

Name Tür Description
canceled

string

failed

string

succeeded

string

unknown

string

RunState

Name Tür Description
canceling

string

completed

string

inProgress

string

unknown

string

Variable

Name Tür Description
isSecret

boolean

value

string