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 パラメーター

名前 / 必須 説明
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"

名前 必須 説明
Authorization True

string

承認ベアラー トークン

MS-CorrelationId

string

要求を内部的に追跡するために使用されます。 MS-CorrelationIdが指定されていない場合、サーバーは要求ごとに新しいものを生成します

MS-CV

string

要求を内部的に追跡するために使用されます。 MS-CV が指定されていない場合、サーバーは要求ごとに新しい CV を生成します

MS-RequestId

string

要求のべき等性に使用されます。 MS-RequestIdが指定されていない場合、サーバーは要求ごとに新しいものを生成します

要求本文

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

名前 説明
cancellationReason

string

応答

名前 説明
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

名前 説明
cancellationReason

string