Microsoft Azure Reserved Instances API

The ReservedInstances API from Microsoft Azure, for reservedinstances.

GitHub OpenAPI
Business capability
IT Financial Management BC-600.80

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries Summarize usage for a reservation order · Microsoft Azure Get Providers Microsoft Capacity Reservationorders… #
Ask an LLM
“How well is my reserved instance order being used day by day or month by month?”
“Can I get monthly utilization summaries for a whole reservation order?”
Tell an agent
Show {grain} usage summaries for reservation order {order}.
Summarize reservation order {order} utilization at {grain} grain filtered by {filter}.
GET /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries Summarize usage for a single reservation · Microsoft Azure Get Providers Microsoft Capacity Reservationorders… #
Ask an LLM
“What is the daily utilization of one reservation inside an order?”
“Can I see monthly usage summaries for a specific reserved instance?”
Tell an agent
For just reservation {reservation} within order {order}, give me {grain} utilization summaries.
Summarize utilization of reservation {reservation} at {grain} grain.
GET /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails Get usage details for a reservation order · Microsoft Azure Get Providers Microsoft Capacity Reservationorders… #
Ask an LLM
“Which resources consumed my reservation order over a date range?”
“Can I pull detailed reserved instance usage records for an order between two dates?”
Tell an agent
List usage details for reservation order {order} with date filter {filter}.
Show detailed consumption of order {order} for range {filter}.
GET /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails Get usage details for a single reservation · Microsoft Azure Get Providers Microsoft Capacity Reservationorders… #
Ask an LLM
“Which VMs used one specific reservation during a date range?”
“Can I get per-resource usage details for a single reserved instance?”
Tell an agent
Break down which resources used only reservation {reservation} of order {order} over dates {filter}.
Show detailed consumption of reservation {reservation} for range {filter}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-reservedinstances-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-reservedinstances-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2019-04-01-preview
  title: Microsoft Azure ConsumptionManagementClient Reserved…
  description: Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ReservedInstances
