Billing Subscriptions - List By Customer
고객의 구독을 나열합니다. 이 작업은 계약 유형이 Microsoft 파트너 계약인 청구 계정에 대해서만 지원됩니다.
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions?api-version=2020-05-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
billing
|
path | True |
string |
청구 계정을 고유하게 식별하는 ID입니다. |
customer
|
path | True |
string |
고객을 고유하게 식별하는 ID입니다. |
api-version
|
query | True |
string |
클라이언트 요청과 함께 사용할 API의 버전입니다. 현재 버전은 2020-05-01입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
OK. 요청이 성공했습니다. |
|
Other Status Codes |
작업이 실패한 이유를 설명하는 오류 응답입니다. |
보안
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 | 사용자 계정 가장 |
예제
BillingSubscriptionsListByCustomer
Sample Request
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions?api-version=2020-05-01
Sample Response
{
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId1",
"name": "billingSubscriptionId1",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
"properties": {
"displayName": "My subscription",
"subscriptionId": "87607149-63a6-4644-8dc1-1d2e368f4994",
"subscriptionBillingStatus": "Active",
"lastMonthCharges": {
"currency": "USD",
"value": 5000
},
"monthToDateCharges": {
"currency": "USD",
"value": 600
},
"costCenter": "ABC1234",
"customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
"customerDisplayName": "Customer1",
"reseller": {
"resellerId": "89e87bdf-a2a2-4687-925f-4c18b27bccfd",
"description": "Reseller1"
},
"skuId": "0002",
"skuDescription": "Microsoft Azure Plan for DevTest"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingSubscriptions/billinSubscriptionId2",
"name": "billingSubscriptionId2",
"type": "Microsoft.Billing/billingAccounts/billingSubscriptions",
"properties": {
"displayName": "Test subscription",
"subscriptionId": "87607149-63a6-4644-8dc1-1d2e368f4995",
"subscriptionBillingStatus": "Active",
"lastMonthCharges": {
"currency": "USD",
"value": 1000
},
"monthToDateCharges": {
"currency": "USD",
"value": 400
},
"costCenter": "ABC1234",
"customerId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}",
"customerDisplayName": "Customer1",
"reseller": {
"resellerId": "3b65b5a8-bd4f-4084-90e9-e1bd667a2b19",
"description": "Reseller3"
},
"skuId": "0002",
"skuDescription": "Microsoft Azure Plan for DevTest"
}
}
]
}
정의
Name | Description |
---|---|
Amount |
금액입니다. |
Billing |
청구 구독입니다. |
Billing |
청구 구독 목록입니다. |
Billing |
구독의 현재 청구 상태. |
Error |
오류의 세부 정보입니다. |
Error |
오류 응답은 서비스가 들어오는 요청을 처리할 수 없음을 나타냅니다. 이유는 오류 메시지에 제공됩니다. |
Error |
|
Reseller |
재판매인의 세부 정보입니다. |
Amount
금액입니다.
Name | 형식 | Description |
---|---|---|
currency |
string |
금액 값의 통화입니다. |
value |
number |
금액 값입니다. |
BillingSubscription
청구 구독입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
name |
string |
리소스 이름입니다. |
properties.billingProfileDisplayName |
string |
구독이 청구되는 청구 프로필의 이름입니다. |
properties.billingProfileId |
string |
구독이 청구되는 청구 프로필의 ID입니다. |
properties.costCenter |
string |
구독에 적용된 비용 센터입니다. |
properties.customerDisplayName |
string |
구독을 만든 고객의 이름입니다. 필드는 Microsoft 파트너 계약 청구 계정에만 적용됩니다. |
properties.customerId |
string |
구독을 만든 고객의 ID입니다. 필드는 Microsoft 파트너 계약 청구 계정에만 적용됩니다. |
properties.displayName |
string |
구독 이름입니다. |
properties.invoiceSectionDisplayName |
string |
구독이 청구되는 청구서 섹션의 이름입니다. |
properties.invoiceSectionId |
string |
구독이 청구되는 청구서 섹션의 ID입니다. |
properties.lastMonthCharges |
지난 달 요금이 청구됩니다. |
|
properties.monthToDateCharges |
현재 월~날짜 요금입니다. |
|
properties.reseller |
이 구독에 대한 재판매인입니다. |
|
properties.skuDescription |
string |
구독에 대한 Azure 플랜에 대한 sku 설명입니다. |
properties.skuId |
string |
구독에 대한 Azure 플랜의 sku ID입니다. |
properties.subscriptionBillingStatus |
구독의 현재 청구 상태. |
|
properties.subscriptionId |
string |
구독의 ID입니다. |
properties.suspensionReasons |
string[] |
구독에 대한 일시 중단 이유입니다. Microsoft Online Services 프로그램 청구 계정의 구독에만 적용됩니다. |
type |
string |
리소스 종류. |
BillingSubscriptionsListResult
청구 구독 목록입니다.
Name | 형식 | Description |
---|---|---|
nextLink |
string |
결과의 다음 페이지에 대한 링크(URL)입니다. |
totalCount |
number |
총 레코드 수입니다. |
value |
청구 구독 목록입니다. |
BillingSubscriptionStatusType
구독의 현재 청구 상태.
Name | 형식 | Description |
---|---|---|
Abandoned |
string |
|
Active |
string |
|
Deleted |
string |
|
Inactive |
string |
|
Warning |
string |
ErrorDetails
오류의 세부 정보입니다.
Name | 형식 | Description |
---|---|---|
code |
string |
오류 코드 |
details |
오류의 하위 세부 정보입니다. |
|
message |
string |
작업이 실패한 이유를 나타내는 오류 메시지입니다. |
target |
string |
특정 오류의 대상입니다. |
ErrorResponse
오류 응답은 서비스가 들어오는 요청을 처리할 수 없음을 나타냅니다. 이유는 오류 메시지에 제공됩니다.
Name | 형식 | Description |
---|---|---|
error |
오류의 세부 정보입니다. |
ErrorSubDetails
Name | 형식 | Description |
---|---|---|
code |
string |
오류 코드 |
message |
string |
작업이 실패한 이유를 나타내는 오류 메시지입니다. |
target |
string |
특정 오류의 대상입니다. |
Reseller
재판매인의 세부 정보입니다.
Name | 형식 | Description |
---|---|---|
description |
string |
재판매인의 이름입니다. |
resellerId |
string |
재판매인의 MPN ID입니다. |