Microsoft Azure Subscription Definitions Client

The Microsoft Azure Subscription Definitions Client is a tool that allows users to manage and define their Azure subscriptions. With this client, users can easily view and update the details of their Azure subscriptions, including billing information, resource quotas, and access permissions. This tool enables users to customize and organize their subscriptions to best suit their needs, enabling them to effectively utilize the resources available to them on the Azure cloud platform.

OpenAPI Specification

subscriptiondefinitionsclient-openapi-original.yml Raw ↑
swagger: '2.0'
info:
  version: 2017-11-01-preview
  title: Microsoft Azure SubscriptionDefinitionsClient
  description: >-
    Subscription definitions client provides an interface to create, modify and
    retrieve azure subscriptions programmatically.
host: management.azure.com
schemes:
  - https
consumes:
  - application/json
produces:
  - application/json
paths:
  /providers/Microsoft.Subscription/operations:
    get:
      tags:
        - SubscriptionDefinitions
      description: Lists all of the available Microsoft.Subscription API operations.
      operationId: microsoftAzureSubscriptiondefinitionsoperationmetadataList
      x-ms-examples:
        getSubscriptionDefinitionOperations:
          $ref: ./examples/getOperations.json
      parameters:
        - $ref: '#/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          schema:
            $ref: '#/definitions/OperationListResult'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Subscription Operations
  /providers/Microsoft.Subscription/subscriptionDefinitions/{subscriptionDefinitionName}:
    put:
      tags:
        - SubscriptionDefinitions
      description: Create an Azure subscription definition.
      operationId: microsoftAzureSubscriptiondefinitionsCreate
      x-ms-examples:
        createSubscriptionDefinition:
          $ref: ./examples/createSubscriptionDefinition.json
      parameters:
        - name: subscriptionDefinitionName
          in: path
          description: The name of the Azure subscription definition.
          required: true
          type: string
        - $ref: '#/parameters/apiVersionParameter'
        - name: body
          in: body
          description: The subscription definition creation.
          required: true
          schema:
            $ref: '#/definitions/SubscriptionDefinition'
      responses:
        '200':
          description: >-
            Normal response for a successful query. The response body will
            contain the data that matches the filters specified in the query
            parameters.
          schema:
            $ref: '#/definitions/SubscriptionDefinition'
        '202':
          description: Accepted. Subscription creation is in progress.
          headers:
            Location:
              description: >-
                GET this URL to retrieve the status of the asynchronous
                operation.
              type: string
            Retry-After:
              description: >-
                The amount of delay to use while the status of the operation is
                checked. The value is expressed in seconds.
              type: string
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      x-ms-long-running-operation: true
      summary: >-
        Microsoft Azure Put Providers Microsoft Subscription Subscriptiondefinitions Subscriptiondefinitionname
    get:
      tags:
        - SubscriptionDefinitions
      description: Get an Azure subscription definition.
      operationId: microsoftAzureSubscriptiondefinitionsGet
      x-ms-examples:
        getSubscriptionDefinition:
          $ref: ./examples/getSubscriptionDefinition.json
      parameters:
        - name: subscriptionDefinitionName
          in: path
          description: The name of the Azure subscription definition.
          required: true
          type: string
        - $ref: '#/parameters/apiVersionParameter'
      responses:
        '200':
          description: >-
            Normal response for a successful query. The response body will
            contain the data that matches the filters specified in the query
            parameters.
          schema:
            $ref: '#/definitions/SubscriptionDefinition'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      summary: >-
        Microsoft Azure Get Providers Microsoft Subscription Subscriptiondefinitions Subscriptiondefinitionname
  /providers/Microsoft.Subscription/subscriptionDefinitions:
    get:
      tags:
        - SubscriptionDefinitions
      description: List an Azure subscription definition by subscriptionId.
      operationId: microsoftAzureSubscriptiondefinitionsList
      x-ms-examples:
        ListSubscriptionDefinition:
          $ref: ./examples/listSubscriptionDefinitions.json
      parameters:
        - $ref: '#/parameters/apiVersionParameter'
      responses:
        '200':
          description: >-
            Normal response for a successful query. The response body will
            contain the data that matches the filters specified in the query
            parameters.
          schema:
            $ref: '#/definitions/SubscriptionDefinitionList'
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: '#/definitions/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Subscription Subscriptiondefinitions
  /providers/Microsoft.Subscription/subscriptionOperations/{operationId}:
    get:
      tags:
        - SubscriptionDefinitions
      description: >-
        Retrieves the status of the subscription definition PUT operation. The
        URI of this API is returned in the Location field of the response
        header.
      operationId: microsoftAzureSubscriptiondefinitionsGetoperationstatus
      x-ms-examples:
        getSubscriptionDefinitionOperation:
          $ref: ./examples/getSubscriptionDefinitionOperation.json
      parameters:
        - $ref: '#/parameters/apiVersionParameter'
        - name: operationId
          in: path
          description: >-
            The operation ID, which can be found from the Location field in the
            generate recommendation response header.
          required: true
          type: string
          format: uuid
      responses:
        '200':
          description: Successful completion of the asynchronous operation
          schema:
            $ref: '#/definitions/SubscriptionDefinition'
        '202':
          description: Accepted. Subscription update is in progress.
          headers:
            Location:
              description: >-
                The URL where the status of the asynchronous operation can be
                checked.
              type: string
            Retry-After:
              description: >-
                The amount of delay to use while the status of the operation is
                checked. The value is expressed in seconds.
              type: string
      deprecated: false
      summary: Microsoft Azure Get Providers Microsoft Subscription Subscriptionoperations Operationid
