Reservation Order - Purchase

指定した URI でリソースを購入 ReservationOrder して作成します。

PUT https://management.azure.com/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}?api-version=2022-11-01

URI パラメーター

名前 / 必須 説明
reservationOrderId
path True

string

予約の注文 ID

api-version
query True

string

サポートされているバージョン。

要求本文

名前 説明
location

string

予約済みリソースが格納されている Azure リージョン。

properties.appliedScopeProperties

AppliedScopeProperties

適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 AppliedScopeType が ManagementGroup の場合は、tenantId と managementGroupId を指定する必要があります

properties.appliedScopeType

AppliedScopeType

適用されたスコープの種類。

properties.appliedScopes

string[]

特典が適用されるサブスクリプションの一覧。 AppliedScopeType が Shared かどうかを指定しないでください。 このプロパティは非推奨となり、Single AppliedScopeType の代わりに appliedScopeProperties に置き換えられます。

properties.billingPlan

ReservationBillingPlan

課金プランを表します。

properties.billingScopeId

string

予約プランまたは節約プランの購入に対して課金されるサブスクリプション

properties.displayName

string

予約のフレンドリ名

properties.quantity

integer

予約の一部である SKU の数量。

properties.renew

boolean

これを true に設定すると、有効期限の日時に新しい予約が自動的に購入されます。

properties.reservedResourceProperties

ReservedResourceProperties

予約済みリソースの種類ごとに固有のプロパティ。 該当しない場合は必須ではありません。

properties.reservedResourceType

ReservedResourceType

予約されているリソースの種類。

properties.reviewDateTime

string

これは、Azure ハイブリッド特典を確認する必要がある日時です。

properties.term

ReservationTerm

予約の期間を表します。

sku

SkuName

SKU の名前

応答

名前 説明
200 OK

ReservationOrderResponse

リソースが作成されました

202 Accepted

ReservationOrderResponse

要求は受け入れられ、処理中です。 操作結果のリンクは location ヘッダーにあります。

Headers

  • Location: string
  • Retry-After: integer
Other Status Codes

Error

予期しないエラーが発生しました。

Purchase

Sample Request

PUT https://management.azure.com/providers/Microsoft.Capacity/reservationOrders/a075419f-44cc-497f-b68a-14ee811d48b9?api-version=2022-11-01

{
  "sku": {
    "name": "standard_D1"
  },
  "location": "westus",
  "properties": {
    "reservedResourceType": "VirtualMachines",
    "billingScopeId": "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
    "term": "P1Y",
    "billingPlan": "Monthly",
    "quantity": 1,
    "displayName": "TestReservationOrder",
    "appliedScopes": null,
    "appliedScopeType": "Shared",
    "reservedResourceProperties": {
      "instanceFlexibility": "On"
    },
    "renew": false
  }
}

Sample Response

{
  "id": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa",
  "type": "Microsoft.Capacity/reservationOrders",
  "name": "1f14354c-dc12-4c8d-8090-6f295a3a34aa",
  "etag": 7,
  "properties": {
    "displayName": "cabri",
    "requestDateTime": "2017-08-30T03:49:19.0252126Z",
    "createdDateTime": "2017-08-30T03:51:49.8083758Z",
    "expiryDate": "2018-08-30",
    "expiryDateTime": "2018-08-30T03:51:49.8083758Z",
    "term": "P1Y",
    "billingPlan": "Monthly",
    "provisioningState": "Succeeded",
    "reservations": [
      {
        "id": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"
      }
    ],
    "originalQuantity": 7
  }
}
Location: https://management.azure.com/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa?api-version=2022-11-01
Retry-After: 120
{
  "id": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa",
  "type": "Microsoft.Capacity/reservationOrders",
  "name": "1f14354c-dc12-4c8d-8090-6f295a3a34aa",
  "etag": 7,
  "properties": {
    "displayName": "cabri",
    "billingPlan": "Monthly",
    "requestDateTime": "2017-08-30T03:49:19.0252126Z",
    "createdDateTime": "2017-08-30T03:51:49.8083758Z",
    "expiryDate": "2018-08-30",
    "expiryDateTime": "2018-08-30T03:51:49.8083758Z",
    "term": "P1Y",
    "provisioningState": "Succeeded",
    "reservations": [
      {
        "id": "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"
      }
    ],
    "originalQuantity": 7
  }
}

定義

名前 説明
AppliedScopeProperties

適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 AppliedScopeType が ManagementGroup の場合は、tenantId と managementGroupId を指定する必要があります

