다음을 통해 공유


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 매개 변수

Name In(다음 안에) 필수 형식 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"

Name 필수 형식 Description
Authorization True

string

권한 부여 전달자 토큰

MS-CorrelationId

string

내부적으로 요청을 추적하는 데 사용됩니다. MS-CorrelationId 제공되지 않으면 서버는 각 요청에 대해 새 MS-CorrelationId 생성합니다.

MS-CV

string

내부적으로 요청을 추적하는 데 사용됩니다. MS-CV가 제공되지 않으면 서버는 각 요청에 대해 새 를 생성합니다.

MS-RequestId

string

요청의 멱등성에 사용됩니다. MS-RequestId 제공되지 않으면 서버는 각 요청에 대해 새 MS-RequestId 생성합니다.

요청 본문

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

Name 형식 Description
cancellationReason

string

응답

Name 형식 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

Name 형식 Description
cancellationReason

string