Azure Container Registry Tokens API

The Tokens API from Azure Container Registry — 2 operation(s) for tokens.

GitHub OpenAPI

Operations 5

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens Tokens list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName} Tokens get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName} Tokens create #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName} Tokens update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName} Tokens delete #

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/azure-container-registry:azure-container-registry-tokens-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

azure-container-registry-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ContainerRegistryManagementClient Tokens API
  version: '2025-11-01'
  description: The Microsoft Azure Container Registry management API provides create, read, update, and delete functionality for Azure Container Registry resources including registries, replications, webhooks, tasks, runs, and other registry components.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Tokens
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens
  : get:
      operationId: Tokens_List
      tags:
      - Tokens
      description: Lists all the tokens for the specified container registry.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: registryName
        in: path
        description: The name of the container registry.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9]*$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Tokens list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}
  : get:
      operationId: Tokens_Get
      tags:
      - Tokens
      description: Gets the properties of the specified token.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: registryName
        in: path
        description: The name of the container registry.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9]*$
      - name: tokenName
        in: path
        description: The name of the token.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9-]*$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Tokens get
      x-summary-source: derived
    put:
      operationId: Tokens_Create
      tags:
      - Tokens
      description: Creates a token for a container registry with the specified parameters.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: registryName
        in: path
        description: The name of the container registry.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9]*$
      - name: tokenName
        in: path
        description: The name of the token.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9-]*$
      responses:
        '200':
          description: Resource 'Token' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
        '201':
          description: Resource 'Token' create operation succeeded
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/Token'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Token'
        description: The parameters for creating a token.
        required: true
      summary: Tokens create
      x-summary-source: derived
    patch:
      operationId: Tokens_Update
      tags:
      - Tokens
      description: Updates a token with the specified parameters.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: registryName
        in: path
        description: The name of the container registry.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9]*$
      - name: tokenName
        in: path
        description: The name of the token.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9-]*$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
        '201':
          description: Resource 'Token' create operation succeeded
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
        final-state-schema: '#/definitions/Token'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenUpdateParameters'
        description: The parameters for updating a token.
        required: true
      summary: Tokens update
      x-summary-source: derived
    delete:
      operationId: Tokens_Delete
      tags:
      - Tokens
      description: Deletes a token from a container registry.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: registryName
        in: path
        description: The name of the container registry.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9]*$
      - name: tokenName
        in: path
        description: The name of the token.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 5
          pattern: ^[a-zA-Z0-9-]*$
      responses:
        '200':
          description: Resource deleted successfully.
        '202':
          description: Resource deletion accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Tokens delete
      x-summary-source: derived
components:
  schemas:
    Resource:
      type: object
      title: Resource
      description: Common fields that are returned in the response for all Azure Resource Manager resources
      properties:
        id:
          type: string
          format: arm-id
          description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
          readOnly: true
        name:
          type: string
          description: The name of the resource
          readOnly: true
        type:
          type: string
          description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
          readOnly: true
        systemData:
          $ref: '#/components/schemas/systemData'
          description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
          readOnly: true
      x-ms-azure-resource: true
    TokenPasswordName:
      type: string
      description: The password name "password1" or "password2"
      enum:
      - password1
      - password2
      x-ms-enum:
        name: TokenPasswordName
        modelAsString: true
        values:
        - name: password1
          value: password1
        - name: password2
          value: password2
    ProvisioningState:
      type: string
      description: The provisioning state of the archive at the time the operation was called.
      enum:
      - Creating
      - Updating
      - Deleting
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
        values:
        - name: Creating
          value: Creating
        - name: Updating
          value: Updating
        - name: Deleting
          value: Deleting
        - name: Succeeded
          value: Succeeded
        - name: Failed
          value: Failed
        - name: Canceled
          value: Canceled
    TokenUpdateParameters:
      type: object
      description: The parameters for updating a token.
      properties:
        properties:
          $ref: '#/components/schemas/TokenUpdateProperties'
          description: The properties of the token update parameters.
          x-ms-client-flatten: true
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    TokenPassword:
      type: object
      description: The password that will be used for authenticating the token of a container registry.
      properties:
        creationTime:
          type: string
          format: date-time
          description: The creation datetime of the password.
        expiry:
          type: string
          format: date-time
          description: The expiry datetime of the password.
        name:
          $ref: '#/components/schemas/TokenPasswordName'
          description: The password name "password1" or "password2"
        value:
          type: string
          description: The password value.
          readOnly: true
    TokenProperties:
      type: object
      description: The properties of a token.
      properties:
        creationDate:
          type: string
          format: date-time
          description: The creation date of scope map.
          readOnly: true
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: Provisioning state of the resource.
          readOnly: true
        scopeMapId:
          type: string
          description: The resource ID of the scope map to which the token will be associated with.
        credentials:
          $ref: '#/components/schemas/TokenCredentialsProperties'
          description: The credentials that can be used for authenticating the token.
        status:
          $ref: '#/components/schemas/TokenStatus'
          description: The status of the token example enabled or disabled.
    TokenCredentialsProperties:
      type: object
      description: The properties of the credentials that can be used for authenticating the token.
      properties:
        certificates:
          type: array
          items:
            $ref: '#/components/schemas/TokenCertificate'
          x-ms-identifiers:
          - thumbprint
        passwords:
          type: array
          items:
            $ref: '#/components/schemas/TokenPassword'
          x-ms-identifiers: []
    TokenCertificate:
      type: object
      description: The properties of a certificate used for authenticating a token.
      properties:
        name:
          $ref: '#/components/schemas/TokenCertificateName'
        expiry:
          type: string
          format: date-time
          description: The expiry datetime of the certificate.
        thumbprint:
          type: string
          description: The thumbprint of the certificate.
        encodedPemCertificate:
          type: string
          description: Base 64 encoded string of the public certificate1 in PEM format that will be used for authenticating the token.
    TokenCertificateName:
      type: string
      enum:
      - certificate1
      - certificate2
      x-ms-enum:
        name: TokenCertificateName
        modelAsString: true
        values:
        - name: certificate1
          value: certificate1
        - name: certificate2
          value: certificate2
    TokenUpdateProperties:
      type: object
      description: The parameters for updating token properties.
      properties:
        scopeMapId:
          type: string
          description: The resource ID of the scope map to which the token will be associated with.
        status:
          $ref: '#/components/schemas/TokenStatus'
          description: The status of the token example enabled or disabled.
        credentials:
          $ref: '#/components/schemas/TokenCredentialsProperties'
          description: The credentials that can be used for authenticating the token.
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
    TokenListResult:
      type: object
      description: The result of a request to list tokens for a container registry.
      properties:
        value:
          type: array
          description: The list of tokens. Since this list may be incomplete, the nextLink field should be used to request the next list of tokens.
          items:
            $ref: '#/components/schemas/Token'
        nextLink:
          type: string
          description: The URI that can be used to request the next list of tokens.
    Token:
      type: object
      description: An object that represents a token for a container registry.
      properties:
        properties:
          $ref: '#/components/schemas/TokenProperties'
          description: The properties of the token.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    TokenStatus:
      type: string
      description: The status of the token example enabled or disabled.
      enum:
      - enabled
      - disabled
      x-ms-enum:
        name: TokenStatus
        modelAsString: true
        values:
        - name: enabled
          value: enabled
        - name: disabled
          value: disabled
  parameters:
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  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.