Access Control Entries - Remove Access Control Entries

從屬於指定權杖的 ACL 中移除指定的 ACL。

HTTP
DELETE https://dev.azure.com/{organization}/_apis/accesscontrolentries/{securityNamespaceId}?api-version=5.1
HTTP
DELETE https://dev.azure.com/{organization}/_apis/accesscontrolentries/{securityNamespaceId}?token={token}&descriptors={descriptors}&api-version=5.1

URI 參數

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

string

uuid

安全性命名空間識別碼。

organization
path

string

Azure DevOps 組織的名稱。

api-version
query True

string

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

descriptors
query

string

字串,其中包含應移除其專案之 ',' 分隔的身分識別描述項清單。

token
query

string

應修改其 ACL 的權杖。

回應

名稱 類型 Description
200 OK

boolean

成功的作業

安全性

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.security_manage 授與讀取、寫入和管理安全性許可權的能力。

範例

範例要求

HTTP
DELETE https://dev.azure.com/fabrikam/_apis/accesscontrolentries/5a27515b-ccd7-42c9-84f1-54c998f03866?token=newToken&descriptors=Microsoft.TeamFoundation.Identity;S-1-9-1551374245-1204400969-2402986413-2179408616-0-0-0-0-1,Microsoft.TeamFoundation.Identity;S-1-9-1551374245-1204400969-2402986413-2179408616-0-0-0-0-2&api-version=5.1

範例回覆

JSON
true