Azure Virtual Machines Container Services API

The ContainerServices API from Azure Virtual Machines — 2 operation(s) for containerservices.

GitHub OpenAPI

Operations 2

GET /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices Gets a list of container services in the specified subscription #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName} Creates or updates a container service #

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

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-virtual-machines:microsoft-azure-virtual-machines-containerservices-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-virtual-machines-containerservices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ContainerServiceClient Container Services API
  description: The Container Service Client.
  version: '2017-01-31'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ContainerServices
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices:
    get:
      tags:
      - ContainerServices
      operationId: ContainerServices_List
      summary: Gets a list of container services in the specified subscription
      description: Gets a list of container services in the specified subscription. The operation returns properties of each container service including state, orchestrator, number of masters and agents, and FQDNs of masters and agents.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContainerServiceListResult'
      x-ms-pageable:
        nextLinkName: nextLink
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}
  : put:
      tags:
      - ContainerServices
      operationId: ContainerServices_CreateOrUpdate
      summary: Creates or updates a container service
      description: Creates or updates a container service with the specified configuration of orchestrator, masters, and agents.
      parameters:
      - name: resourceGroupName
        in: path
        required: true
        description: The name of the resource group.
        schema:
          type: string
      - name: containerServiceName
        in: path
        required: true
        description: The name of the container service in the specified subscription and resource group.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContainerService'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContainerService'
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContainerService'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContainerService'
        description: Parameters supplied to the Create or Update a Container Service operation.
        required: true
