Share via


Azure spending - Cancel an Azure entitlement

取消指定客戶的訂用帳戶 Azure 權利。

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/subscriptions/{subscription_id}/azureEntitlements/{entitlement_id}/cancel

URI 參數

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

string

entitlement_id
path True

string

subscription_id
path True

string

version
path True

string

要求標頭

Media Types: "application/json-patch+json", "application/json", "text/json", "application/*+json"

名稱 必要 類型 Description
Authorization True

string

授權持有人權杖

MS-CorrelationId

string

用於在內部追蹤要求。 如果未提供MS-CorrelationId,伺服器將會為每個要求產生新的要求

MS-CV

string

用於在內部追蹤要求。 如果未提供 MS-CV,伺服器將會為每個要求產生新的要求

MS-RequestId

string

用於要求的等冪性。 如果未提供MS-RequestId,伺服器將會為每個要求產生新的要求

要求本文

Media Types: "application/json-patch+json", "application/json", "text/json", "application/*+json"

名稱 類型 Description
cancellationReason

string

回應

名稱 類型 Description
202 Accepted

已接受取消訂用帳戶要求的 Azure 權利。

Media Types: "text/plain", "application/json", "text/json"

400 Bad Request

遺漏或不正確輸入。 回應本文將提供錯誤詳細資料。

Media Types: "text/plain", "application/json", "text/json"

401 Unauthorized

要求未經驗證。 用戶端必須先向合作夥伴 API 服務進行驗證。

Media Types: "text/plain", "application/json", "text/json"

403 Forbidden

要求已經過驗證,但因為呼叫端沒有叫用要求的許可權而遭到拒絕。

Media Types: "text/plain", "application/json", "text/json"

404 Not Found

找不到資源,或無法使用指定的輸入參數。

Media Types: "text/plain", "application/json", "text/json"

500 Internal Server Error

伺服器錯誤

Media Types: "text/plain", "application/json", "text/json"

定義

Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlementCancellationRequestContent

名稱 類型 Description
cancellationReason

string