Share via


Service Principals - Delete

サービス プリンシパルを無効にします。

サービス プリンシパルは引き続き表示されますが、サービス プリンシパルのメンバーシップ チェックでは false が返されます。

DELETE https://vssps.dev.azure.com/{organization}/_apis/graph/serviceprincipals/{servicePrincipalDescriptor}?api-version=7.1-preview.1

URI パラメーター

名前 / 必須 説明
organization
path True

string

Azure DevOps 組織の名前です。

servicePrincipalDescriptor
path True

string

削除するサービス プリンシパルの記述子。

api-version
query True

string

使用する API のバージョン。 このバージョンの API を使用するには、これを '7.1-preview.1' に設定する必要があります。

応答

名前 説明
200 OK

成功した操作

セキュリティ

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

名前 説明
vso.graph_manage ユーザー、グループ、スコープ、グループメンバーシップ情報を読み取り、ユーザー、グループ、グループメンバーシップを追加および管理する機能を付与します。

Sample Request

DELETE https://vssps.dev.azure.com/{organization}/_apis/graph/serviceprincipals/aadsp.NTkzZjY3MTYtNjI3Yy03Y2NiLTgzM2UtNzdhN2Y5Y2E0MjJm?api-version=7.1-preview.1

Sample Response