你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

适用于企业客户的报告 API - 价目表

注意

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 字段不可用。

响应属性定义

属性名称 类型 说明
id 字符串 唯一 ID 表示按计费周期) (计量的 PriceSheet 项
billingPeriodId 字符串 表示特定计费周期的唯一 ID
meterId 字符串 测定仪的标识符。 它可以映射到使用情况 meterID。
meterName 字符串 计量名称
unitOfMeasure 字符串 用于测定服务的计量单位
includedQuantity Decimal 包含的数量
partNumber 字符串 与计量关联的部件号
unitPrice Decimal 计量的单位价格
currencyCode string UnitPrice 的货币代码

另请参阅