共用方式為


Feed Management - Set Feed Permissions

更新摘要的許可權。

如果在專案中建立摘要,則必須提供專案參數。 如果摘要未與任何專案相關聯,請省略要求中的專案參數。

PATCH https://feeds.dev.azure.com/{organization}/{project}/_apis/packaging/Feeds/{feedId}/permissions?api-version=5.1-preview.1

URI 參數

名稱 位於 必要 類型 Description
feedId
path True

string

摘要的名稱或識別碼。

organization
path True

string

Azure DevOps 組織的名稱。

project
path

string

專案識別碼或專案名稱

api-version
query True

string

要使用的 API 版本。 這應該設定為 '5.1-preview.1' 以使用此版本的 API。

要求本文

名稱 類型 Description
body

FeedPermission[]

要設定的許可權。

回應

名稱 類型 Description
200 OK

FeedPermission[]

成功的作業

安全性

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

名稱 Description
vso.packaging_manage 授與建立、讀取、更新和刪除摘要和套件的能力。

定義

名稱 Description
FeedPermission

摘要的許可權。

FeedRole

此身分識別在摘要上的角色。

IdentityDescriptor

身分識別描述元是識別類型的包裝函式, (Windows SID、Passport) 以及 SID 或 PUID 等唯一識別碼。

FeedPermission

摘要的許可權。

名稱 類型 Description
displayName

string

身分識別的顯示名稱。

identityDescriptor

IdentityDescriptor

與此角色相關聯的身分識別。

identityId

string

與此角色相關聯的身分識別識別碼。

role

FeedRole

此身分識別在摘要上的角色。

FeedRole

此身分識別在摘要上的角色。

名稱 類型 Description
administrator

string

系統管理員可完全控制摘要。

collaborator

string

共同作業者具有與讀取器相同的許可權,但也可以從設定的上游來源內嵌套件。

contributor

string

參與者可以對摘要中的套件執行任何動作,包括新增套件,但可能不會修改摘要設定。

custom

string

不支援。

none

string

不支援。

reader

string

讀取器只能讀取套件和檢視設定。

IdentityDescriptor

身分識別描述元是識別類型的包裝函式, (Windows SID、Passport) 以及 SID 或 PUID 等唯一識別碼。

名稱 類型 Description
identifier

string

此身分識別的唯一識別碼,不超過 256 個字元,將會保存。

identityType

string

描述項的類型 (例如 Windows、Passport 等) 。