次の方法で共有


Reservation Transactions - List

課金アカウント スコープでの予約インスタンスのトランザクションの一覧。 注: 払戻トランザクションは、購入トランザクションと共に転記されます (つまり、購入請求月)。 たとえば、払い戻しは 2021 年 5 月に要求されます。 この払い戻しトランザクションのイベント日は 2021 年 5 月、請求月は予約購入時の 2020 年 4 月になります。 注: ARM のペイロード サイズの制限は 12 MB であるため、応答サイズが ARM の制限を超えると、現在呼び出し元は 400 を受け取ります。 このような場合は、より小さな日付範囲で API 呼び出しを行う必要があります。

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationTransactions?api-version=2024-08-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationTransactions?api-version=2024-08-01&$filter={$filter}&useMarkupIfPartner={useMarkupIfPartner}&previewMarkupPercentage={previewMarkupPercentage}

URI パラメーター

名前 / 必須 説明
billingAccountId
path True

string

請求先アカウント ID

api-version
query True

string

minLength: 1

この操作に使用する API バージョン。

$filter
query

string

日付範囲で予約トランザクションをフィルター処理します。 開始日と終了日のプロパティ/EventDate。 フィルターは 'le' と 'ge' をサポートしています。 注: API は、開始日と終了日の請求月全体のデータを返します。 たとえば、フィルター プロパティ/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 には、2020 年 12 月全体のデータが含まれます (つまり、12 月 30 日と 31 日の日付のレコードが含まれます)。

previewMarkupPercentage
query

number (decimal)

適用するプレビュー マークアップの割合。

useMarkupIfPartner
query

boolean

呼び出し元がパートナーである場合は、トランザクションにマークを適用します。

応答

名前 説明
200 OK

ReservationTransactionsListResult

要求は成功しました。

Other Status Codes

ErrorResponse

予期しないエラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

ReservationTransactionsByEnrollmentNumber

要求のサンプル

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.Consumption/reservationTransactions?api-version=2024-08-01&$filter=properties/eventDate+ge+2020-05-20+AND+properties/eventDate+le+2020-05-30&useMarkupIfPartner=True&previewMarkupPercentage=15.5

応答のサンプル

{
  "value": [
    {
      "name": "201909091919",
      "type": "Microsoft.Consumption/reservationTransactions",
      "id": "/billingAccounts/123456/providers/Microsoft.Consumption/reservationtransactions/201909091919",
      "properties": {
        "description": "Standard_DS1_v2 westus 1 Year",
        "accountName": "Microsoft Infrastructure",
        "accountOwnerEmail": "admin@microsoft.com",
        "amount": -21,
        "armSkuName": "Standard_DS1_v2",
        "billingFrequency": "recurring",
        "billingMonth": 20190901,
        "costCenter": "",
        "currency": "USD",
        "currentEnrollment": "123456",
        "departmentName": "Unassigned",
        "eventDate": "2019-09-09T19:19:04Z",
        "eventType": "Refund",
        "monetaryCommitment": 523123.9,
        "overage": 23234.49,
        "purchasingEnrollment": "123456",
        "purchasingSubscriptionGuid": "a838a8c3-a408-49e1-ac90-42cb95bff9b2",
        "purchasingSubscriptionName": "Infrastructure Subscription",
        "quantity": 1,
        "region": "westus",
        "reservationOrderId": "00000000-0000-0000-0000-000000000000",
        "reservationOrderName": "Transaction-DS1_v2",
        "term": "P1Y"
      },
      "tags": []
    },
    {
      "name": "201909091919",
      "type": "Microsoft.Consumption/reservationTransactions",
      "id": "/billingAccounts/123456/providers/Microsoft.Consumption/reservationtransactions/201909091919",
      "properties": {
        "description": "Standard_DS1_v2 westus 1 Year",
        "accountName": "Microsoft Infrastructure",
        "accountOwnerEmail": "admin@microsoft.com",
        "amount": 21,
        "armSkuName": "Standard_DS1_v2",
        "billingFrequency": "recurring",
        "billingMonth": 20190901,
        "costCenter": "",
        "currency": "USD",
        "currentEnrollment": "123456",
        "departmentName": "Unassigned",
        "eventDate": "2019-09-09T19:19:04Z",
        "eventType": "Purchase",
        "monetaryCommitment": 523123.9,
        "overage": 23234.49,
        "purchasingEnrollment": "123456",
        "purchasingSubscriptionGuid": "a838a8c3-a408-49e1-ac90-42cb95bff9b2",
        "purchasingSubscriptionName": "Infrastructure Subscription",
        "quantity": 1,
        "region": "westus",
        "reservationOrderId": "00000000-0000-0000-0000-000000000000",
        "reservationOrderName": "Transaction-DS1_v2",
        "term": "P1Y"
      },
      "tags": []
    }
  ]
}

