共用方式為


Endpoints - Delete

刪除服務端點

DELETE https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?projectIds={projectIds}&api-version=7.1-preview.4
DELETE https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?projectIds={projectIds}&deep={deep}&api-version=7.1-preview.4

URI 參數

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

string

uuid

要刪除之端點的端點識別碼

organization
path True

string

Azure DevOps 組織的名稱。

api-version
query True

string

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

projectIds
query True

string

array (string)

需要從中刪除端點的專案識別碼

deep
query

boolean

刪除端點所建立的 spn

回應

名稱 類型 Description
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

名稱 Description
vso.serviceendpoint_manage 授與讀取、查詢及管理服務端點的能力。

範例

Delete service endpoint

Sample Request

DELETE https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints/{endpointId}?projectIds=c7e5f0b3-71fa-4429-9fb3-3321963a7c06&api-version=7.1-preview.4

Sample Response