企業ユーザー向けの Reporting API - Marketplace Store Charge

注意

2024 年 5 月 1 日に、Azure Enterprise Reporting API は廃止されます。 残りのエンタープライズ レポート API は、要求への応答を停止します。 お客様は、その前に Microsoft Cost Management API の使用に移行する必要があります。 詳細については、 Azure Enterprise Reporting から Microsoft Cost Management API への移行の概要に関するページを参照してください。

Marketplace Store Charge API は、指定された請求期間または開始日と終了日の使用量ベースのマーケットプレース料金の内訳を日別に返します。 API 応答の一部として、定期的な料金が返されます。

要求

指定する必要がある一般的なヘッダー プロパティについては、「 エンタープライズ顧客向けレポート API」 の記事を参照してください。 請求期間が指定されていない場合は、現在の請求期間のデータが返されます。 カスタムの時間範囲を指定できます。 開始日と終了日のパラメーターは yyyy-MM-dd 形式です。 サポートされている最大の時間範囲は、36 か月間です。

Method 要求 URI
GET https://consumption.azure.com/v3/enrollments/{enrollmentNumber}/marketplacecharges
GET https://consumption.azure.com/v3/enrollments/{enrollmentNumber}/billingPeriods/{billingPeriod}/marketplacecharges
GET https://consumption.azure.com/v3/enrollments/{enrollmentNumber}/marketplacechargesbycustomdate?startTime=2017-01-01&endTime=2017-01-10

Response

        [
            {
                "id": "id",
                "subscriptionGuid": "00000000-0000-0000-0000-000000000000",
                "subscriptionName": "subName",
                "meterId": "2core",
                "usageStartDate": "2015-09-17T00:00:00Z",
                "usageEndDate": "2015-09-17T23:59:59Z",
                "offerName": "Virtual LoadMaster™ (VLM) for Azure",
                "resourceGroup": "Res group",
                "instanceId": "id",
                "additionalInfo": "{\"ImageType\":null,\"ServiceType\":\"Medium\"}",
                "tags": "",
                "orderNumber": "order",
                "unitOfMeasure": "",
                "costCenter": "100",
                "accountId": 100,
                "accountName": "Account Name",
                "accountOwnerId": "account@live.com",
                "departmentId": 101,
                "departmentName": "Department 1",
                "publisherName": "Publisher 1",
                "planName": "Plan name",
                "consumedQuantity": 1.15,
                "resourceRate": 0.1,
                "extendedCost": 1.11,
                "isRecurringCharge": "False"
            },
            ...
        ]

応答プロパティの定義

プロパティ名 Type 説明
id string Marketplace の料金項目の一意の ID
subscriptionGuid Guid サブスクリプション Guid
subscriptionName string サブスクリプション名
meterId string 出力された測定の ID
usageStartDate DateTime 使用状況記録の開始時間
usageEndDate DateTime 使用状況記録の終了時間
offerName string プラン名
resourceGroup string リソース グループ
instanceId string インスタンス ID
additionalInfo string 追加情報を示すJSON 文字列
tags string JSON のタグ文字列
orderNumber string 注文番号
unitOfMeasure string 測定の計測単位
costCenter string コスト センター
accountId INT アカウント ID
accountName string アカウント名
accountOwnerId string アカウント所有者 ID
departmentId INT 部署 ID
departmentName string 部署名
publisherName string 発行元の名前
planName string プラン名
consumedQuantity decimal この期間内の消費量
resourceRate decimal 測定の単価
extendedCost decimal 消費量と拡張原価に基づく推定料金
isRecurringCharge string 定期的な料金インジケーター

こちらもご覧ください