Authorizedresources - Authorize Project Resources
PATCH https://dev.azure.com/{organization}/{project}/_apis/build/authorizedresources?api-version=7.1-preview.1
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
organization
|
path | True |
string |
Azure DevOps 組織的名稱。 |
|
project
|
path | True |
string |
專案識別碼或專案名稱 |
|
api-version
|
query | True |
string |
要使用的 API 版本。 這應該設定為 '7.1-preview.1' 以使用此版本的 API。 |
要求本文
| 名稱 | 類型 | Description |
|---|---|---|
| body |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
成功的作業 |
安全性
oauth2
類型:
oauth2
Flow:
accessCode
授權 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
權杖 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
範圍
| 名稱 | Description |
|---|---|
| vso.build_execute | 授與存取組建成品的能力,包括建置結果、定義和要求,以及將組建排入佇列、更新組建屬性,以及透過服務勾點接收建置事件相關通知的能力。 |
| vso.pipelineresources_manage | 授與管理受保護資源或管線使用受保護資源要求的能力:代理程式組件區、環境、佇列、存放庫、安全檔案、服務連線和變數群組 |
定義
DefinitionResourceReference
| 名稱 | 類型 | Description |
|---|---|---|
| authorized |
boolean |
指出資源是否獲得使用授權。 |
| id |
string |
資源的識別碼。 |
| name |
string |
資源的易記名稱。 |
| type |
string |
資源類型。 |