components:
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
      schema:
        type: string
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Client Api Version.
      schema:
        type: string
  schemas:
    ContainerServiceSshConfiguration:
      properties:
        publicKeys:
          type: array
          items:
            $ref: '#/components/schemas/ContainerServiceSshPublicKey'
          description: the list of SSH public keys used to authenticate with Linux-based VMs.
      description: SSH configuration for Linux-based VMs running on Azure.
      required:
      - publicKeys
    ContainerServiceLinuxProfile:
      properties:
        adminUsername:
          type: string
          description: The administrator username to use for Linux VMs.
          pattern: ^[a-z][a-z0-9_-]*$
        ssh:
          $ref: '#/components/schemas/ContainerServiceSshConfiguration'
          description: The ssh key configuration for Linux VMs.
      required:
      - adminUsername
      - ssh
      description: Profile for Linux VMs in the container service cluster.
    ContainerServiceSshPublicKey:
      properties:
        keyData:
          type: string
          description: Certificate public key used to authenticate with VMs through SSH. The certificate must be in PEM format with or without headers.
      required:
      - keyData
      description: Contains information about SSH certificate public key data.
    ContainerServiceMasterProfile:
      properties:
        count:
          type: integer
          format: int32
          enum:
          - 1
          - 3
          - 5
          description: Number of masters (VMs) in the container service cluster. Allowed values are 1, 3, and 5. The default value is 1.
          default: 1
        dnsPrefix:
          type: string
          description: DNS prefix to be used to create the FQDN for master.
        fqdn:
          readOnly: true
          type: string
          description: FQDN for the master.
      required:
      - dnsPrefix
      description: Profile for the container service master.
    ContainerServiceDiagnosticsProfile:
      properties:
        vmDiagnostics:
          $ref: '#/components/schemas/ContainerServiceVMDiagnostics'
          description: Profile for the container service VM diagnostic agent.
      required:
      - vmDiagnostics
    ContainerServiceAgentPoolProfile:
      properties:
        name:
          type: string
          description: Unique name of the agent pool profile in the context of the subscription and resource group.
        count:
          type: integer
          format: int32
          maximum: 100
          minimum: 1
          description: 'Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1. '
          default: 1
        vmSize:
          type: string
          enum:
          - Standard_A0
          - Standard_A1
          - Standard_A2
          - Standard_A3
          - Standard_A4
          - Standard_A5
          - Standard_A6
          - Standard_A7
          - Standard_A8
          - Standard_A9
          - Standard_A10
          - Standard_A11
          - Standard_D1
          - Standard_D2
          - Standard_D3
          - Standard_D4
          - Standard_D11
          - Standard_D12
          - Standard_D13
          - Standard_D14
          - Standard_D1_v2
          - Standard_D2_v2
          - Standard_D3_v2
          - Standard_D4_v2
          - Standard_D5_v2
          - Standard_D11_v2
          - Standard_D12_v2
          - Standard_D13_v2
          - Standard_D14_v2
          - Standard_G1
          - Standard_G2
          - Standard_G3
          - Standard_G4
          - Standard_G5
          - Standard_DS1
          - Standard_DS2
          - Standard_DS3
          - Standard_DS4
          - Standard_DS11
          - Standard_DS12
          - Standard_DS13
          - Standard_DS14
          - Standard_GS1
          - Standard_GS2
          - Standard_GS3
          - Standard_GS4
          - Standard_GS5
          x-ms-enum:
            name: ContainerServiceVMSizeTypes
            modelAsString: true
          description: Size of agent VMs.
        dnsPrefix:
          type: string
          description: DNS prefix to be used to create the FQDN for the agent pool.
        fqdn:
          readOnly: true
          type: string
          description: FQDN for the agent pool.
      required:
      - name
      - dnsPrefix
      - count
      - vmSize
      description: Profile for the container service agent pool.
    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
        location:
          type: string
          description: Resource location
        tags:
          type: object
          additionalProperties:
            type: string
          description: Resource tags
      required:
      - location
      x-ms-azure-resource: true
    ContainerServiceOrchestratorProfile:
      properties:
        orchestratorType:
          type: string
          enum:
          - Swarm
          - DCOS
          - Custom
          - Kubernetes
          x-ms-enum:
            name: ContainerServiceOrchestratorTypes
            modelAsString: false
          description: The orchestrator to use to manage container service cluster resources. Valid values are Swarm, DCOS, and Custom.
      description: Profile for the container service orchestrator.
      required:
      - orchestratorType
    ContainerServiceWindowsProfile:
      properties:
        adminUsername:
          type: string
          description: The administrator username to use for Windows VMs.
          pattern: ^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$
        adminPassword:
          type: string
          description: The administrator password to use for Windows VMs.
          pattern: ^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$
      required:
      - adminUsername
      - adminPassword
      description: Profile for Windows VMs in the container service cluster.
    ContainerService:
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ContainerServiceProperties'
      allOf:
      - $ref: '#/components/schemas/Resource'
      description: Container service.
    ContainerServiceVMDiagnostics:
      properties:
        enabled:
          type: boolean
          description: Whether the VM diagnostic agent is provisioned on the VM.
        storageUri:
          readOnly: true
          type: string
          description: The URI of the storage account where diagnostics are stored.
      description: Profile for diagnostics on the container service VMs.
      required:
      - enabled
    ContainerServiceListResult:
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/ContainerService'
          description: the list of container services.
        nextLink:
          type: string
          description: The URL to get the next set of container service results.
      description: The response from the List Container Services operation.
    ContainerServiceServicePrincipalProfile:
      properties:
        clientId:
          type: string
          description: The ID for the service principal.
        secret:
          type: string
          description: The secret password associated with the service principal.
      description: Information about a service principal identity for the cluster to use for manipulating Azure APIs.
      required:
      - clientId
      - secret
    ContainerServiceCustomProfile:
      properties:
        orchestrator:
          type: string
          description: The name of the custom orchestrator to use.
      description: Properties to configure a custom container service cluster.
      required:
      - orchestrator
    ContainerServiceProperties:
      properties:
        provisioningState:
          readOnly: true
          type: string
          description: the current deployment or provisioning state, which only appears in the response.
        orchestratorProfile:
          $ref: '#/components/schemas/ContainerServiceOrchestratorProfile'
          description: Properties of the orchestrator.
        customProfile:
          $ref: '#/components/schemas/ContainerServiceCustomProfile'
          description: Properties for custom clusters.
        servicePrincipalProfile:
          $ref: '#/components/schemas/ContainerServiceServicePrincipalProfile'
          description: Properties for cluster service principals.
        masterProfile:
          $ref: '#/components/schemas/ContainerServiceMasterProfile'
          description: Properties of master agents.
        agentPoolProfiles:
          type: array
          items:
            $ref: '#/components/schemas/ContainerServiceAgentPoolProfile'
          description: Properties of the agent pool.
        windowsProfile:
          $ref: '#/components/schemas/ContainerServiceWindowsProfile'
          description: Properties of Windows VMs.
        linuxProfile:
          $ref: '#/components/schemas/ContainerServiceLinuxProfile'
          description: Properties of Linux VMs.
        diagnosticsProfile:
          $ref: '#/components/schemas/ContainerServiceDiagnosticsProfile'
          description: Properties of the diagnostic agent.
      required:
      - masterProfile
      - agentPoolProfiles
      - linuxProfile
      description: Properties of the container service.
  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