paths:
  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries:
    get:
      tags:
      - ReservedInstances
      operationId: microsoftAzureReservationssummariesListbyreservationorder
      description: Lists the reservations summaries for daily or monthly grain.
      externalDocs:
        url: https://docs.microsoft.com/en-us/rest/api/consumption/
      x-ms-examples:
        ReservationSummariesDaily:
          $ref: ./examples/ReservationSummariesDaily.json
        ReservationSummariesMonthly:
          $ref: ./examples/ReservationSummariesMonthly.json
      parameters:
      - $ref: '#/components/parameters/reservationOrderIdParameter'
      - $ref: '#/components/parameters/grainParameter'
      - name: $filter
        description: Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and  'ge'
        in: query
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReservationSummariesListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Capacity Reservationorders…
  ? /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries
  : get:
      tags:
      - ReservedInstances
      operationId: microsoftAzureReservationssummariesListbyreservationorderandreservation
      description: Lists the reservations summaries for daily or monthly grain.
      externalDocs:
        url: https://docs.microsoft.com/en-us/rest/api/consumption/
      x-ms-examples:
        ReservationSummariesDailyWithReservationId:
          $ref: ./examples/ReservationSummariesDailyWithReservationId.json
        ReservationSummariesMonthlyWithReservationId:
          $ref: ./examples/ReservationSummariesMonthlyWithReservationId.json
      parameters:
      - $ref: '#/components/parameters/reservationOrderIdParameter'
      - $ref: '#/components/parameters/reservationIdParameter'
      - $ref: '#/components/parameters/grainParameter'
      - name: $filter
        description: Required only for daily grain. The properties/UsageDate for start date and end date. The filter supports 'le' and  'ge'
        in: query
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReservationSummariesListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Capacity Reservationorders…
  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails:
    get:
      tags:
      - ReservedInstances
      operationId: microsoftAzureReservationsdetailsListbyreservationorder
      description: Lists the reservations details for provided date range.
      externalDocs:
        url: https://docs.microsoft.com/en-us/rest/api/consumption/
      x-ms-examples:
        ReservationDetails:
          $ref: ./examples/ReservationDetails.json
      parameters:
      - $ref: '#/components/parameters/reservationOrderIdParameter'
      - name: $filter
        description: 'Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports ''le'' and  ''ge'' '
        in: query
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReservationDetailsListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Capacity Reservationorders…
  ? /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails
  : get:
      tags:
      - ReservedInstances
      operationId: microsoftAzureReservationsdetailsListbyreservationorderandreservation
      description: Lists the reservations details for provided date range.
      externalDocs:
        url: https://docs.microsoft.com/en-us/rest/api/consumption/
      x-ms-examples:
        ReservationDetailsWithReservationId:
          $ref: ./examples/ReservationDetailsWithReservationId.json
      parameters:
      - $ref: '#/components/parameters/reservationOrderIdParameter'
      - $ref: '#/components/parameters/reservationIdParameter'
      - name: $filter
        description: 'Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports ''le'' and  ''ge'' '
        in: query
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReservationDetailsListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Capacity Reservationorders…
components:
  schemas:
    ReservationDetailsListResult:
      description: Result of listing reservation details.
      properties:
        value:
          description: The list of reservation details.
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/ReservationDetail'
        nextLink:
          description: The link (url) to the next page of results.
          type: string
          readOnly: true
    ErrorResponse:
      description: Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
      type: object
      properties:
        error:
          description: The details of the error.
          $ref: '#/components/schemas/ErrorDetails'
    ReservationSummary:
      description: reservation summary resource.
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ReservationSummaryProperties'
          title: Reservation Summary properties
    ReservationDetail:
      description: reservation detail resource.
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ReservationDetailProperties'
          title: Reservation Detail properties
    ReservationSummariesListResult:
      description: Result of listing reservation summaries.
      properties:
        value:
          description: The list of reservation summaries.
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/ReservationSummary'
        nextLink:
          description: The link (url) to the next page of results.
          type: string
          readOnly: true
    ReservationSummaryProperties:
      description: The properties of the reservation summary.
      properties:
        reservationOrderId:
          description: The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.
          type: string
          readOnly: true
        reservationId:
          description: The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.
          type: string
          readOnly: true
        skuName:
          description: This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.
          type: string
          readOnly: true
        reservedHours:
          description: This is the total hours reserved. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days
          type: number
          format: decimal
          readOnly: true
        usageDate:
          description: Data corresponding to the utilization record. If the grain of data is monthly, it will be first day of month.
          type: string
          format: date-time
          readOnly: true
        usedHours:
          description: Total used hours by the reservation
          type: number
          format: decimal
          readOnly: true
        minUtilizationPercentage:
          description: This is the minimum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 10%, this field will return 10% for that day
          type: number
          format: decimal
          readOnly: true
        avgUtilizationPercentage:
          description: This is average utilization for the entire time range. (day or month depending on the grain)
          type: number
          format: decimal
          readOnly: true
        maxUtilizationPercentage:
          description: This is the maximum hourly utilization in the usage time (day or month). E.g. if usage record corresponds to 12/10/2017 and on that for hour 4 and 5, utilization was 100%, this field will return 100% for that day.
          type: number
          format: decimal
          readOnly: true
    ErrorDetails:
      description: The details of the error.
      properties:
        code:
          description: Error code.
          type: string
          readOnly: true
        message:
          description: Error message indicating why the operation failed.
          type: string
          readOnly: true
    ReservationDetailProperties:
      description: The properties of the reservation detail.
      properties:
        reservationOrderId:
          description: The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.
          type: string
          readOnly: true
        reservationId:
          description: The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.
          type: string
          readOnly: true
        skuName:
          description: This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.
          type: string
          readOnly: true
        reservedHours:
          description: This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days.
          type: number
          format: decimal
          readOnly: true
        usageDate:
          description: The date on which consumption occurred.
          type: string
          format: date-time
          readOnly: true
        usedHours:
          description: This is the total hours used by the instance.
          type: number
          format: decimal
          readOnly: true
        instanceId:
          description: This identifier is the name of the resource or the fully qualified Resource ID.
          type: string
          readOnly: true
        totalReservedQuantity:
          description: This is the total count of instances that are reserved for the reservationId.
          type: number
          format: decimal
          readOnly: true
    Resource:
      description: The Resource model definition.
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id.
        name:
          readOnly: true
          type: string
          description: Resource name.
        type:
          readOnly: true
          type: string
          description: Resource type.
        tags:
          readOnly: true
          type: object
          additionalProperties:
            type: string
          description: Resource tags.
      x-ms-azure-resource: true
  parameters:
    reservationOrderIdParameter:
      name: reservationOrderId
      in: path
      description: Order Id of the reservation
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    reservationIdParameter:
      name: reservationId
      in: path
      description: Id of the reservation
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    apiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Version of the API to be used with the client request. The current version is 2019-04-01-preview.
      schema:
        type: string
    grainParameter:
      name: grain
      description: Can be daily or monthly
      x-ms-parameter-location: method
      in: query
      required: true
      x-ms-enum:
        name: datagrain
        modelAsString: true
        values:
        - value: daily
          description: Daily grain of data
          name: DailyGrain
        - value: monthly
          description: Monthly grain of data
          name: MonthlyGrain
      schema:
        type: string
        enum:
        - daily
        - monthly
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/consumption/resource-manager/Microsoft.Consumption/stable/2019-01-01/consumption.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)