定義

名前 説明
createdByType

リソースを作成した ID の種類。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

ErrorDetail

エラーの詳細。

ErrorResponse

エラー応答

ReservationTransaction

予約トランザクション リソース。

ReservationTransactionsListResult

予約に関する推奨事項を一覧表示した結果。

systemData

リソースの作成と最後の変更に関連するメタデータ。

createdByType

リソースを作成した ID の種類。

説明
User
Application
ManagedIdentity
Key

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

ErrorDetail

エラーの詳細。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラー コード。

details

ErrorDetail[]

エラーの詳細。

message

string

エラー メッセージ。

target

string

エラーターゲット。

ErrorResponse

エラー応答

名前 説明
error

ErrorDetail

エラー オブジェクト。

ReservationTransaction

予約トランザクション リソース。

名前 説明
id

string

リソースの完全修飾リソース ID。 例 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name

string

リソースの名前

properties.accountName

string

トランザクションを行うアカウントの名前。

properties.accountOwnerEmail

string

トランザクションを行うアカウント所有者の電子メール。

properties.amount

number (decimal)

トランザクションの料金。

properties.armSkuName

string

これは ARM SKU 名です。 これは、使用状況レコードの追加情報の serviceType フィールドとの結合に使用できます。

properties.billingFrequency

string

請求頻度。1 回限りまたは繰り返しの頻度を指定できます。

properties.billingMonth

integer (int32)

イベントが開始された請求月 (yyyyMMdd)。

properties.costCenter

string

部門であり、コスト センターが提供されている場合は、この部門のコスト センター。

properties.currency

string

トランザクションが請求される ISO 通貨 (USD など)。

properties.currentEnrollment

string

現在の登録。

properties.departmentName

string

部門名。

properties.description

string

取引の説明。

properties.eventDate

string (date-time)

トランザクションの日付

properties.eventType

string

トランザクションの種類 (購入、キャンセル、または払い戻し)。

properties.monetaryCommitment

number (decimal)

登録スコープでの年額コミットメント額。

properties.overage

number (decimal)

登録スコープでの超過分。

properties.purchasingEnrollment

string

購入登録。

properties.purchasingSubscriptionGuid

string (uuid)

トランザクションを行うサブスクリプション GUID。

properties.purchasingSubscriptionName

string

トランザクションを作成するサブスクリプション名。

properties.quantity

number (decimal)

トランザクションの数量。

properties.region

string

トランザクションのリージョン。

properties.reservationOrderId

string

予約注文 ID は、予約購入の識別子です。 各予約注文 ID は、1 つの購入トランザクションを表します。 予約注文には予約が含まれます。 予約注文では、予約の VM サイズとリージョンを指定します。

properties.reservationOrderName

string

予約注文の名前。

properties.term

string

これはトランザクションの用語です。

systemData

systemData

createdBy および modifiedBy 情報を含む Azure Resource Manager メタデータ。

tags

string[]

リソース タグ。

type

string

リソースの型。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts"

ReservationTransactionsListResult

予約に関する推奨事項を一覧表示した結果。

名前 説明
nextLink

string

結果の次のページへのリンク (URL)。

value

ReservationTransaction[]

予約に関する推奨事項の一覧。

systemData

リソースの作成と最後の変更に関連するメタデータ。

名前 説明
createdAt

string (date-time)

リソース作成のタイムスタンプ (UTC)。

createdBy

string

リソースを作成した ID。

createdByType

createdByType

リソースを作成した ID の種類。

lastModifiedAt

string (date-time)

リソースの最終変更のタイムスタンプ (UTC)

lastModifiedBy

string

リソースを最後に変更した ID。

lastModifiedByType

createdByType

リソースを最後に変更した ID の種類。