Microsoft Azure Subscriptions Management Client

The Microsoft Azure Subscriptions Management Client is a tool that helps users effectively manage their Azure subscriptions. It allows users to easily view and update their subscription details, such as billing information, usage reports, and access control. With this client, users can easily track their resource usage, allocate costs, and optimize their subscription plans to fit their specific needs.

OpenAPI Specification

subscriptionsmanagementclient-openapi-original.yml Raw ↑
swagger: '2.0'
info:
  version: '2015-11-01'
  title: Microsoft Azure SubscriptionsManagementClient
  description: The Admin Subscriptions Management Client.
host: management.azure.com
schemes:
  - https
produces:
  - application/json
consumes:
  - application/json
paths:
  /providers/Microsoft.Subscriptions.Admin/operations:
    get:
      x-ms-examples:
        Get the list of Operations.:
          $ref: ./examples/Subscriptions/Operations.json
      description: Get the list of Operations.
      tags:
        - Operations
      operationId: microsoftAzureOperationsList
      parameters:
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/OperationList'
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: Microsoft Azure Get Providers Microsoft Subscriptions Admin Operations
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/updateEncryption:
    post:
      x-ms-examples:
        Update the encryption settings.:
          $ref: ./examples/Subscriptions/UpdateEncryption.json
      description: Update the encryption settings.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsUpdateencryption
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: >-
        Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Updateencryption
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/restoreData:
    post:
      x-ms-examples:
        Get the list of subscriptions.:
          $ref: ./examples/Subscriptions/List.json
      description: Restores the data
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsRestoredata
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/SubscriptionList'
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: >-
        Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Restoredata
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/checkIdentityHealth:
    post:
      x-ms-examples:
        Check the identity health.:
          $ref: ./examples/Subscriptions/CheckIdentityHealth.json
      description: Checks the identity health
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsCheckidentityhealth
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/IdentityHealthCheckReportDefinition'
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: >-
        Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Checkidentityhealth
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/moveSubscriptions:
    post:
      x-ms-examples:
        Move user subscriptions from the Default Provider to a Delegated Provider.:
          $ref: ./examples/Subscriptions/MoveSubscriptionsToDelegatedProvider.json
        Move user subscriptions from a Delegated Provider to the Default Provider.:
          $ref: ./examples/Subscriptions/MoveSubscriptionsToDefaultProvider.json
      description: Move subscriptions between delegated provider offers.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsMovesubscriptions
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/MoveSubscriptionsParameter'
      responses:
        '202':
          description: >-
            Accepted -- Move subscriptions request accepted; operation will
            complete asynchronously.
        '204':
          description: >-
            No Content -- The subscriptions were successfully moved to the
            target delegated provider offer.
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      x-ms-long-running-operation: true
      summary: >-
        Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Movesubscriptions
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/validateMoveSubscriptions:
    post:
      x-ms-examples:
        Validate that user subscriptions can be moved from the Default Provider to a Delegated Provider.:
          $ref: >-
            ./examples/Subscriptions/ValidateMoveSubscriptionsToDelegatedProvider.json
        Validate that user subscriptions can be moved from a Delegated Provider to the Default Provider.:
          $ref: >-
            ./examples/Subscriptions/ValidateMoveSubscriptionsToDefaultProvider.json
      description: >-
        Validate that user subscriptions can be moved between delegated provider
        offers.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsValidatemovesubscriptions
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/MoveSubscriptionsParameter'
      responses:
        '202':
          description: >-
            Accepted -- Validate move subscriptions request accepted; operation
            will complete asynchronously.
        '204':
          description: >-
            No Content -- The subscriptions can be moved to the target delegated
            provider offer.
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      x-ms-long-running-operation: true
      summary: >-
        Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Validatemovesubscriptions
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/subscriptions:
    get:
      x-ms-examples:
        Get the list of subscriptions.:
          $ref: ./examples/Subscriptions/List.json
      description: Get the list of subscriptions.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsList
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/FilterParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/SubscriptionList'
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      x-ms-pageable:
        nextLinkName:
      x-ms-odata: '#/definitions/SubscriptionDefinition'
      summary: >-
        Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Subscriptions
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/checkNameAvailability:
    post:
      x-ms-examples:
        Checks name availability in the Microsoft.Subscriptions.Admin namespace:
          $ref: ./examples/Subscriptions/CheckNameAvailability.json
      description: Get the list of subscriptions.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsChecknameavailability
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
        - $ref: '#/parameters/CheckNameAvailabilityParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/CheckNameAvailabilityResponse'
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: >-
        Microsoft Azure Post Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Checknameavailability
  /subscriptions/{subscriptionId}/providers/Microsoft.Subscriptions.Admin/subscriptions/{targetSubscriptionId}:
    get:
      x-ms-examples:
        Get a specified subscription.:
          $ref: ./examples/Subscriptions/Get.json
      description: Get a specified subscription.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsGet
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/TargetSubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/SubscriptionDefinition'
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: >-
        Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Subscriptions Targetsubscriptionid
    put:
      x-ms-examples:
        Creates or updates the specified subscription.:
          $ref: ./examples/Subscriptions/Create.json
      description: Creates or updates the specified subscription.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsCreateorupdate
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/TargetSubscriptionIdParameter'
        - $ref: '#/parameters/SubscriptionDefinitionParameter'
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/SubscriptionDefinition'
        '201':
          description: Created
          schema:
            $ref: '#/definitions/SubscriptionDefinition'
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: >-
        Microsoft Azure Put Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Subscriptions Targetsubscriptionid
    delete:
      x-ms-examples:
        Delete the specified subscription.:
          $ref: ./examples/Subscriptions/Delete.json
      description: Delete the specified subscription.
      tags:
        - Subscriptions
      operationId: microsoftAzureSubscriptionsDelete
      parameters:
        - $ref: '#/parameters/SubscriptionIdParameter'
        - $ref: '#/parameters/TargetSubscriptionIdParameter'
        - $ref: '#/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
        default:
          description: Unexpected Error
          schema:
            $ref: Subscriptions.json#/definitions/Error
      summary: >-
        Microsoft Azure Delete Subscriptions Subscriptionid Providers Microsoft Subscriptions Admin Subscriptions Targetsubscriptionid
