Billing Subscriptions - Get By Customer

ID로 구독을 가져옵니다. 이 작업은 계약 유형이 Microsoft 파트너 계약인 청구 계정에 대해서만 지원됩니다.

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/{billingSubscriptionName}?api-version=2019-10-01-preview

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
billingAccountName
path True

string

청구 계정을 고유하게 식별하는 ID입니다.

billingSubscriptionName
path True

string

구독을 고유하게 식별하는 ID입니다.

customerName
path True

string

고객을 고유하게 식별하는 ID입니다.

api-version
query True

string

클라이언트 요청과 함께 사용할 API의 버전입니다. 현재 버전은 2019-10-01-preview입니다.

응답

Name 형식 Description
200 OK

BillingSubscription

OK. 요청이 성공했습니다.

Other Status Codes

ErrorResponse

작업이 실패한 이유를 설명하는 오류 응답입니다.

보안

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation 사용자 계정 가장

예제

BillingSubscriptionByCustomer

Sample Request

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/{billingSubscriptionName}?api-version=2019-10-01-preview

Sample Response

{
  "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/{billingSubscriptionName}",
  "name": "{billingSubscriptionName}",
  "type": "Microsoft.Billing/billingSubscriptions",
  "properties": {
    "displayName": "My Subscription",
    "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
    "subscriptionBillingStatus": "Active",
    "lastMonthCharges": {
      "currency": "USD",
      "value": 5000
    },
    "monthToDateCharges": {
      "currency": "USD",
      "value": 600
    },
    "customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
    "customerDisplayName": "Customer1",
    "reseller": {
      "resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19",
      "description": "Reseller2"
    },
    "skuId": "0002",
    "skuDescription": "Microsoft Azure Standard"
  }
}

정의

Name Description
Amount

금액입니다.

BillingSubscription

청구 구독입니다.

BillingSubscriptionStatusType

구독의 현재 청구 상태.

ErrorDetails

오류의 세부 정보입니다.

ErrorResponse

오류 응답은 서비스가 들어오는 요청을 처리할 수 없음을 나타냅니다. 이유는 오류 메시지에 제공됩니다.

ErrorSubDetails
Reseller

재판매인의 세부 정보입니다.

Amount

금액입니다.

Name 형식 Description
currency

string

금액 값의 통화입니다.

value

number

금액 값입니다.

BillingSubscription

청구 구독입니다.

Name 형식 Description
id

string

리소스 ID입니다.

name

string

리소스 이름입니다.

properties.billingProfileDisplayName

string

구독이 청구되는 청구 프로필의 이름입니다.

properties.billingProfileId

string

구독이 청구되는 청구 프로필의 ID입니다.

properties.customerDisplayName

string

구독을 만든 고객의 이름입니다. 필드는 Microsoft 파트너 계약 청구 계정에만 적용됩니다.

properties.customerId

string

구독을 만든 고객의 ID입니다. 필드는 Microsoft 파트너 계약 청구 계정에만 적용됩니다.

properties.displayName

string

구독 이름입니다.

properties.invoiceSectionDisplayName

string

구독이 청구되는 청구서 섹션의 이름입니다.

properties.invoiceSectionId

string

구독이 청구되는 청구서 섹션의 ID입니다.

properties.lastMonthCharges

Amount

지난 달 요금이 청구됩니다.

properties.monthToDateCharges

Amount

현재 월~날짜 요금입니다.

properties.reseller

Reseller

이 구독에 대한 재판매인입니다.

properties.skuDescription

string

구독에 대한 Azure 플랜에 대한 sku 설명입니다.

properties.skuId

string

구독에 대한 Azure 플랜의 sku ID입니다.

properties.subscriptionBillingStatus

BillingSubscriptionStatusType

구독의 현재 청구 상태.

properties.subscriptionId

string

구독의 ID입니다.

type

string

리소스 종류.

BillingSubscriptionStatusType

구독의 현재 청구 상태.

Name 형식 Description
Abandoned

string

Active

string

Deleted

string

Inactive

string

Warning

string

ErrorDetails

오류의 세부 정보입니다.

Name 형식 Description
code

string

오류 코드

details

ErrorSubDetails[]

오류의 하위 세부 정보입니다.

message

string

작업이 실패한 이유를 나타내는 오류 메시지입니다.

target

string

특정 오류의 대상입니다.

ErrorResponse

오류 응답은 서비스가 들어오는 요청을 처리할 수 없음을 나타냅니다. 이유는 오류 메시지에 제공됩니다.

Name 형식 Description
error

ErrorDetails

오류의 세부 정보입니다.

ErrorSubDetails

Name 형식 Description
code

string

오류 코드

message

string

작업이 실패한 이유를 나타내는 오류 메시지입니다.

target

string

특정 오류의 대상입니다.

Reseller

재판매인의 세부 정보입니다.

Name 형식 Description
description

string

재판매인의 이름입니다.

resellerId

string

재판매인의 MPN ID입니다.