你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Charges - List
列出基于定义的作用域的费用。
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 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
scope
|
path | True |
string |
与费用作关联的范围。 这包括部门范围的“/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}”,以及“/providers/Microsoft.Billing/billingAccountId}/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}”。 对于部门和注册帐户,还可以使用“/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}”将计费周期添加到范围。 例如,若要在部门范围内指定计费周期,请使用“/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}”。 此外,现代商业帐户范围是 billingAccount 范围的“/providers/Microsoft.Billing/billingAccounts/{billingAccountId}” , billingProfile 范围的'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'、'/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfileId}/invoiceSections/{invoiceSectionId}'和'/providers/Microsoft' 。Billing/billingAccounts/{billingAccountId}/customers/{customerId}特定于合作伙伴。 |
api-version
|
query | True |
string |
要用于客户端请求的 API 的版本。 当前版本为 2023-03-01。 |
$apply
|
query |
string |
可用于按 properties/billingProfileId、properties/invoiceSectionId、properties/customerId(特定于合作伙伴引导)或按 properties/invoiceSectionId 对 billingProfile 范围的费用进行分组。 |
|
$filter
|
query |
string |
可用于按属性/usageEnd(Utc 时间)、属性/usageStart(Utc 时间)筛选费用。 该筛选器支持“eq”、“lt”、“gt”、“le”、“ge”和“and”。 它当前不支持“ne”、“or”或“not”。 标记筛选器是键值对字符串,其中键和值由冒号分隔(:))。 |
|
end
|
query |
string |
结束日期 |
|
start
|
query |
string |
开始日期 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行。 请求已成功。 |
|
Other Status Codes |
描述作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
ChangesForBillingPeriodByDepartment-Legacy
示例请求
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234/departments/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01
示例响应
{
"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
示例请求
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01
示例响应
{
"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
示例请求
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
示例响应
{
"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
示例请求
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))
示例响应
{
"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
示例请求
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))
示例响应
{
"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
示例请求
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))
示例响应
{
"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
示例请求
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234:56789/billingProfiles/2460/providers/Microsoft.Consumption/charges?api-version=2024-08-01
示例响应
{
"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
示例请求
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))
示例响应
{
"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
示例请求
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
示例响应
{
"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
示例请求
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234:56789/customers/67890/providers/Microsoft.Consumption/charges?api-version=2024-08-01
示例响应
{
"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
示例请求
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'
示例响应
{
"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
示例请求
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234:56789/invoiceSections/97531/providers/Microsoft.Consumption/charges?api-version=2024-08-01
示例响应
{
"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
示例请求
GET https://management.azure.com/providers/Microsoft.Billing/BillingAccounts/1234/enrollmentAccounts/42425/providers/Microsoft.Consumption/charges?api-version=2024-08-01
示例响应
{
"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"
}
}
]
}
定义
名称 | 说明 |
---|---|
amount |
金额加货币。 |
Charges |
列出费用摘要的结果。 |
Error |
错误的详细信息。 |
Error |
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。 一些错误响应:
|
Legacy |
旧版费用摘要。 |
Modern |
新式费用摘要。 |
amount
金额加货币。
名称 | 类型 | 说明 |
---|---|---|
currency |
string |
金额货币。 |
value |
number (decimal) |
量。 |
ChargesListResult
列出费用摘要的结果。
名称 | 类型 | 说明 |
---|---|---|
value | ChargeSummary[]: |
费用摘要列表 |
ErrorDetails
错误的详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
指示作失败的原因的错误消息。 |
ErrorResponse
错误响应指示服务无法处理传入请求。 错误消息中提供了原因。
一些错误响应:
429 TooManyRequests - 请求受到限制。 等待“x-ms-ratelimit-microsoft.consumption-retry-after”标头中指定的时间后重试。
503 ServiceUnavailable - 服务暂时不可用。 在等待“Retry-After”标头中指定的时间后重试。
504 网关超时 - 处理请求时服务超时。 尽可能减少请求中的日期范围。
名称 | 类型 | 说明 |
---|---|---|
error |
错误的详细信息。 |
LegacyChargeSummary
旧版费用摘要。
名称 | 类型 | 说明 |
---|---|---|
eTag |
string |
资源的 eTag。 若要处理并发更新方案,此字段将用于确定用户是否正在更新最新版本。 |
id |
string |
资源 ID。 |
kind |
string:
legacy |
指定费用摘要的类型。 |
name |
string |
资源名称。 |
properties.azureCharges |
number (decimal) |
Azure 费用。 |
properties.azureMarketplaceCharges |
number (decimal) |
市场费用。 |
properties.billingPeriodId |
string |
费用所属的计费周期资源的 ID。 |
properties.chargesBilledSeparately |
number (decimal) |
单独计费的费用。 |
properties.currency |
string |
币种代码 |
properties.usageEnd |
string |
使用情况结束日期。 |
properties.usageStart |
string |
使用情况开始日期。 |
type |
string |
资源类型。 |
ModernChargeSummary
新式费用摘要。
名称 | 类型 | 说明 |
---|---|---|
eTag |
string |
资源的 eTag。 若要处理并发更新方案,此字段将用于确定用户是否正在更新最新版本。 |
id |
string |
资源 ID。 |
kind |
string:
modern |
指定费用摘要的类型。 |
name |
string |
资源名称。 |
properties.azureCharges |
Azure 费用。 |
|
properties.billingAccountId |
string |
计费帐户 ID |
properties.billingPeriodId |
string |
费用所属的计费周期资源的 ID。 |
properties.billingProfileId |
string |
计费配置文件 ID |
properties.chargesBilledSeparately |
单独计费的费用。 |
|
properties.customerId |
string |
客户 ID |
properties.invoiceSectionId |
string |
发票科目 ID |
properties.isInvoiced |
boolean |
已开具发票 |
properties.marketplaceCharges |
市场费用。 |
|
properties.subscriptionId |
string |
订阅 guid。 |
properties.usageEnd |
string |
使用情况结束日期。 |
properties.usageStart |
string |
使用情况开始日期。 |
type |
string |
资源类型。 |