definitions:
  Resource:
    description: Base Resource Object
    type: object
    properties:
      id:
        readOnly: true
        description: URI of the resource.
        type: string
      name:
        readOnly: true
        description: Name of the resource.
        type: string
      type:
        readOnly: true
        description: Type of resource.
        type: string
      location:
        description: Location of the resource
        type: string
      tags:
        readOnly: true
        description: List of key-value pairs.
        type: object
        additionalProperties:
          type: string
    x-ms-azure-resource: true
  Error:
    type: object
    description: Error response.
    properties:
      error:
        $ref: '#/definitions/ErrorDefinition'
        description: The error details.
  ErrorDefinition:
    type: object
    description: Error definition.
    properties:
      code:
        description: >-
          Service specific error code which serves as the substatus for the HTTP
          error code.
        type: string
        readOnly: true
      message:
        description: Description of the error.
        type: string
        readOnly: true
      details:
        description: Internal error details.
        type: array
        items:
          $ref: '#/definitions/ErrorDefinition'
        x-ms-identifiers: []
        readOnly: true
  Display:
    description: >-
      Contains the localized display information for this particular operation /
      action.
    properties:
      provider:
        description: >-
          The localized friendly form of the resource provider name – it is
          expected to also include the publisher/company responsible. It should
          use Title Casing and begin with "Microsoft" for 1st party services.
          e.g. "Microsoft Monitoring Insights" or "Microsoft Compute."
        type: string
        readOnly: true
      resource:
        description: >-
          The localized, friendly version of the resource type related to this
          action or operation; the resource type should match the public
          documentation for the resource provider.
        type: string
        readOnly: true
      operation:
        description: >-
          The localized, friendly name for the operation. Use the name as it
          will displayed to the user.
        type: string
        readOnly: true
      description:
        description: >-
          The localized, friendly description for the operation. The description
          will be displayed to the user. It should be thorough and concise for
          used in both tooltips and detailed views.
        type: string
        readOnly: true
  Operation:
    description: Supported REST operation.
    type: object
    properties:
      display:
        description: Display information for the operation.
        $ref: '#/definitions/Display'
        readOnly: true
      isDataAction:
        description: >-
          Whether the operation applies to data-plane. This is "true" for
          data-plane operations and "false" for ARM/control-plane operations.
        type: boolean
        readOnly: true
      name:
        description: Name of the operation being performed on an object.
        type: string
        readOnly: true
      origin:
        description: Origin for the operation.
        type: string
        readOnly: true
  OperationList:
    description: List of supported operations.
    type: object
    properties:
      value:
        description: List of supported operations.
        type: array
        items:
          $ref: '#/definitions/Operation'
        x-ms-identifiers:
          - name
  CheckNameAvailabilityDefinition:
    description: The check name availability action definition.
    type: object
    properties:
      name:
        description: The resource name to verify.
        type: string
      resourceType:
        description: The resource type to verify.
        type: string
  CheckNameAvailabilityResponse:
    description: The check name availability response definition
    type: object
    properties:
      nameAvailable:
        description: A value indicating whether the name is available.
        type: boolean
      reason:
        description: The reason for the unavailability of the name.
        $ref: '#/definitions/NameUnavailabilityReason'
      message:
        description: The message explaining the reason.
        type: string
  IdentityHealthCheckReportDefinition:
    description: The identity health check report action definition.
    type: object
    properties:
      reportStartTimeUtc:
        description: Start time of the report.
        type: string
        format: date-time
      reportEndTimeUtc:
        description: End time of the report.
        type: string
        format: date-time
      status:
        description: The roll-up health status for the directory.
        $ref: '#/definitions/HealthStatus'
      directoryTenants:
        description: List of directory tenant health reports.
        $ref: '#/definitions/DirectoryTenantHealthReportList'
  DirectoryTenantHealthReportList:
    description: List of directory tenant health reports.
    properties:
      value:
        type: array
        description: Directory tenant health report.
        items:
          $ref: '#/definitions/DirectoryTenantHealthReport'
        x-ms-identifiers:
          - tenantId
      nextLink:
        description: URI to the next page.
        type: string
  DirectoryTenantHealthReport:
    description: >-
      A report of the health status of a directory tenant and identity
      applications within.
    type: object
    properties:
      tenantId:
        description: The tenant unique identifier.
        type: string
      tenantName:
        description: The directory tenant resource name.
        type: string
      status:
        description: The roll-up health status for the directory.
        $ref: '#/definitions/HealthStatus'
      applications:
        description: List of the application health reports.
        $ref: '#/definitions/ApplicationHealthReportList'
  ApplicationHealthReportList:
    description: List of the application health reports.
    properties:
      value:
        type: array
        description: A report of the health status of an identity applications.
        items:
          $ref: '#/definitions/ApplicationHealthReport'
        x-ms-identifiers: []
      nextLink:
        description: URI to the next page.
        type: string
  ApplicationHealthReport:
    description: A report of the health status of an identity applications.
    type: object
    properties:
      appId:
        description: The application identifier.
        type: string
      servicePrincipalObjectId:
        description: The service principal identifier.
        type: string
      status:
        description: The roll-up health status for the application
        $ref: '#/definitions/HealthStatus'
      appRoleAssignments:
        description: List of AppRoleAssignment health reports for the application.
        $ref: '#/definitions/AppRoleAssignmentHealthReportList'
      oAuth2PermissionGrants:
        description: List of OAuth2PermissionGrant health reports for the application.
        $ref: '#/definitions/OAuth2PermissionGrantHealthReportList'
      servicePrincipalTags:
        description: List of ServicePrincipalTag health reports for the application.
        $ref: '#/definitions/ServicePrincipalTagHealthReportList'
  AppRoleAssignmentHealthReportList:
    description: List of AppRoleAssignment health reports for the application.
    properties:
      value:
        type: array
        description: A report of the health status of an AppRoleAssignment.
        items:
          $ref: '#/definitions/AppRoleAssignmentHealthReport'
        x-ms-identifiers:
          - appRoleAssignment/resource
      nextLink:
        description: URI to the next page.
        type: string
  AppRoleAssignmentHealthReport:
    description: A report of the health status of an AppRoleAssignment.
    type: object
    properties:
      appRoleAssignment:
        description: The permission description.
        $ref: '#/definitions/AppRoleAssignmentDefinition'
      status:
        description: The health status for the permission.
        $ref: '#/definitions/HealthStatus'
  AppRoleAssignmentDefinition:
    description: Application role assignment definition.
    type: object
    properties:
      resource:
        description: >-
          The resource identifier. This should be the application identifier of
          the resource application.
        type: string
      client:
        description: >-
          The client identifier. This should be the application identifier of
          the client application.
        type: string
      roleId:
        description: >-
          The role identifier. This should be the ID of the AppRole exposed by
          the resource application.
        type: string
  OAuth2PermissionGrantHealthReportList:
    description: List of OAuth2PermissionGrant health reports for the application.
    properties:
      value:
        type: array
        description: A report of the health status of an OAuth2PermissionGrant.
        items:
          $ref: '#/definitions/OAuth2PermissionGrantHealthReport'
        x-ms-identifiers:
          - oAuth2PermissionGrant/resource
      nextLink:
        description: URI to the next page.
        type: string
  OAuth2PermissionGrantHealthReport:
    description: A report of the health status of an OAuth2PermissionGrant.
    type: object
    properties:
      oAuth2PermissionGrant:
        description: The permission description.
        $ref: '#/definitions/OAuth2PermissionGrantDefinition'
      status:
        description: The health status for the permission.
        $ref: '#/definitions/HealthStatus'
  OAuth2PermissionGrantDefinition:
    description: Application permission grant definition.
    type: object
    properties:
      resource:
        description: >-
          The resource identifier. This should be the application identifier of
          the resource application.
        type: string
      client:
        description: >-
          The client identifier. This should be the application identifier of
          the client application.
        type: string
      scope:
        description: >-
          The scope identifier. This should be the scope value of the
          OAUTH2PERMISSION exposed by the resource application.
        type: string
  ServicePrincipalTagHealthReportList:
    description: List of ServicePrincipalTag health reports for the application.
    properties:
      value:
        type: array
        description: >-
          A report of the health status of a tag on an identity application
          service principal.
        items:
          $ref: '#/definitions/ServicePrincipalTagHealthReport'
        x-ms-identifiers:
          - servicePrincipalTag
      nextLink:
        description: URI to the next page.
        type: string
  ServicePrincipalTagHealthReport:
    description: >-
      A report of the health status of a tag on an identity application service
      principal.
    type: object
    properties:
      servicePrincipalTag:
        description: The tag.
        type: string
      status:
        description: The health status for the tag.
        $ref: '#/definitions/HealthStatus'
  NameUnavailabilityReason:
    description: The reason that the name is not available.
    type: string
    enum:
      - Invalid
      - AlreadyExists
    x-ms-enum:
      name: NameUnavailabilityReason
      modelAsString: true
  MoveSubscriptionsDefinition:
    description: The move subscriptions action definition
    type: object
    required:
      - resources
    properties:
      targetDelegatedProviderOffer:
        description: >-
          The delegated provider offer identifier (from the Admin context) that
          the subscriptions to be moved to.
        type: string
      resources:
        description: >-
          A collection of subscriptions to move to the target delegated provider
          offer.
        type: array
        items:
          type: string
  SubscriptionDefinition:
    description: Subscription object properties.
    type: object
    properties:
      delegatedProviderSubscriptionId:
        description: Parent DelegatedProvider subscription identifier.
        type: string
      displayName:
        description: Subscription name.
        type: string
      id:
        description: Fully qualified identifier.
        type: string
      externalReferenceId:
        description: External reference identifier.
        type: string
      offerId:
        description: Identifier of the offer under the scope of a delegated provider.
        type: string
      owner:
        description: Subscription owner.
        type: string
      routingResourceManagerType:
        description: Routing resource manager type.
        $ref: '#/definitions/ResourceManagerType'
      state:
        description: Subscription state.
        $ref: '#/definitions/SubscriptionState'
      subscriptionId:
        description: Subscription identifier.
        type: string
      tenantId:
        description: Directory tenant identifier.
        type: string
    x-ms-azure-resource: true
  SubscriptionList:
    description: List of subscriptions.
    properties:
      value:
        type: array
        description: Subscription definition.
        items:
          $ref: '#/definitions/SubscriptionDefinition'
      nextLink:
        description: URI to the next page.
        type: string
  ResourceManagerType:
    description: Resource manager type.
    type: string
    enum:
      - Default
      - Admin
    x-ms-enum:
      name: ResourceManagerType
      modelAsString: true
  SubscriptionState:
    description: Subscription notification state.
    type: string
    enum:
      - NotDefined
      - Enabled
      - Warned
      - PastDue
      - Disabled
      - Deleted
      - Deleting
      - PartiallyDeleted
    x-ms-enum:
      name: SubscriptionState
      modelAsString: true
      values:
        - description: Subscription is active. New resources can be created.
          name: Enabled
          value: Enabled
        - description: This state is not used in Azure Stack.
          name: PastDue
          value: PastDue
        - description: This state is not used in Azure Stack.
          name: Warned
          value: Warned
        - description: >-
            Subscription is not active and usage is not reported. Resources are
            shut down (VMs stopped and deallocated, IP addresses are freed,
            etc). During this period, the Azure Stack Operator can re-enable the
            subscription which allows creation of new resources but doesn’t
            automatically restore disabled resources.
          name: Disabled
          value: Disabled
        - description: >-
            This state is unique to Azure Stack and is only visible to the Azure
            Stack Operator, and if used, to the respective Delegated Provider.
            Resources and Data are being deleted before subscription state is
            set to Deleted. This state cannot be reversed. It means that
            deletion is in progress.
          name: Deleting
          value: Deleting
        - description: >-
            Final state of subscription. All resources and data are deleted.
            This state cannot be reversed.
          name: Deleted
          value: Deleted
        - description: This state is not used in Azure Stack.
          name: NotDefined
          value: NotDefined
        - description: >-
            This state is unique to Azure Stack and is only visible to the Azure
            Stack Operator, and if used, to the respective Delegated Provider.
            It means that deletion failed.  You can’t reverse the deletion
            process, so in this state all you can do is restart deletion.  This
            state is not reported to RPs.
          name: PartiallyDeleted
          value: PartiallyDeleted
  HealthStatus:
    description: Health Status.
    type: string
    enum:
      - Unknown
      - Unhealthy
      - Healthy
    x-ms-enum:
      name: HealthStatus
      modelAsString: true
      values:
        - description: The health status is unknown.
          name: Unknown
          value: Unknown
        - description: >-
            The health status is unhealthy, indicating something is wrong or a
            sub-health status is Unhealthy or Unknown.
          name: Unhealthy
          value: Unhealthy
        - description: The health status is healthy, indicating nothing is wrong.
          name: Healthy
          value: Healthy
  Metric:
    description: >-
      The resource metric set that represents the metrics for a particular
      resource.
    type: object
    properties:
      metricUnit:
        description: Unit of metrics.
        $ref: '#/definitions/MetricUnit'
      timeGrain:
        description: Timespan of the metric.
        type: string
      startTime:
        description: Start time of the metric.
        type: string
        format: date-time
      endTime:
        description: End time of the metric.
        type: string
        format: date-time
      metricValues:
        description: Collected metric values in the timespan.
        $ref: '#/definitions/MetricValueList'
  MetricValue:
    description: Metric value
    type: object
    properties:
      timeStamp:
        description: Timestamp of when the metric value was collected.
        type: string
        format: date-time
      average:
        description: Average value for metric sample period.
        type: number
        format: double
      minimum:
        description: Minimum value for metric sample period.
        type: number
        format: double
      maximum:
        description: Maximum value for metric sample period.
        type: number
        format: double
      total:
        description: Total value for metric sample period.
        type: number
        format: double
      count:
        description: Number of measurements for metric sample period.
        type: integer
        format: int32
      properties:
        x-ms-client-name: extendedProperties
        description: Extended properties.
        type: object
        additionalProperties:
          type: string
  MetricValueList:
    description: List of metric values.
    type: array
    items:
      $ref: '#/definitions/MetricValue'
    x-ms-identifiers: []
  MetricDefinition:
    description: Metric Definition
    type: object
    properties:
      name:
        description: Metric definition name.
        type: string
      unit:
        description: Unit of metrics.
        $ref: '#/definitions/MetricUnit'
      primaryAggregationType:
        description: Type of the primary aggregation.
        $ref: '#/definitions/MetricPrimaryAggregationType'
      metricAvailabilities:
        description: Metric availabilities.
        $ref: '#/definitions/MetricAvailabilityList'
  MetricUnit:
    description: The resource metric unit.
    type: string
    enum:
      - Count
      - Bytes
      - Seconds
      - CountPerSecond
      - BytesPerSecond
    x-ms-enum:
      name: MetricUnit
      modelAsString: true
      values:
        - description: The count.
          name: Count
          value: Count
        - description: The bytes.
          name: Bytes
          value: Bytes
        - description: The seconds.
          name: Seconds
          value: Seconds
        - description: The count per second.
          name: CountPerSecond
          value: CountPerSecond
        - description: The bytes per second.
          name: BytesPerSecond
          value: BytesPerSecond
  MetricPrimaryAggregationType:
    description: The primary aggregation type for resource metric.
    type: string
    enum:
      - None
      - Average
      - Total
      - Minimum
      - Maximum
      - Last
    x-ms-enum:
      name: MetricPrimaryAggregationType
      modelAsString: true
      values:
        - description: No aggregation applied to resource.
          name: None
          value: None
        - description: The average aggregation type.
          name: Average
          value: Average
        - description: The total aggregation type.
          name: Total
          value: Total
        - description: The minimum aggregation type.
          name: Minimum
          value: Minimum
        - description: The maximum aggregation type.
          name: Maximum
          value: Maximum
        - description: The last aggregation type.
          name: Last
          value: Last
  MetricAvailability:
    description: Metric Definition
    type: object
    properties:
      timeGrain:
        description: The time grain. Metrics will be available for this time grain.
        type: string
      retention:
        description: the retention. Metrics may be queried for this interval.
        type: string
  MetricAvailabilityList:
    description: List of metric defin

# --- truncated at 32 KB (35 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-azure/refs/heads/main/openapi/subscriptionsmanagementclient-openapi-original.yml