Microsoft.Capacity (stable:2022-11-01)

2025/04/30 • 14 updated methods

ReservationOrder_Calculate (updated)
Description Calculate price for placing a `ReservationOrder`.
Reference Link ¶

⚶ Changes

{
  "#id": "ReservationOrder_Calculate",
  "$parameters": {
    "body": {
      "$properties": {
        "properties": [
          {
            "#name": "reservedResourceType",
            "Description": {
              "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
              "old": "The type of the resource that is being reserved."
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Capacity/calculatePrice
{
api-version: string ,
body:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
netTotal: number ,
taxTotal: number ,
grandTotal: number ,
isTaxIncluded: boolean ,
isBillingPartnerManaged: boolean ,
reservationOrderId: string ,
skuTitle: string ,
skuDescription: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
paymentSchedule:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingAccount: string ,
status: enum ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
ReservationOrder_List (updated)
Description List of all the `ReservationOrder`s that the user has access to in the current tenant.
Reference Link ¶

⚶ Changes

{
  "#id": "ReservationOrder_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "reservations": {
                  "$properties": {
                    "properties": [
                      {
                        "renewProperties": [
                          {
                            "purchaseProperties": [
                              {
                                "properties": [
                                  {
                                    "#name": "reservedResourceType",
                                    "Description": {
                                      "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                                      "old": "The type of the resource that is being reserved."
                                    }
                                  }
                                ]
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationOrders
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
etag: integer ,
id: string ,
name: string ,
properties:
{
displayName: string ,
requestDateTime: string ,
createdDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
benefitStartTime: string ,
originalQuantity: integer ,
term: enum ,
provisioningState: enum ,
billingPlan: enum ,
planInformation:
{
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
startDate: string ,
nextPaymentDueDate: string ,
transactions:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingAccount: string ,
status: enum ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
}
,
]
,
}
,
reservations:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
reviewDateTime: string ,
}
,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
ReservationOrder_Purchase (updated)
Description Purchase `ReservationOrder` and create resource under the specified URI.
Reference Link ¶

⚶ Changes

{
  "#id": "ReservationOrder_Purchase",
  "$parameters": {
    "body": {
      "$properties": {
        "properties": [
          {
            "#name": "reservedResourceType",
            "Description": {
              "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
              "old": "The type of the resource that is being reserved."
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "reservations": {
              "$properties": {
                "properties": [
                  {
                    "renewProperties": [
                      {
                        "purchaseProperties": [
                          {
                            "properties": [
                              {
                                "#name": "reservedResourceType",
                                "Description": {
                                  "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                                  "old": "The type of the resource that is being reserved."
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    },
    "202": {
      "$properties": {
        "properties": [
          {
            "reservations": {
              "$properties": {
                "properties": [
                  {
                    "renewProperties": [
                      {
                        "purchaseProperties": [
                          {
                            "properties": [
                              {
                                "#name": "reservedResourceType",
                                "Description": {
                                  "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                                  "old": "The type of the resource that is being reserved."
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
{
reservationOrderId: string ,
api-version: string ,
body:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
}

⚐ Response (200)

{
etag: integer ,
id: string ,
name: string ,
properties:
{
displayName: string ,
requestDateTime: string ,
createdDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
benefitStartTime: string ,
originalQuantity: integer ,
term: enum ,
provisioningState: enum ,
billingPlan: enum ,
planInformation:
{
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
startDate: string ,
nextPaymentDueDate: string ,
transactions:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingAccount: string ,
status: enum ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
}
,
]
,
}
,
reservations:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
reviewDateTime: string ,
}
,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (202)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
etag: integer ,
id: string ,
name: string ,
properties:
{
displayName: string ,
requestDateTime: string ,
createdDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
benefitStartTime: string ,
originalQuantity: integer ,
term: enum ,
provisioningState: enum ,
billingPlan: enum ,
planInformation:
{
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
startDate: string ,
nextPaymentDueDate: string ,
transactions:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingAccount: string ,
status: enum ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
}
,
]
,
}
,
reservations:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
reviewDateTime: string ,
}
,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
ReservationOrder_Get (updated)
Description Get the details of the `ReservationOrder`.
Reference Link ¶

⚶ Changes

{
  "#id": "ReservationOrder_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "reservations": {
              "$properties": {
                "properties": [
                  {
                    "renewProperties": [
                      {
                        "purchaseProperties": [
                          {
                            "properties": [
                              {
                                "#name": "reservedResourceType",
                                "Description": {
                                  "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                                  "old": "The type of the resource that is being reserved."
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}
{
reservationOrderId: string ,
api-version: string ,
$expand: string ,
}

⚐ Response (200)

{
etag: integer ,
id: string ,
name: string ,
properties:
{
displayName: string ,
requestDateTime: string ,
createdDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
benefitStartTime: string ,
originalQuantity: integer ,
term: enum ,
provisioningState: enum ,
billingPlan: enum ,
planInformation:
{
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
startDate: string ,
nextPaymentDueDate: string ,
transactions:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingAccount: string ,
status: enum ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
}
,
]
,
}
,
reservations:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
reviewDateTime: string ,
}
,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Reservation_Split (updated)
Description Split a `Reservation` into two `Reservation`s with specified quantity distribution.
Reference Link ¶

⚶ Changes

{
  "#id": "Reservation_Split",
  "$responses": {
    "200": {
      "$items": {
        "$properties": {
          "properties": [
            {
              "renewProperties": [
                {
                  "purchaseProperties": [
                    {
                      "properties": [
                        {
                          "#name": "reservedResourceType",
                          "Description": {
                            "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                            "old": "The type of the resource that is being reserved."
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/split
{
reservationOrderId: string ,
api-version: string ,
body:
{
properties:
{
quantities:
[
integer ,
]
,
reservationId: string ,
}
,
}
,
}

⚐ Response (200)

{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Reservation_Merge (updated)
Description Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
Reference Link ¶

⚶ Changes

{
  "#id": "Reservation_Merge",
  "$responses": {
    "200": {
      "$items": {
        "$properties": {
          "properties": [
            {
              "renewProperties": [
                {
                  "purchaseProperties": [
                    {
                      "properties": [
                        {
                          "#name": "reservedResourceType",
                          "Description": {
                            "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                            "old": "The type of the resource that is being reserved."
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge
{
reservationOrderId: string ,
api-version: string ,
body:
{
properties:
{
sources:
[
string ,
]
,
}
,
}
,
}

⚐ Response (200)

{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Reservation_List (updated)
Description List `Reservation`s within a single `ReservationOrder`.
Reference Link ¶

⚶ Changes

{
  "#id": "Reservation_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "renewProperties": [
                  {
                    "purchaseProperties": [
                      {
                        "properties": [
                          {
                            "#name": "reservedResourceType",
                            "Description": {
                              "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                              "old": "The type of the resource that is being reserved."
                            }
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations
{
reservationOrderId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Reservation_Get (updated)
Description Get specific `Reservation` details.
Reference Link ¶

⚶ Changes

{
  "#id": "Reservation_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "renewProperties": [
              {
                "purchaseProperties": [
                  {
                    "properties": [
                      {
                        "#name": "reservedResourceType",
                        "Description": {
                          "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                          "old": "The type of the resource that is being reserved."
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
{
reservationOrderId: string ,
reservationId: string ,
api-version: string ,
$expand: string ,
}

⚐ Response (200)

{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Reservation_Update (updated)
Description Updates the applied scopes of the `Reservation`.
Reference Link ¶

⚶ Changes

{
  "#id": "Reservation_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "renewProperties": [
              {
                "purchaseProperties": [
                  {
                    "properties": [
                      {
                        "#name": "reservedResourceType",
                        "Description": {
                          "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                          "old": "The type of the resource that is being reserved."
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "renewProperties": [
              {
                "purchaseProperties": [
                  {
                    "properties": [
                      {
                        "#name": "reservedResourceType",
                        "Description": {
                          "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                          "old": "The type of the resource that is being reserved."
                        }
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
{
reservationOrderId: string ,
reservationId: string ,
api-version: string ,
parameters:
{
properties:
{
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
instanceFlexibility: enum ,
name: string ,
renew: boolean ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
}
,
reviewDateTime: string ,
}
,
}
,
}

⚐ Response (200)

{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Reservation_ListRevisions (updated)
Description List of all the revisions for the `Reservation`.
Reference Link ¶

⚶ Changes

{
  "#id": "Reservation_ListRevisions",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "renewProperties": [
                  {
                    "purchaseProperties": [
                      {
                        "properties": [
                          {
                            "#name": "reservedResourceType",
                            "Description": {
                              "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                              "old": "The type of the resource that is being reserved."
                            }
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions
{
reservationOrderId: string ,
reservationId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Return_Post (updated)
Description Return a reservation and get refund information.
Reference Link ¶

⚶ Changes

{
  "#id": "Return_Post",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "reservations": {
              "$properties": {
                "properties": [
                  {
                    "renewProperties": [
                      {
                        "purchaseProperties": [
                          {
                            "properties": [
                              {
                                "#name": "reservedResourceType",
                                "Description": {
                                  "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                                  "old": "The type of the resource that is being reserved."
                                }
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/return
{
reservationOrderId: string ,
api-version: string ,
body:
{
properties:
{
sessionId: string ,
scope: string ,
reservationToReturn:
{
reservationId: string ,
quantity: integer ,
}
,
returnReason: string ,
}
,
}
,
}

⚐ Response (200)

{
etag: integer ,
id: string ,
name: string ,
properties:
{
displayName: string ,
requestDateTime: string ,
createdDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
benefitStartTime: string ,
originalQuantity: integer ,
term: enum ,
provisioningState: enum ,
billingPlan: enum ,
planInformation:
{
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
startDate: string ,
nextPaymentDueDate: string ,
transactions:
[
{
dueDate: string ,
paymentDate: string ,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingAccount: string ,
status: enum ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
}
,
]
,
}
,
reservations:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
reviewDateTime: string ,
}
,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (202)

{
$headers:
{
location: string ,
}
,
$schema:
{
id: string ,
properties:
{
sessionId: string ,
quantity: integer ,
billingRefundAmount:
{
currencyCode: string ,
amount: number ,
}
,
pricingRefundAmount:
{
currencyCode: string ,
amount: number ,
}
,
policyResult:
{
properties:
{
consumedRefundsTotal:
{
currencyCode: string ,
amount: number ,
}
,
maxRefundLimit:
{
currencyCode: string ,
amount: number ,
}
,
policyErrors:
[
{
code: enum ,
message: string ,
}
,
]
,
}
,
}
,
billingInformation:
{
billingPlan: enum ,
completedTransactions: integer ,
totalTransactions: integer ,
billingCurrencyTotalPaidAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyProratedAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyRemainingCommitmentAmount:
{
currencyCode: string ,
amount: number ,
}
,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
CalculateExchange_Post (updated)
Description Calculates price for exchanging `Reservations` if there are no policy errors.
Reference Link ¶

⚶ Changes

{
  "#id": "CalculateExchange_Post",
  "$parameters": {
    "body": {
      "$properties": {
        "properties": [
          {
            "reservationsToPurchase": {
              "$properties": {
                "properties": [
                  {
                    "#name": "reservedResourceType",
                    "Description": {
                      "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                      "old": "The type of the resource that is being reserved."
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "reservationsToPurchase": {
              "$properties": {
                "properties": [
                  {
                    "properties": [
                      {
                        "#name": "reservedResourceType",
                        "Description": {
                          "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                          "old": "The type of the resource that is being reserved."
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Capacity/calculateExchange
{
api-version: string ,
body:
{
properties:
{
reservationsToPurchase:
[
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
]
,
savingsPlansToPurchase:
[
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
}
,
}
,
]
,
reservationsToExchange:
[
{
reservationId: string ,
quantity: integer ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
status: enum ,
properties:
{
sessionId: string ,
netPayable:
{
currencyCode: string ,
amount: number ,
}
,
refundsTotal:
{
currencyCode: string ,
amount: number ,
}
,
purchasesTotal:
{
currencyCode: string ,
amount: number ,
}
,
reservationsToPurchase:
[
{
properties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
]
,
savingsPlansToPurchase:
[
{
properties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
}
,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
]
,
reservationsToExchange:
[
{
reservationId: string ,
quantity: integer ,
billingRefundAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingInformation:
{
billingCurrencyTotalPaidAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyProratedAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyRemainingCommitmentAmount:
{
currencyCode: string ,
amount: number ,
}
,
}
,
}
,
]
,
policyResult:
{
policyErrors:
[
{
code: string ,
message: string ,
}
,
]
,
}
,
}
,
error:
{
code: string ,
message: string ,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Exchange_Post (updated)
Description Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
Reference Link ¶

⚶ Changes

{
  "#id": "Exchange_Post",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "reservationsToPurchase": {
              "$properties": {
                "properties": [
                  {
                    "properties": [
                      {
                        "#name": "reservedResourceType",
                        "Description": {
                          "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                          "old": "The type of the resource that is being reserved."
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /providers/Microsoft.Capacity/exchange
{
api-version: string ,
body:
{
properties:
{
sessionId: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
status: enum ,
properties:
{
sessionId: string ,
netPayable:
{
currencyCode: string ,
amount: number ,
}
,
refundsTotal:
{
currencyCode: string ,
amount: number ,
}
,
purchasesTotal:
{
currencyCode: string ,
amount: number ,
}
,
reservationsToPurchase:
[
{
reservationOrderId: string ,
reservationId: string ,
properties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
status: enum ,
}
,
]
,
savingsPlansToPurchase:
[
{
savingsPlanOrderId: string ,
savingsPlanId: string ,
properties:
{
sku:
{
name: string ,
}
,
properties:
{
displayName: string ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
appliedScopeType: enum ,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
commitment:
{
grain: enum ,
}
,
}
,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
status: enum ,
}
,
]
,
reservationsToExchange:
[
{
reservationId: string ,
quantity: integer ,
billingRefundAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingInformation:
{
billingCurrencyTotalPaidAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyProratedAmount:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyRemainingCommitmentAmount:
{
currencyCode: string ,
amount: number ,
}
,
}
,
status: enum ,
}
,
]
,
policyResult:
{
policyErrors:
[
{
code: string ,
message: string ,
}
,
]
,
}
,
}
,
error:
{
code: string ,
message: string ,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: enum ,
message: string ,
}
,
}
Reservation_ListAll (updated)
Description List the reservations and the roll up counts of reservations group by provisioning states that the user has access to in the current tenant.
Reference Link ¶

⚶ Changes

{
  "#id": "Reservation_ListAll",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "renewProperties": [
                  {
                    "purchaseProperties": [
                      {
                        "properties": [
                          {
                            "#name": "reservedResourceType",
                            "Description": {
                              "new": "The type of the resource that is being reserved. In addition to below types we have also added the following: OpenAIPTU, MDC, Sentinel.",
                              "old": "The type of the resource that is being reserved."
                            }
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /providers/Microsoft.Capacity/reservations
{
api-version: string ,
$filter: string ,
$orderby: string ,
refreshSummary: string ,
$skiptoken: number ,
selectedState: string ,
take: number ,
}

⚐ Response (200)

{
value:
[
{
location: string ,
etag: integer ,
sku:
{
name: string ,
}
,
properties:
{
reservedResourceType: enum ,
instanceFlexibility: enum ,
displayName: string ,
appliedScopes:
[
string ,
]
,
appliedScopeType: enum ,
archived: boolean ,
capabilities: string ,
quantity: integer ,
provisioningState: enum ,
effectiveDateTime: string ,
benefitStartTime: string ,
lastUpdatedDateTime: string ,
expiryDate: string ,
expiryDateTime: string ,
reviewDateTime: string ,
skuDescription: string ,
extendedStatusInfo:
{
statusCode: enum ,
message: string ,
}
,
billingPlan: enum ,
displayProvisioningState: string ,
provisioningSubState: string ,
purchaseDate: string ,
purchaseDateTime: string ,
splitProperties:
{
splitDestinations:
[
string ,
]
,
splitSource: string ,
}
,
mergeProperties:
{
mergeDestination: string ,
mergeSources:
[
string ,
]
,
}
,
swapProperties:
{
swapSource: string ,
swapDestination: string ,
}
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
billingScopeId: string ,
renew: boolean ,
renewSource: string ,
renewDestination: string ,
renewProperties:
{
purchaseProperties:
{
sku:
{
name: string ,
}
,
location: string ,
properties:
{
reservedResourceType: enum ,
billingScopeId: string ,
term: enum ,
billingPlan: enum ,
quantity: integer ,
displayName: string ,
appliedScopeType: enum ,
appliedScopes:
[
string ,
]
,
appliedScopeProperties:
{
tenantId: string ,
managementGroupId: string ,
subscriptionId: string ,
resourceGroupId: string ,
displayName: string ,
}
,
renew: boolean ,
reservedResourceProperties:
{
instanceFlexibility: enum ,
}
,
reviewDateTime: string ,
}
,
}
,
pricingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
billingCurrencyTotal:
{
currencyCode: string ,
amount: number ,
}
,
}
,
term: enum ,
userFriendlyAppliedScopeType: string ,
userFriendlyRenewState: string ,
utilization:
{
trend: string ,
aggregates:
[
{
grain: number ,
grainUnit: string ,
value: number ,
valueUnit: string ,
}
,
]
,
}
,
}
,
kind: enum ,
}
,
]
,
nextLink: string ,
summary:
{
succeededCount: number ,
failedCount: number ,
expiringCount: number ,
expiredCount: number ,
pendingCount: number ,
cancelledCount: number ,
processingCount: number ,
warningCount: number ,
noBenefitCount: number ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
}
,
}