Billing Subscriptions - Get By Customer
Hämtar en prenumeration med sitt ID. Åtgärden stöds endast för faktureringskonton med avtalstyp Microsoft-partneravtal.
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/billingSubscriptions/{billingSubscriptionName}?api-version=2019-10-01-preview
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
billing
|
path | True |
string |
Det ID som unikt identifierar ett faktureringskonto. |
billing
|
path | True |
string |
Det ID som unikt identifierar en prenumeration. |
customer
|
path | True |
string |
Det ID som unikt identifierar en kund. |
api-version
|
query | True |
string |
Den version av API:et som ska användas med klientbegäran. Den aktuella versionen är 2019-10-01-preview. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
OK. Begäran har slutförts. |
|
Other Status Codes |
Felsvar som beskriver varför åtgärden misslyckades. |
Säkerhet
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 | personifiera ditt användarkonto |
Exempel
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"
}
}
Definitioner
Name | Description |
---|---|
Amount |
Beloppet. |
Billing |
En faktureringsprenumeration. |
Billing |
Prenumerationens aktuella faktureringsstatus. |
Error |
Information om felet. |
Error |
Felsvaret anger att tjänsten inte kan bearbeta den inkommande begäran. Orsaken anges i felmeddelandet. |
Error |
|
Reseller |
Information om återförsäljaren. |
Amount
Beloppet.
Name | Typ | Description |
---|---|---|
currency |
string |
Valutan för beloppsvärdet. |
value |
number |
Beloppsvärde. |
BillingSubscription
En faktureringsprenumeration.
Name | Typ | Description |
---|---|---|
id |
string |
Resurs-ID. |
name |
string |
Resursnamn. |
properties.billingProfileDisplayName |
string |
Namnet på den faktureringsprofil som prenumerationen faktureras till. |
properties.billingProfileId |
string |
ID:t för faktureringsprofilen som prenumerationen faktureras till. |
properties.customerDisplayName |
string |
Namnet på den kund som prenumerationen skapades för. Fältet gäller endast för Microsoft-partneravtal faktureringskonto. |
properties.customerId |
string |
ID:t för kunden som prenumerationen skapades för. Fältet gäller endast för Microsoft-partneravtal faktureringskonto. |
properties.displayName |
string |
Namnet på prenumerationen. |
properties.invoiceSectionDisplayName |
string |
Namnet på fakturaavsnittet som prenumerationen faktureras till. |
properties.invoiceSectionId |
string |
ID för fakturaavsnittet som prenumerationen faktureras till. |
properties.lastMonthCharges |
Den senaste månaden debiteras. |
|
properties.monthToDateCharges |
Den aktuella månaden hittills avgifter. |
|
properties.reseller |
Återförsäljare för den här prenumerationen. |
|
properties.skuDescription |
string |
SKU-beskrivningen av Azure-planen för prenumerationen. |
properties.skuId |
string |
SKU-ID:t för Azure-planen för prenumerationen. |
properties.subscriptionBillingStatus |
Prenumerationens aktuella faktureringsstatus. |
|
properties.subscriptionId |
string |
Prenumerationens ID. |
type |
string |
Resurstyp. |
BillingSubscriptionStatusType
Prenumerationens aktuella faktureringsstatus.
Name | Typ | Description |
---|---|---|
Abandoned |
string |
|
Active |
string |
|
Deleted |
string |
|
Inactive |
string |
|
Warning |
string |
ErrorDetails
Information om felet.
Name | Typ | Description |
---|---|---|
code |
string |
Felkod. |
details |
Delinformationen för felet. |
|
message |
string |
Felmeddelande som anger varför åtgärden misslyckades. |
target |
string |
Målet för det specifika felet. |
ErrorResponse
Felsvaret anger att tjänsten inte kan bearbeta den inkommande begäran. Orsaken anges i felmeddelandet.
Name | Typ | Description |
---|---|---|
error |
Information om felet. |
ErrorSubDetails
Name | Typ | Description |
---|---|---|
code |
string |
Felkod. |
message |
string |
Felmeddelande som anger varför åtgärden misslyckades. |
target |
string |
Målet för det specifika felet. |
Reseller
Information om återförsäljaren.
Name | Typ | Description |
---|---|---|
description |
string |
Namnet på återförsäljaren. |
resellerId |
string |
MPN-ID för återförsäljaren. |