AppliedScopeType

適用されたスコープの種類。

BillingCurrencyTotal

顧客が更新購入のために顧客の現地通貨で請求される通貨と金額。 税は含まれていません。

createdByType

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

Error

エラー情報

ErrorResponseCode

サービスが受信要求を処理できない理由を説明するエラー コード

ExtendedErrorInfo

エラー コードとエラー メッセージを含む拡張エラー情報

ExtendedStatusInfo
InstanceFlexibility

これをオンにすると、同じ VM サイズ グループ内の他の VM に予約割引が適用されます。 VirtualMachines の予約済みリソースの種類にのみ を指定します。

Kind

予約するリソース プロバイダーの種類。

PaymentDetail

予約注文に関連する支払いに関する情報。

PaymentStatus

支払いが将来完了、失敗、取り消し、またはスケジュールされているかどうかを示します。

Price

金額と通貨コードを含む価格情報

PricingCurrencyTotal

Microsoft がレコードに使用する金額。 払い戻し制限を計算するために払い戻し中に使用されます。 税は含まれていません。 これは、有効期限の 30 日前に価格がロックされています。

ProvisioningState

予約の現在の状態を表します。

PurchaseRequest

予約購入の要求

RenewPropertiesResponse

予約の更新プロパティ。

ReservationBillingPlan

課金プランを表します。

ReservationMergeProperties

予約のマージのプロパティ

ReservationOrderBillingPlanInformation

この予約の課金プランの種類を説明する情報。

ReservationOrderResponse

返される予約注文の詳細。

ReservationResponse

予約の定義。

ReservationSplitProperties

予約分割のプロパティ

ReservationsProperties

予約のプロパティ

ReservationStatusCode
ReservationSwapProperties

予約スワップのプロパティ

ReservationTerm

予約の期間を表します。

ReservationUtilizationAggregates

予約使用率の集計値

ReservedResourceProperties

予約済みリソースの種類ごとに固有のプロパティ。 該当しない場合は必須ではありません。

ReservedResourceType

予約されているリソースの種類。

SkuName

SKU の名前

systemData

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

Utilization

予約の使用率

AppliedScopeProperties

適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 AppliedScopeType が ManagementGroup の場合は、tenantId と managementGroupId を指定する必要があります

名前 説明
displayName

string

表示名

managementGroupId

string

特典を適用する必要がある管理グループの完全修飾識別子。

resourceGroupId

string

リソース グループの完全修飾識別子。

subscriptionId

string

サブスクリプションの完全修飾識別子。

tenantId

string

節約プランで特典を適用する必要があるテナント ID。

AppliedScopeType

適用されたスコープの種類。

名前 説明
ManagementGroup

string

Shared

string

Single

string

BillingCurrencyTotal

顧客が更新購入のために顧客の現地通貨で請求される通貨と金額。 税は含まれていません。

名前 説明
amount

number

currencyCode

string

この購入レコードで使用される通貨の ISO 4217 3 文字の通貨コード。

createdByType

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

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

Error

エラー情報

名前 説明
error

ExtendedErrorInfo

エラー コードとエラー メッセージを含む拡張エラー情報

ErrorResponseCode

サービスが受信要求を処理できない理由を説明するエラー コード

名前 説明
ActivateQuoteFailed

string

AppliedScopesNotAssociatedWithCommerceAccount

string

AppliedScopesSameAsExisting

string

AuthorizationFailed

string

BadRequest

string

BillingCustomerInputError

string

BillingError

string

BillingPaymentInstrumentHardError

string

BillingPaymentInstrumentSoftError

string

BillingScopeIdCannotBeChanged

string

BillingTransientError

string

CalculatePriceFailed

string

CapacityUpdateScopesFailed

string

ClientCertificateThumbprintNotSet

string

CreateQuoteFailed

string

Forbidden

string

FulfillmentConfigurationError

string

FulfillmentError

string

FulfillmentOutOfStockError

string

FulfillmentTransientError

string

HttpMethodNotSupported

string

InternalServerError

string

InvalidAccessToken

string

InvalidFulfillmentRequestParameters

string

InvalidHealthCheckType

string

InvalidLocationId

string

InvalidRefundQuantity

string

InvalidRequestContent

string

InvalidRequestUri

string

InvalidReservationId

string

InvalidReservationOrderId

string

InvalidSingleAppliedScopesCount

string

InvalidSubscriptionId

string

InvalidTenantId

string

MissingAppliedScopesForSingle

