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
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
organization
|
path | True |
string |
Azure DevOps kuruluşunun adı. |
|
pipeline
|
path | True |
integer (int32) |
İşlem hattı kimliği |
|
project
|
path | True |
string |
Proje kimliği veya proje adı |
|
run
|
path | True |
integer (int32) |
Çalıştırma kimliği |
|
api-version
|
query | True |
string |
Kullanılacak API'nin sürümü. Bu, API'nin bu sürümünü kullanmak için '7.1' olarak ayarlanmalıdır. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
başarılı işlem |
Güvenlik
oauth2
Tür:
oauth2
Akış:
accessCode
Yetkilendirme URL’si:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Belirteç URL'si:
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
Kapsamlar
| 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 | |
|
Container |
|
|
Pipeline |
İşlem Hattı başvurusu. |
|
Pipeline |
|
|
Reference |
REST başvuru bağlantıları koleksiyonunu temsil eden sınıf. |
| Repository | |
|
Repository |
|
|
Repository |
|
| Run | |
|
Run |
|
|
Run |
|
|
Run |
|
| Variable |
Container
| Name | Tür | Description |
|---|---|---|
| environment |
object |
|
| image |
string |
|
| mapDockerSocket |
boolean |
|
| options |
string |
|
| ports |
string[] |
|
| volumes |
string[] |
ContainerResource
| Name | Tür | Description |
|---|---|---|
| container |
PipelineReference
İşlem Hattı başvurusu.
| Name | Tür | Description |
|---|---|---|
| folder |
string |
İşlem hattı klasörü |
| id |
integer (int32) |
İşlem Hattı Kimliği |
| name |
string |
İşlem hattı adı |
| revision |
integer (int32) |
Düzeltme numarası |
| url |
string |
PipelineResource
| Name | Tür | Description |
|---|---|---|
| pipeline |
İşlem Hattı başvurusu. |
|
| version |
string |
ReferenceLinks
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 kullanıma açmak istiyoruz. |
Repository
| Name | Tür | Description |
|---|---|---|
| type |
RepositoryResource
| Name | Tür | Description |
|---|---|---|
| refName |
string |
|
| repository | ||
| version |
string |
RepositoryType
| Değer | Description |
|---|---|
| unknown | |
| gitHub | |
| azureReposGit | |
| gitHubEnterprise | |
| azureReposGitHyphenated |
Run
| Name | Tür | Description |
|---|---|---|
| _links |
REST başvuru bağlantıları koleksiyonunu temsil eden sınıf. |
|
| createdDate |
string (date-time) |
|
| finalYaml |
string |
|
| finishedDate |
string (date-time) |
|
| id |
integer (int32) |
|
| name |
string |
|
| pipeline |
İşlem Hattı başvurusu. |
|
| resources | ||
| result | ||
| state | ||
| templateParameters |
object |
|
| url |
string |
|
| variables |
<string, Variable> |
RunResources
| Name | Tür | Description |
|---|---|---|
| containers |
<string,
Container |
|
| pipelines |
<string,
Pipeline |
|
| repositories |
<string,
Repository |
RunResult
| Değer | Description |
|---|---|
| unknown | |
| succeeded | |
| failed | |
| canceled |
RunState
| Değer | Description |
|---|---|
| unknown | |
| inProgress | |
| canceling | |
| completed |
Variable
| Name | Tür | Description |
|---|---|---|
| isSecret |
boolean |
|
| value |
string |