Balances - Get By Billing Account
Lekéri egy hatókör egyenlegeit a billingAccountId alapján. Az egyenlegek csak 2014. május 1-jei vagy újabb api-val érhetők el.
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/balances?api-version=2024-08-01
URI-paraméterek
| Name | In | Kötelező | Típus | Description |
|---|---|---|---|---|
|
billing
|
path | True |
string |
BillingAccount azonosítója |
|
api-version
|
query | True |
string minLength: 1 |
A művelethez használandó API-verzió. |
Válaszok
| Name | Típus | Description |
|---|---|---|
| 200 OK |
A kérés sikeres volt. |
|
| Other Status Codes |
Váratlan hibaválasz. |
Biztonság
azure_auth
Azure Active Directory Oauth2-folyamat.
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
| Name | Description |
|---|---|
| user_impersonation | a felhasználói fiók megszemélyesítése |
Példák
Balances
Mintakérelem
Mintaválasz
{
"name": "balanceId1",
"type": "Microsoft.Consumption/balances",
"id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Billing/billingPeriods/201702/providers/Microsoft.Consumption/balances/balanceId1",
"properties": {
"adjustmentDetails": [
{
"name": "Promo Credit",
"value": 1.1
},
{
"name": "SIE Credit",
"value": 1
}
],
"adjustments": 0,
"azureMarketplaceServiceCharges": 609.82,
"beginningBalance": 3396469.19,
"billingFrequency": "Month",
"chargesBilledSeparately": 0,
"currency": "USD ",
"endingBalance": 2922371.02,
"newPurchases": 0,
"newPurchasesDetails": [
{
"name": "Promo Purchase",
"value": 1
}
],
"overageRefund": 2012.61,
"priceHidden": false,
"serviceOverage": 0,
"totalOverage": 0,
"totalUsage": 474098.17,
"utilized": 474098.17
}
}
Definíciók
| Name | Description |
|---|---|
| Balance |
Egyenlegerőforrás. |
|
Balance |
|
|
Balance |
|
|
Billing |
A számlázási gyakoriság. |
|
created |
Az erőforrást létrehozó identitás típusa. |
|
Error |
Az erőforrás-kezelési hiba további információi. |
|
Error |
A hiba részletei. |
|
Error |
Hibaválasz |
|
system |
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok. |
Balance
Egyenlegerőforrás.
| Name | Típus | Description |
|---|---|---|
| etag |
string |
Az erőforrás etagje. |
| id |
string |
Az erőforrás teljes erőforrás-azonosítója. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| name |
string |
Az erőforrás neve |
| properties.adjustmentDetails |
Kiigazítások listája (promóciós kredit, SIE-kredit stb.). |
|
| properties.adjustments |
number (decimal) |
Teljes kiigazítási összeg. |
| properties.azureMarketplaceServiceCharges |
number (decimal) |
Az Azure Marketplace teljes díjai. |
| properties.beginningBalance |
number (decimal) |
A számlázási időszak kezdő egyenlege. |
| properties.billingFrequency |
A számlázási gyakoriság. |
|
| properties.chargesBilledSeparately |
number (decimal) |
Külön számlázott díjak. |
| properties.currency |
string |
Az ISO pénznem, amelyben a fogyasztásmérőt felszámítják, például USD. |
| properties.endingBalance |
number (decimal) |
A számlázási időszak záró egyenlege (nyitott időszakok esetén ez naponta frissül). |
| properties.newPurchases |
number (decimal) |
Új vásárlás teljes összege. |
| properties.newPurchasesDetails |
Az új vásárlások listája. |
|
| properties.overageRefund |
number (decimal) |
Túlhasználati visszatérítések |
| properties.priceHidden |
boolean |
Az ár rejtett vagy nem. |
| properties.serviceOverage |
number (decimal) |
Azure-szolgáltatások túlhasználata. |
| properties.totalOverage |
number (decimal) |
szolgáltatásOverage + chargesBilledSeparate lehetőségre. |
| properties.totalUsage |
number (decimal) |
Azure-szolgáltatási kötelezettségvállalás + teljes túlhasználat. |
| properties.utilized |
number (decimal) |
Teljes kötelezettségvállalási használat. |
| systemData |
A createdBy és a modifiedBy adatokat tartalmazó Azure Resource Manager-metaadatok. |
|
| tags |
object |
Erőforráscímkék. |
| type |
string |
Az erőforrás típusa. Pl. "Microsoft.Compute/virtualMachines" vagy "Microsoft.Storage/storageAccounts" |
BalancePropertiesAdjustmentDetailsItem
| Name | Típus | Description |
|---|---|---|
| name |
string |
az új kiigazítás neve. |
| value |
number (decimal) |
az új kiigazítás értéke. |
BalancePropertiesNewPurchasesDetailsItem
| Name | Típus | Description |
|---|---|---|
| name |
string |
az új vásárlás neve. |
| value |
number (decimal) |
az új vásárlás értéke. |
BillingFrequency
A számlázási gyakoriság.
| Érték | Description |
|---|---|
| Month | |
| Quarter | |
| Year |
createdByType
Az erőforrást létrehozó identitás típusa.
| Érték | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
Az erőforrás-kezelési hiba további információi.
| Name | Típus | Description |
|---|---|---|
| info |
object |
A további információk. |
| type |
string |
A további információtípus. |
ErrorDetail
A hiba részletei.
| Name | Típus | Description |
|---|---|---|
| additionalInfo |
A hiba további információi. |
|
| code |
string |
A hibakód. |
| details |
A hiba részletei. |
|
| message |
string |
A hibaüzenet. |
| target |
string |
A hibacél. |
ErrorResponse
Hibaválasz
| Name | Típus | Description |
|---|---|---|
| error |
A hibaobjektum. |
systemData
Az erőforrás létrehozásával és utolsó módosításával kapcsolatos metaadatok.
| Name | Típus | Description |
|---|---|---|
| createdAt |
string (date-time) |
Az erőforrás-létrehozás időbélyege (UTC). |
| createdBy |
string |
Az erőforrást létrehozó identitás. |
| createdByType |
Az erőforrást létrehozó identitás típusa. |
|
| lastModifiedAt |
string (date-time) |
Az erőforrás utolsó módosításának időbélyege (UTC) |
| lastModifiedBy |
string |
Az erőforrást legutóbb módosító identitás. |
| lastModifiedByType |
Az erőforrást legutóbb módosító identitás típusa. |