string

MissingTenantId

string

NoValidReservationsToReRate

string

NonsupportedAccountId

string

NotSpecified

string

NotSupportedCountry

string

OperationCannotBePerformedInCurrentState

string

OperationFailed

string

PatchValuesSameAsExisting

string

PaymentInstrumentNotFound

string

PurchaseError

string

ReRateOnlyAllowedForEA

string

RefundLimitExceeded

string

ReservationIdNotInReservationOrder

string

ReservationOrderCreationFailed

string

ReservationOrderIdAlreadyExists

string

ReservationOrderNotEnabled

string

ReservationOrderNotFound

string

RiskCheckFailed

string

RoleAssignmentCreationFailed

string

SelfServiceRefundNotSupported

string

ServerTimeout

string

UnauthenticatedRequestsThrottled

string

UnsupportedReservationTerm

string

ExtendedErrorInfo

エラー コードとエラー メッセージを含む拡張エラー情報

名前 説明
code

ErrorResponseCode

サービスが受信要求を処理できない理由を説明するエラー コード

message

string

ExtendedStatusInfo

名前 説明
message

string

状態コードに関する詳細情報を示すメッセージ。

statusCode

ReservationStatusCode

InstanceFlexibility

これをオンにすると、同じ VM サイズ グループ内の他の VM に予約割引が適用されます。 VirtualMachines の予約済みリソースの種類にのみ を指定します。

名前 説明
Off

string

On

string

Kind

予約するリソース プロバイダーの種類。

名前 説明
Microsoft.Compute

string

PaymentDetail

予約注文に関連する支払いに関する情報。

名前 説明
billingAccount

string

この支払いに対して課金されるアカウントを表示します。

billingCurrencyTotal

Price

課金通貨で請求される金額。 税は含まれていません。 将来の支払いの場合は null です

dueDate

string

支払いが必要な日付。

extendedStatusInfo

ExtendedStatusInfo

paymentDate

string

トランザクションが完了した日付。 スケジュールされている場合は null です。

pricingCurrencyTotal

Price

価格通貨での金額。 税は含まれていません。

status

PaymentStatus

支払いが将来完了、失敗、取り消し、またはスケジュールされているかどうかを示します。

PaymentStatus

支払いが将来完了、失敗、取り消し、またはスケジュールされているかどうかを示します。

名前 説明
Cancelled

string

Failed

string

Scheduled

string

Succeeded

string

Price

金額と通貨コードを含む価格情報

名前 説明
amount

number

currencyCode

string

この購入レコードで使用される通貨の ISO 4217 3 文字の通貨コード。

PricingCurrencyTotal

Microsoft がレコードに使用する金額。 払い戻し制限を計算するために払い戻し中に使用されます。 税は含まれていません。 これは、有効期限の 30 日前に価格がロックされています。

名前 説明
amount

number

currencyCode

string

この購入レコードで使用される通貨の ISO 4217 3 文字の通貨コード。

ProvisioningState

予約の現在の状態を表します。

名前 説明
BillingFailed

string

Cancelled

string

ConfirmedBilling

string

ConfirmedResourceHold

string

Created

string

Creating

string

Expired

string

Failed

string

Merged

string

PendingBilling

string

PendingResourceHold

string

Split

string

Succeeded

string

PurchaseRequest

予約購入の要求

名前 既定値 説明
location

string

予約済みリソースが格納されている Azure リージョン。

properties.appliedScopeProperties

AppliedScopeProperties

適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 AppliedScopeType が ManagementGroup の場合は、tenantId と managementGroupId を指定する必要があります

properties.appliedScopeType

AppliedScopeType

適用されたスコープの種類。

properties.appliedScopes

string[]

特典が適用されるサブスクリプションの一覧。 AppliedScopeType が Shared かどうかを指定しないでください。 このプロパティは非推奨となり、Single AppliedScopeType の代わりに appliedScopeProperties に置き換えられます。

properties.billingPlan

ReservationBillingPlan

課金プランを表します。

properties.billingScopeId

string

予約プランまたは節約プランの購入に対して課金されるサブスクリプション

properties.displayName

string

予約のフレンドリ名

properties.quantity

integer

予約の一部である SKU の数量。

properties.renew

boolean

False

これを true に設定すると、有効期限の日時に新しい予約が自動的に購入されます。

properties.reservedResourceProperties

ReservedResourceProperties

予約済みリソースの種類ごとに固有のプロパティ。 該当しない場合は必須ではありません。

properties.reservedResourceType

