다음을 통해 공유


Processes - Import Process Template

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

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

URI 매개 변수

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

string

Azure DevOps 조직의 이름입니다.

api-version
query True

string

사용할 API의 버전입니다. 이 버전의 api를 사용하려면 '7.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

성공한 작업

보안

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.work_write 작업 항목 및 쿼리를 읽고, 만들고, 업데이트하고, 보드 메타데이터, 읽기 영역 및 반복 경로를 다른 작업 항목이 관련 메타데이터를 추적하고, 쿼리를 실행하고, 서비스 후크를 통해 작업 항목 이벤트에 대한 알림을 받을 수 있는 기능을 부여합니다.

예제

Sample Request

POST https://dev.azure.com/fabrikam/_apis/work/processadmin/processes/import?api-version=7.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