Charges - List
Visar en lista över avgifter baserade på det definierade omfånget.
GET https://management.azure.com/{scope}/providers/Microsoft.Consumption/charges?api-version=2024-08-01
GET https://management.azure.com/{scope}/providers/Microsoft.Consumption/charges?api-version=2024-08-01&startDate={startDate}&endDate={endDate}&$filter={$filter}&$apply={$apply}
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
scope
|
path | True |
string |
Omfånget som är associerat med avgifter. Detta inkluderar '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' för avdelningsomfånget och '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' för EnrollmentAccount-omfånget. För avdelnings- och registreringskonton kan du också lägga till faktureringsperioden i omfånget med hjälp av "/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}". Om du t.ex. vill ange faktureringsperiod i avdelningsomfånget använder du "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}". Omfång för moderna handelskonton är dessutom "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}" för billingAccount-omfång, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' för billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' för invoiceSection scope och '/providers/Microsoft. Fakturering/faktureringKonton/{billingAccountId}/customers/{customerId} specifika för partner. |
api-version
|
query | True |
string |
Version av API:et som ska användas med klientbegäran. Den aktuella versionen är 2023-03-01. |
$apply
|
query |
string |
Kan användas för att gruppera avgifter för faktureringKontoomfång efter egenskaper/billingProfileId, egenskaper/invoiceSectionId, egenskaper/customerId (specifikt för PartnerLed) eller för billingProfile-omfång efter egenskaper/invoiceSectionId. |
|
$filter
|
query |
string |
Kan användas för att filtrera avgifter efter egenskaper/användningEnd (Utc-tid), egenskaper/användningStart (Utc-tid). Filtret stöder "eq", "lt", "gt", "le", "ge" och "and". Det stöder för närvarande inte "ne", "eller" eller "inte". Taggfilter är en nyckelvärdeparsträng där nyckel och värde avgränsas med ett kolon (:). |
|
end
|
query |
string |
Slutdatum |
|
start
|
query |
string |
Startdatum |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
OKEJ. 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.
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
Name | Description |
---|---|
user_impersonation | personifiera ditt användarkonto |
Exempel
ChangesForBillingPeriodByDepartment-Legacy
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "legacy",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804",
"usageStart": "2018-04-01",
"usageEnd": "2018-04-30",
"azureCharges": 5000,
"chargesBilledSeparately": 60.9,
"azureMarketplaceCharges": 100,
"currency": "USD"
}
}
]
}
ChangesForBillingPeriodByEnrollmentAccount-Legacy
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "legacy",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804",
"usageStart": "2018-04-01",
"usageEnd": "2018-04-30",
"azureCharges": 5000,
"chargesBilledSeparately": 60.9,
"azureMarketplaceCharges": 100,
"currency": "USD"
}
}
]
}
ChargesListByBillingAccount-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Consumption/charges?api-version=2024-08-01&startDate=2019-09-01&endDate=2019-10-31
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201910",
"usageStart": "2019-09-01",
"usageEnd": "2019-10-31",
"azureCharges": {
"currency": "USD",
"value": 0
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 265.09
},
"marketplaceCharges": {
"currency": "USD",
"value": 0
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": null,
"invoiceSectionId": null
}
}
]
}
ChargesListByBillingAccountGroupByBillingProfileId-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Consumption/charges?api-version=2024-08-01&startDate=2019-09-01&endDate=2019-09-30&$apply=groupby((properties/billingProfileId))
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/123456/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/123456"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234:56789/billingProfiles/42425/providers/Microsoft.Consumption/charges/chargeSummaryId2",
"name": "chargeSummaryId2",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425"
}
}
]
}
ChargesListByBillingAccountGroupByCustomerId-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Consumption/charges?api-version=2024-08-01&startDate=2019-09-01&endDate=2019-09-30&$apply=groupby((properties/customerId))
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/customers/67890/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"customerId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/customers/67890",
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/invoiceSections/67890"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234:56789/customers/123456/providers/Microsoft.Consumption/charges/chargeSummaryId2",
"name": "chargeSummaryId2",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"customerId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/customers/123456",
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/invoiceSections/67890"
}
}
]
}
ChargesListByBillingAccountGroupByInvoiceSectionId-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01&startDate=2019-09-01&endDate=2019-09-30&$apply=groupby((properties/invoiceSectionId))
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/invoiceSections/4567/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/invoiceSections/4567"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234:56789//billingProfiles/42425/invoiceSections/67890/providers/Microsoft.Consumption/charges/chargeSummaryId2",
"name": "chargeSummaryId2",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/invoiceSections/67890"
}
}
]
}
ChargesListByBillingProfile-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234:56789/billingProfiles/2460/providers/Microsoft.Consumption/charges?api-version=2024-08-01
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/2460/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201910",
"usageStart": "2023-03-01",
"usageEnd": "2023-05-31",
"azureCharges": {
"currency": "USD",
"value": 0
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 265.09
},
"marketplaceCharges": {
"currency": "USD",
"value": 0
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/2460",
"invoiceSectionId": null
}
}
]
}
ChargesListByBillingProfileGroupByInvoiceSectionId-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01&startDate=2019-09-01&endDate=2019-09-30&$apply=groupby((properties/invoiceSectionId))
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/invoiceSections/4567/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/invoiceSections/4567"
}
},
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234:56789//billingProfiles/42425/invoiceSections/67890/providers/Microsoft.Consumption/charges/chargeSummaryId2",
"name": "chargeSummaryId2",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/invoiceSections/67890"
}
}
]
}
ChargesListByBillingProfileInvoiceSection-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/invoiceSections/67890/providers/Microsoft.Consumption/charges?api-version=2024-08-01&startDate=2019-09-01&endDate=2019-10-31
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/invoiceSections/67890/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201909",
"usageStart": "2019-09-01",
"usageEnd": "2019-09-30",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/invoiceSections/4567"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/invoiceSections/67890/providers/Microsoft.Consumption/charges/chargeSummaryId2",
"name": "chargeSummaryId2",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201910",
"usageStart": "2019-09-01",
"usageEnd": "2019-10-31",
"azureCharges": {
"currency": "USD",
"value": 5000
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 60.9
},
"marketplaceCharges": {
"currency": "USD",
"value": 100
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/42425/invoiceSections/4567"
}
}
]
}
ChargesListByCustomer-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234:56789/customers/67890/providers/Microsoft.Consumption/charges?api-version=2024-08-01
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/customers/67890/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201910",
"usageStart": "2023-03-01",
"usageEnd": "2023-05-31",
"azureCharges": {
"currency": "USD",
"value": 0
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 265.09
},
"marketplaceCharges": {
"currency": "USD",
"value": 0
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": null,
"invoiceSectionId": null
}
}
]
}
ChargesListByDepartment-Legacy
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01&$filter=usageStart eq '2018-04-01' AND usageEnd eq '2018-05-30'
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "legacy",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804",
"usageStart": "2018-04-01",
"usageEnd": "2018-04-30",
"azureCharges": 5000,
"chargesBilledSeparately": 60.9,
"azureMarketplaceCharges": 100,
"currency": "USD"
}
}
]
}
ChargesListByInvoiceSectionId-Modern
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234:56789/invoiceSections/97531/providers/Microsoft.Consumption/charges?api-version=2024-08-01
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/2460/invoiceSections/97531/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "modern",
"properties": {
"isInvoiced": false,
"billingPeriodId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/providers/Microsoft.Billing/billingPeriods/201910",
"usageStart": "2023-03-01",
"usageEnd": "2023-05-31",
"azureCharges": {
"currency": "USD",
"value": 12
},
"chargesBilledSeparately": {
"currency": "USD",
"value": 0
},
"marketplaceCharges": {
"currency": "USD",
"value": 0
},
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/1234:56789",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/2460",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/1234:56789/billingProfiles/2460/invoiceSections/97531"
}
}
]
}
ChargesListForEnrollmentAccount-Legacy
Exempelbegäran
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01
Exempelsvar
{
"value": [
{
"id": "/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges/chargeSummaryId1",
"name": "chargeSummaryId1",
"type": "Microsoft.Consumption/charges",
"kind": "legacy",
"properties": {
"billingPeriodId": "/providers/Microsoft.Billing/BillingAccounts/1234/providers/Microsoft.Billing/billingPeriods/201804",
"usageStart": "2018-04-01",
"usageEnd": "2018-04-30",
"azureCharges": 5000,
"chargesBilledSeparately": 60.9,
"azureMarketplaceCharges": 100,
"currency": "USD"
}
}
]
}
Definitioner
Name | Description |
---|---|
amount |
Beloppet plus valuta . |
Charges |
Resultat av listning av avgiftssammanfattning. |
Error |
Information om felet. |
Error |
Felsvaret anger att tjänsten inte kan bearbeta den inkommande begäran. Orsaken anges i felmeddelandet. Några felsvar:
|
Legacy |
Sammanfattning av äldre avgifter. |
Modern |
Sammanfattning av moderna avgifter. |
amount
Beloppet plus valuta .
Name | Typ | Description |
---|---|---|
currency |
string |
Beloppsvaluta. |
value |
number (decimal) |
Belopp. |
ChargesListResult
Resultat av listning av avgiftssammanfattning.
Name | Typ | Description |
---|---|---|
value | ChargeSummary[]: |
Listan över avgiftssammanfattningar |
ErrorDetails
Information om felet.
Name | Typ | Description |
---|---|---|
code |
string |
Felkod. |
message |
string |
Felmeddelande som anger varför åtgärden misslyckades. |
ErrorResponse
Felsvaret anger att tjänsten inte kan bearbeta den inkommande begäran. Orsaken anges i felmeddelandet.
Några felsvar:
429 TooManyRequests – Begäran begränsas. Försök igen efter att ha väntat på den tid som anges i rubriken "x-ms-ratelimit-microsoft.consumption-retry-after".
503 ServiceUnavailable – Tjänsten är inte tillgänglig för tillfället. Försök igen efter att ha väntat på den tid som anges i rubriken "Försök igen".
504 Gateway Timeout – Tidsgränsen för tjänsten uppnåddes när begäran bearbetades. Minska datumintervallet i begäran, om möjligt.
Name | Typ | Description |
---|---|---|
error |
Information om felet. |
LegacyChargeSummary
Sammanfattning av äldre avgifter.
Name | Typ | Description |
---|---|---|
eTag |
string |
eTag för resursen. För att hantera samtidiga uppdateringsscenarion används det här fältet för att avgöra om användaren uppdaterar den senaste versionen eller inte. |
id |
string |
Resurs-ID. |
kind |
string:
legacy |
Anger typen av avgiftssammanfattning. |
name |
string |
Resursnamn. |
properties.azureCharges |
number (decimal) |
Azure-avgifter. |
properties.azureMarketplaceCharges |
number (decimal) |
Marketplace-avgifter. |
properties.billingPeriodId |
string |
ID för den faktureringsperiodresurs som avgiften tillhör. |
properties.chargesBilledSeparately |
number (decimal) |
Avgifter debiteras separat. |
properties.currency |
string |
Valutakod |
properties.usageEnd |
string |
Användningsslutdatum. |
properties.usageStart |
string |
Startdatum för användning. |
type |
string |
Resurstyp. |
ModernChargeSummary
Sammanfattning av moderna avgifter.
Name | Typ | Description |
---|---|---|
eTag |
string |
eTag för resursen. För att hantera samtidiga uppdateringsscenarion används det här fältet för att avgöra om användaren uppdaterar den senaste versionen eller inte. |
id |
string |
Resurs-ID. |
kind |
string:
modern |
Anger typen av avgiftssammanfattning. |
name |
string |
Resursnamn. |
properties.azureCharges |
Azure-avgifter. |
|
properties.billingAccountId |
string |
Faktureringskonto-ID |
properties.billingPeriodId |
string |
ID för den faktureringsperiodresurs som avgiften tillhör. |
properties.billingProfileId |
string |
Faktureringsprofil-ID |
properties.chargesBilledSeparately |
Avgifter debiteras separat. |
|
properties.customerId |
string |
Kund-ID |
properties.invoiceSectionId |
string |
Fakturaavsnitts-ID |
properties.isInvoiced |
boolean |
Debiteras faktureras |
properties.marketplaceCharges |
Marketplace-avgifter. |
|
properties.subscriptionId |
string |
Prenumerations-GUID. |
properties.usageEnd |
string |
Användningsslutdatum. |
properties.usageStart |
string |
Startdatum för användning. |
type |
string |
Resurstyp. |