ReservedResourceType

予約されているリソースの種類。

properties.reviewDateTime

string

これは、Azure ハイブリッド特典を確認する必要がある日時です。

properties.term

ReservationTerm

予約の期間を表します。

sku

SkuName

SKU の名前

RenewPropertiesResponse

予約の更新プロパティ。

名前 説明
billingCurrencyTotal

BillingCurrencyTotal

顧客が更新購入のために顧客の現地通貨で請求される通貨と金額。 税は含まれていません。

pricingCurrencyTotal

PricingCurrencyTotal

Microsoft がレコードに使用する金額。 払い戻し制限を計算するために払い戻し中に使用されます。 税は含まれていません。 これは、有効期限の 30 日前に価格がロックされています。

purchaseProperties

PurchaseRequest

予約購入の要求

ReservationBillingPlan

課金プランを表します。

名前 説明
Monthly

string

Upfront

string

ReservationMergeProperties

予約のマージのプロパティ

名前 説明
mergeDestination

string

予約リソース ID マージが原因で作成されました。 リソース ID の形式は /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です

mergeSources

string[]

この予約を形成するためにマージされたソース予約のリソース ID。 リソース ID の形式は /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です

ReservationOrderBillingPlanInformation

この予約の課金プランの種類を説明する情報。

名前 説明
nextPaymentDueDate

string

定期的な請求プランの場合は、次の支払いが処理される日付を示します。 合計が支払われる場合は null。

pricingCurrencyTotal

Price

注文に対して支払われる金額。 税は含まれていません。

startDate

string

課金プランが開始された日付。

transactions

PaymentDetail[]

予約注文に関連する支払いに関する情報。

ReservationOrderResponse

返される予約注文の詳細。

名前 説明
etag

integer

id

string

予約の識別子

name

string

予約の名前

properties.benefitStartTime

string

これは、予約特典が開始されたときの DateTime です。

properties.billingPlan

ReservationBillingPlan

課金プランを表します。

properties.createdDateTime

string

これは、予約が作成されたときの DateTime です。

properties.displayName

string

予約を簡単に識別できるユーザーのフレンドリ名。

properties.expiryDate

string

これは予約の有効期限が切れる日付です。

properties.expiryDateTime

string

これは、予約の有効期限が切れる日時です。

properties.originalQuantity

integer

予約で購入した SKU の合計数量。

properties.planInformation

ReservationOrderBillingPlanInformation

この予約の課金プランの種類を説明する情報。

properties.provisioningState

ProvisioningState

予約の現在の状態。

properties.requestDateTime

string

これは、予約が最初に購入を要求されたときの DateTime です。

properties.reservations

ReservationResponse[]

予約の定義。

properties.reviewDateTime

string

これは、Azure ハイブリッド特典を確認する必要がある日時です。

properties.term

ReservationTerm

予約の期間を表します。

systemData

systemData

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

type

string

リソースの種類。 "Microsoft.Capacity/reservations"

ReservationResponse

予約の定義。

名前 説明
etag

integer

id

string

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

kind

Kind

予約するリソース プロバイダーの種類。

location

string

予約済みリソースが格納されている Azure リージョン。

name

string

リソースの名前

properties

ReservationsProperties

この予約に関連付けられているプロパティ

sku

SkuName

この予約に関連付けられている SKU 情報

systemData

systemData

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

type

string

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

ReservationSplitProperties

予約分割のプロパティ

名前 説明
splitDestinations

string[]

分割が原因で作成されたターゲット リソース ID の一覧。 リソース ID の形式は /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です

splitSource

string

これが分割される予約のリソース ID。 リソース ID の形式は /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です

ReservationsProperties

予約のプロパティ

名前 既定値 説明
appliedScopeProperties

AppliedScopeProperties

適用されたスコープの種類に固有のプロパティ。 該当しない場合は必須ではありません。 AppliedScopeType が ManagementGroup の場合は、tenantId と managementGroupId を指定する必要があります

appliedScopeType

AppliedScopeType

適用されたスコープの種類

appliedScopes

string[]

適用されたスコープの一覧

archived

boolean

予約がアーカイブされているかどうかを示します

benefitStartTime

string

これは、予約特典が開始されたときの DateTime です。

billingPlan

ReservationBillingPlan

この SKU で使用できる課金プラン のオプション。

billingScopeId

string

予約プランまたは節約プランの購入に対して課金されるサブスクリプション

capabilities

string

予約の機能

displayName

string

