適用於企業客戶的報告 API - PriceSheet
注意
在 2024 年 5 月 1 日,Azure 企業報告 API 將會淘汰。 任何剩餘的企業報告 API 都會停止回應要求。 客戶必須在之前轉換至使用 Microsoft 成本管理 API。 若要深入了解,請參閱從 Azure 企業版報告移轉至 Microsoft 成本管理 API 概觀。
價位表 API 可針對指定註冊和計費週期的每個計量提供適用的費率。
要求
需要新增的一般標頭屬性,指定於適用於企業客戶的報告 API 概觀中。 如果未指定計費週期,則會傳回目前計費周期的數據。
方法 | 要求 URI |
---|---|
GET | https://consumption.azure.com/v3/enrollments/{enrollmentNumber}/pricesheet |
GET | https://consumption.azure.com/v3/enrollments/{enrollmentNumber}/billingPeriods/{billingPeriod}/pricesheet |
注意
若要使用舊版的 API,請將 v3 取代為上述 URL 中的 v2。 如果您使用 v2,則無法使用某些欄位。
回應
[
{
"id": "enrollments/57354989/billingperiods/201601/products/343/pricesheets",
"billingPeriodId": "201704",
"meterId": "dc210ecb-97e8-4522-8134-2385494233c0",
"meterName": "A1 VM",
"unitOfMeasure": "100 Hours",
"includedQuantity": 0,
"partNumber": "N7H-00015",
"unitPrice": 0.00,
"currencyCode": "USD"
},
{
"id": "enrollments/57354989/billingperiods/201601/products/2884/pricesheets",
"billingPeriodId": "201404",
"meterId": "dc210ecb-97e8-4522-8134-5385494233c0",
"meterName": "Locally Redundant Storage Premium Storage - Snapshots - AU East",
"unitOfMeasure": "100 GB",
"includedQuantity": 0,
"partNumber": "N9H-00402",
"unitPrice": 0.00,
"currencyCode": "USD"
},
...
]
注意
如果您使用預覽 API,無法使用 meterId 欄位。
回應屬性定義
屬性名稱 | 類型 | Description |
---|---|---|
id | 字串 | 唯一標識符代表依計費週期 (計量的 PriceSheet 專案) |
billingPeriodId | 字串 | 代表特定計費週期的唯一標識符 |
meterId | 字串 | 計量的識別碼。 它可以對應至使用量計量標識碼。 |
meterName | 字串 | 計量名稱 |
unitOfMeasure | 字串 | 測量服務的度量單位 |
includedQuantity | decimal | 包含的數量 |
partNumber | 字串 | 與計量相關聯的元件編號 |
unitPrice | decimal | 計量的單價 |
currencyCode | 字串 | unitPrice 的貨幣代碼 |