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 パラメーター
| 名前 | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
organization
|
path | True |
string |
Azure DevOps 組織の名前です。 |
|
api-version
|
query | True |
string |
使う API のバージョン。 このバージョンの API を使用するには、これを '6.1-preview.1' に設定する必要があります。 |
|
ignore
|
query |
boolean |
検証の警告を無視します。 既定値は false です。 |
|
|
replace
|
query |
boolean |
既存のテンプレートを置き換えます。 既定値は true です。 |
要求本文
Media Types: "application/octet-stream"
| 名前 | 型 | 説明 |
|---|---|---|
| body |
string |
アップロードするストリーム |
応答
| 名前 | 型 | 説明 |
|---|---|---|
| 200 OK |
正常な操作 |
セキュリティ
accessToken
個人用アクセス トークン。 ユーザー名とトークンに任意の値をパスワードとして使用します。
型:
basic
例
要求のサンプル
POST https://dev.azure.com/fabrikam/_apis/work/processadmin/processes/import?api-version=6.1-preview.1
応答のサンプル
persistent-Auth: true
lfs-Authenticate: NTLM
{
"id": "adcc42ab-9882-485e-a3ed-7678f01f66bd",
"promoteJobId": "00000000-0000-0000-0000-000000000000",
"helpUrl": null,
"validationResults": [],
"isNew": false
}
定義
| 名前 | 説明 |
|---|---|
|
Check |
チェック テンプレートの存在要求の結果について説明します。 |
|
Process |
プロセス インポート要求の結果について説明します。 |
|
Validation |
|
|
Validation |
CheckTemplateExistenceResult
チェック テンプレートの存在要求の結果について説明します。
| 名前 | 型 | 説明 |
|---|---|---|
| doesTemplateExist |
boolean |
テンプレートが存在するかどうかを示します。 |
| existingTemplateName |
string |
既存のテンプレートの名前。 |
| existingTemplateTypeId |
string |
既存のテンプレート型識別子。 |
| requestedTemplateName |
string |
要求されたテンプレートの名前。 |
ProcessImportResult
プロセス インポート要求の結果について説明します。
| 名前 | 型 | 説明 |
|---|---|---|
| checkExistenceResult |
テンプレートの存在結果を確認します。 |
|
| helpUrl |
string |
ヘルプ URL。 |
| id |
string |
インポート操作の ID。 |
| isNew |
boolean |
このインポートされたプロセスが新しいかどうか。 |
| promoteJobId |
string |
昇格ジョブ識別子。 |
| validationResults |
検証結果のリスト。 |
ValidationIssue
| 名前 | 型 | 説明 |
|---|---|---|
| description |
string |
|
| file |
string |
|
| helpLink |
string |
|
| issueType | ||
| line |
integer |
ValidationIssueType
| 値 | 説明 |
|---|---|
| error | |
| warning |