予約を簡単に識別するためのユーザーのフレンドリ名

displayProvisioningState

string

表示用の予約のプロビジョニング状態 (例: Succeeded)

effectiveDateTime

string

このバージョンが有効になったときに開始される予約の DateTime。

expiryDate

string

これは予約の有効期限が切れる日付です。

expiryDateTime

string

これは、予約の有効期限が切れる日時です。

extendedStatusInfo

ExtendedStatusInfo

状態コードに関する詳細情報を示すメッセージ。

instanceFlexibility

InstanceFlexibility

同じ自動調整グループ内の SKU 間で予約割引を適用できるようにします。 すべての SKU でインスタンス サイズの柔軟性がサポートされているわけではありません。

lastUpdatedDateTime

string

予約が最後に更新された時刻の DateTime。

mergeProperties

ReservationMergeProperties

予約のマージのプロパティ

provisioningState

ProvisioningState

予約の現在の状態。

provisioningSubState

string

予約のプロビジョニング サブ状態 (成功など)

purchaseDate

string

これは、予約が購入された日付です。

purchaseDateTime

string

これは、予約が購入された日時です。

quantity

integer

予約の一部である SKU の数量。

renew

boolean

False

これを true に設定すると、有効期限の日時に新しい予約が自動的に購入されます。

renewDestination

string

更新のために購入された予約の予約 ID。 リソース ID の形式は /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です。

renewProperties

RenewPropertiesResponse

予約の更新プロパティ。

renewSource

string

この予約の更新元となる予約の予約 ID。 リソース ID の形式は /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です。

reservedResourceType

ReservedResourceType

予約されているリソースの種類。

reviewDateTime

string

これは、Azure ハイブリッド特典を確認する必要がある日時です。

skuDescription

string

SKU の説明 (英語)。

splitProperties

ReservationSplitProperties

予約分割のプロパティ

swapProperties

ReservationSwapProperties

予約スワップのプロパティ

term

ReservationTerm

予約の期間を表します。

userFriendlyAppliedScopeType

string

表示する予約の適用スコープの種類 (共有など)

userFriendlyRenewState

string

表示する予約の更新状態 (例: オン)

utilization

Utilization

予約の使用率

ReservationStatusCode

名前 説明
Active

string

Expired

string

Merged

string

None

string

PaymentInstrumentError

string

Pending

string

Processing

string

PurchaseError

string

Split

string

Succeeded

string

ReservationSwapProperties

予約スワップのプロパティ

名前 説明
swapDestination

string

元のリソースがスワップされる予約リソース ID。 リソース ID の形式は /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です

swapSource

string

スワップされるソース予約のリソース ID。 リソース ID の形式は /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} です

ReservationTerm

予約の期間を表します。

名前 説明
P1Y

string

P3Y

string

P5Y

string

ReservationUtilizationAggregates

予約使用率の集計値

名前 説明
grain

number

集計の粒度

grainUnit

string

集計のグレイン単位

value

number

集計値

valueUnit

string

集計値の単位

ReservedResourceProperties

予約済みリソースの種類ごとに固有のプロパティ。 該当しない場合は必須ではありません。

名前 説明
instanceFlexibility

InstanceFlexibility

これをオンにすると、同じ VM サイズ グループ内の他の VM に予約割引が適用されます。 VirtualMachines の予約済みリソースの種類にのみ を指定します。

ReservedResourceType

予約されているリソースの種類。

名前 説明
AVS

string

AppService

string

AzureDataExplorer

string

AzureFiles

string

BlockBlob

string

CosmosDb

string

DataFactory

string

Databricks

string

DedicatedHost

string

ManagedDisk

string

MariaDb

string

MySql

string

NetAppStorage

string

PostgreSql

string

RedHat

string

RedHatOsa

string

RedisCache

string

SapHana

string

SqlAzureHybridBenefit

string

SqlDataWarehouse

string

SqlDatabases

string

SqlEdge

string

SuseLinux

string

VMwareCloudSimple

string

VirtualMachineSoftware

string

VirtualMachines

string

SkuName

SKU の名前

名前 説明
name

string

systemData

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

名前 説明
createdAt

string

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

createdBy

string

リソースを作成した ID。

createdByType

createdByType

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

lastModifiedAt

string

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

lastModifiedBy

string

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

lastModifiedByType

createdByType

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

Utilization

予約の使用率

名前 説明
aggregates

ReservationUtilizationAggregates[]

予約の使用率の集計の配列

trend

string

予約の過去 7 日間の使用率の傾向