Processes - Import Process Template

zip 파일에서 프로세스를 가져옵니다.

POST https://dev.azure.com/{organization}/_apis/work/processadmin/processes/import?api-version=6.1-preview.1
POST https://dev.azure.com/{organization}/_apis/work/processadmin/processes/import?ignoreWarnings={ignoreWarnings}&replaceExistingTemplate={replaceExistingTemplate}&api-version=6.1-preview.1

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
organization
path True

string

Azure DevOps 조직의 이름입니다.

api-version
query True

string

사용할 API의 버전입니다. 이 API 버전을 사용하려면 '6.1-preview.1'로 설정해야 합니다.

ignoreWarnings
query

boolean

유효성 검사 경고를 무시합니다. 기본값은 false입니다.

replaceExistingTemplate
query

boolean

기존 템플릿을 바꿉니다. 기본값은 true입니다.

요청 본문

Media Types: "application/octet-stream"

Name 형식 Description
body

string

업로드할 스트림

응답

Name 형식 Description
200 OK

ProcessImportResult

성공적인 작업

보안

accessToken

개인용 액세스 토큰. 사용자 이름 및 토큰에 대한 모든 값을 암호로 사용합니다.

Type: basic

예제

Sample Request

POST https://dev.azure.com/fabrikam/_apis/work/processadmin/processes/import?api-version=6.1-preview.1

Sample Response

persistent-Auth: true
lfs-Authenticate: NTLM
{
  "id": "adcc42ab-9882-485e-a3ed-7678f01f66bd",
  "promoteJobId": "00000000-0000-0000-0000-000000000000",
  "helpUrl": null,
  "validationResults": [],
  "isNew": false
}

정의

Name Description
CheckTemplateExistenceResult

검사 템플릿 존재 요청의 결과를 설명합니다.

ProcessImportResult

프로세스 가져오기 요청의 결과를 설명합니다.

ValidationIssue
ValidationIssueType

CheckTemplateExistenceResult

검사 템플릿 존재 요청의 결과를 설명합니다.

Name 형식 Description
doesTemplateExist

boolean

템플릿이 있는지 여부를 나타냅니다.

existingTemplateName

string

기존 템플릿의 이름입니다.

existingTemplateTypeId

string

기존 템플릿 형식 식별자입니다.

requestedTemplateName

string

요청된 템플릿의 이름입니다.

ProcessImportResult

프로세스 가져오기 요청의 결과를 설명합니다.

Name 형식 Description
checkExistenceResult

CheckTemplateExistenceResult

템플릿 존재 결과를 확인합니다.

helpUrl

string

도움말 URL.

id

string

가져오기 작업의 ID입니다.

isNew

boolean

이 가져온 프로세스가 새로운지 여부입니다.

promoteJobId

string

승격 작업 식별자입니다.

validationResults

ValidationIssue[]

유효성 검사 결과 목록입니다.

ValidationIssue

Name 형식 Description
description

string

file

string

helpLink

string

issueType

ValidationIssueType

line

integer

ValidationIssueType

Name 형식 Description
error

string

warning

string