definitions:
  SubscriptionDefinition:
    description: The subscription definition used to create the subscription.
    x-ms-azure-resource: true
    properties:
      id:
        description: The resource ID.
        type: string
        readOnly: true
      name:
        description: The name of the resource.
        type: string
        readOnly: true
      type:
        description: The type of the resource.
        type: string
        readOnly: true
      properties:
        description: the subscription definition properties
        x-ms-client-flatten: true
        $ref: '#/definitions/SubscriptionDefinitionProperties'
  SubscriptionDefinitionProperties:
    description: The subscription definition properties.
    properties:
      subscriptionId:
        description: The ID of the subscription.
        readOnly: true
        type: string
      subscriptionDisplayName:
        description: The display name of the subscription.
        type: string
      offerType:
        type: string
        description: >-
          The offer type of the subscription. For example, MS-AZR-0017P
          (EnterpriseAgreement) and MS-AZR-0148P (EnterpriseAgreement devTest)
          are available.
        x-ms-mutability:
          - create
          - read
      etag:
        description: The etag the subscription definition.
        type: string
  SubscriptionDefinitionList:
    properties:
      value:
        type: array
        items:
          $ref: '#/definitions/SubscriptionDefinition'
        description: An array of subscriptionDefinitions
      nextLink:
        type: string
        description: URL to get the next set of operation list results if there are any.
    description: Subscription Definition List operation response.
  Operation:
    description: REST API operation
    type: object
    properties:
      name:
        description: 'Operation name: {provider}/{resource}/{operation}'
        type: string
      display:
        description: The object that represents the operation.
        properties:
          provider:
            description: 'Service provider: Microsoft.Subscription'
            type: string
          resource:
            description: >-
              Resource on which the operation is performed: Profile, endpoint,
              etc.
            type: string
          operation:
            description: 'Operation type: Read, write, delete, etc.'
            type: string
  OperationListResult:
    description: >-
      Result of the request to list operations. It contains a list of operations
      and a URL link to get the next set of results.
    properties:
      value:
        type: array
        items:
          $ref: '#/definitions/Operation'
        description: List of operations.
      nextLink:
        type: string
        description: URL to get the next set of operation list results if there are any.
  ErrorResponse:
    description: Describes the format of Error response.
    type: object
    properties:
      code:
        description: Error code
        type: string
      message:
        description: Error message indicating why the operation failed.
        type: string
parameters:
  apiVersionParameter:
    name: api-version
    in: query
    required: true
    type: string
    description: >-
      Version of the API to be used with the client request. Current version is
      2015-06-01
security:
  - azure_auth:
      - user_impersonation
securityDefinitions:
  azure_auth:
    type: oauth2
    authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    flow: implicit
    description: Azure Active Directory OAuth2 Flow
    scopes:
      user_impersonation: impersonate your user account
tags:
  - name: SubscriptionDefinitions