Azure Kubernetes Service Managed Namespaces API

The ManagedNamespaces API from Azure Kubernetes Service — 3 operation(s) for managednamespaces.

GitHub OpenAPI

Operations 6

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces Managed namespaces list by managed cluster #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName} Managed namespaces get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName} Managed namespaces create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName} Managed namespaces update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName} Managed namespaces delete #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}/listCredential Managed namespaces list credential #

Documentation

Specifications

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-kubernetes-service:microsoft-azure-kubernetes-service-managednamespaces-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-kubernetes-service-managednamespaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ContainerServiceClient Managed Namespaces API
  version: '2026-09-01'
  description: The Container Service Client.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ManagedNamespaces
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces
  : get:
      operationId: ManagedNamespaces_ListByManagedCluster
      tags:
      - ManagedNamespaces
      description: Gets a list of managed namespaces in the specified managed cluster.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: resourceName
        in: path
        description: The name of the managed cluster resource.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedNamespaceListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Managed namespaces list by managed cluster
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}
  : get:
      operationId: ManagedNamespaces_Get
      tags:
      - ManagedNamespaces
      description: Gets the specified namespace of a managed cluster.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: resourceName
        in: path
        description: The name of the managed cluster resource.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$
      - name: managedNamespaceName
        in: path
        description: The name of the managed namespace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedNamespace'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Managed namespaces get
      x-summary-source: derived
    put:
      operationId: ManagedNamespaces_CreateOrUpdate
      tags:
      - ManagedNamespaces
      description: Creates or updates a namespace managed by ARM for the specified managed cluster. Users can configure aspects like resource quotas, network ingress/egress policies, and more. See aka.ms/aks/managed-namespaces for more details.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: resourceName
        in: path
        description: The name of the managed cluster resource.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$
      - name: managedNamespaceName
        in: path
        description: The name of the managed namespace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?'
      responses:
        '200':
          description: Resource 'ManagedNamespace' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedNamespace'
        '201':
          description: Resource 'ManagedNamespace' 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/ManagedNamespace'
        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/ManagedNamespace'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManagedNamespace'
        description: The namespace to create or update.
        required: true
      summary: Managed namespaces create or update
      x-summary-source: derived
    patch:
      operationId: ManagedNamespaces_Update
      tags:
      - ManagedNamespaces
      description: Updates tags on a managed namespace.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: resourceName
        in: path
        description: The name of the managed cluster resource.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$
      - name: managedNamespaceName
        in: path
        description: The name of the managed namespace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagedNamespace'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsObject'
        description: Parameters supplied to the patch namespace operation, we only support patch tags for now.
        required: true
      summary: Managed namespaces update
      x-summary-source: derived
    delete:
      operationId: ManagedNamespaces_Delete
      tags:
      - ManagedNamespaces
      description: Deletes a namespace.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: resourceName
        in: path
        description: The name of the managed cluster resource.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$
      - name: managedNamespaceName
        in: path
        description: The name of the managed namespace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?'
      responses:
        '202':
          description: Resource deletion accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
                format: uri
            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: azure-async-operation
      x-ms-long-running-operation: true
      summary: Managed namespaces delete
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}/listCredential
  : post:
      operationId: ManagedNamespaces_ListCredential
      tags:
      - ManagedNamespaces
      description: Lists the credentials of a namespace.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: resourceName
        in: path
        description: The name of the managed cluster resource.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$
      - name: managedNamespaceName
        in: path
        description: The name of the managed namespace.
        required: true
        schema:
          type: string
          maxLength: 63
          minLength: 1
          pattern: '[a-z0-9]([-a-z0-9]*[a-z0-9])?'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CredentialResults'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Managed namespaces list credential
      x-summary-source: derived
components:
  schemas:
    NamespaceProperties:
      type: object
      description: Properties of a namespace managed by ARM
      properties:
        provisioningState:
          $ref: '#/components/schemas/NamespaceProvisioningState'
          description: The current provisioning state of the namespace.
          readOnly: true
        labels:
          type: object
          description: The labels of managed namespace.
          additionalProperties:
            type: string
        annotations:
          type: object
          description: The annotations of managed namespace.
          additionalProperties:
            type: string
        portalFqdn:
          type: string
          description: The special FQDN used by the Azure Portal to access the Managed Cluster. This FQDN is for use only by the Azure Portal and should not be used by other clients. The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers to be sent in some responses, which Kubernetes APIServer doesn't handle by default. This special FQDN supports CORS, allowing the Azure Portal to function properly.
          readOnly: true
        defaultResourceQuota:
          $ref: '#/components/schemas/ResourceQuota'
          description: The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. Resource quotas are additive; if multiple resource quotas are applied to a given namespace, then the effective limit will be one such that all quotas on the namespace can be satisfied.
        defaultNetworkPolicy:
          $ref: '#/components/schemas/NetworkPolicies'
          description: The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. Network policies are additive; if a policy or policies apply to a given pod for a given direction, the connections allowed in that direction for the pod is the union of what all applicable policies allow.
        adoptionPolicy:
          $ref: '#/components/schemas/AdoptionPolicy'
          description: Action if Kubernetes namespace with same name already exists.
        deletePolicy:
          $ref: '#/components/schemas/DeletePolicy'
          description: Delete options of a namespace.
    CredentialResults:
      type: object
      description: The list credential result response.
      properties:
        kubeconfigs:
          type: array
          description: Base64-encoded Kubernetes configuration file.
          items:
            $ref: '#/components/schemas/CredentialResult'
          readOnly: true
          x-ms-identifiers: []
    ErrorDetail:
      type: object
      description: The error detail.
      properties:
        code:
          type: string
          description: The error code.
          readOnly: true
        message:
          type: string
          description: The error message.
          readOnly: true
        target:
          type: string
          description: The error target.
          readOnly: true
        details:
          type: array
          description: The error details.
          items:
            $ref: '#/components/schemas/ErrorDetail'
          readOnly: true
          x-ms-identifiers:
          - message
          - target
        additionalInfo:
          type: array
          description: The error additional info.
          items:
            $ref: '#/components/schemas/ErrorAdditionalInfo'
          readOnly: true
          x-ms-identifiers: []
    AdoptionPolicy:
      type: string
      description: Action if Kubernetes namespace with same name already exists.
      enum:
      - Never
      - IfIdentical
      - Always
      x-ms-enum:
        name: AdoptionPolicy
        modelAsString: true
        values:
        - name: Never
          value: Never
          description: If the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
        - name: IfIdentical
          value: IfIdentical
          description: Take over the existing namespace to be managed by ARM, if there is no difference.
        - name: Always
          value: Always
          description: Always take over the existing namespace to be managed by ARM, some fields might be overwritten.
    CredentialResult:
      type: object
      description: The credential result response.
      properties:
        name:
          type: string
          description: The name of the credential.
          readOnly: true
        value:
          type: string
          format: password
          description: Base64-encoded Kubernetes configuration file.
          readOnly: true
          x-ms-secret: true
    TrackedResource:
      type: object
      title: Tracked Resource
      description: The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
        location:
          type: string
          description: The geo-location where the resource lives
          x-ms-mutability:
          - read
          - create
      required:
      - location
      allOf:
      - $ref: '#/components/schemas/Resource'
    NamespaceProvisioningState:
      type: string
      description: The current provisioning state of the namespace.
      enum:
      - Updating
      - Deleting
      - Creating
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: NamespaceProvisioningState
        modelAsString: true
        values:
        - name: Updating
          value: Updating
          description: The namespace is being updated.
        - name: Deleting
          value: Deleting
          description: The namespace is being deleted.
        - name: Creating
          value: Creating
          description: The namespace is being created.
        - name: Succeeded
          value: Succeeded
          description: The namespace provisioning succeeded.
        - name: Failed
          value: Failed
          description: The namespace provisioning failed.
        - name: Canceled
          value: Canceled
          description: The namespace provisioning was canceled.
      readOnly: true
    NetworkPolicies:
      type: object
      description: Default network policy of the namespace, specifying ingress and egress rules.
      properties:
        ingress:
          type: string
          description: Enum representing different network policy rules.
          default: AllowSameNamespace
          enum:
          - DenyAll
          - AllowAll
          - AllowSameNamespace
          x-ms-enum:
            name: PolicyRule
            modelAsString: true
            values:
            - name: DenyAll
              value: DenyAll
              description: Deny all network traffic.
            - name: AllowAll
              value: AllowAll
              description: Allow all network traffic.
            - name: AllowSameNamespace
              value: AllowSameNamespace
              description: Allow traffic within the same namespace.
        egress:
          type: string
          description: Enum representing different network policy rules.
          default: AllowAll
          enum:
          - DenyAll
          - AllowAll
          - AllowSameNamespace
          x-ms-enum:
            name: PolicyRule
            modelAsString: true
            values:
            - name: DenyAll
              value: DenyAll
              description: Deny all network traffic.
            - name: AllowAll
              value: AllowAll
              description: Allow all network traffic.
            - name: AllowSameNamespace
              value: AllowSameNamespace
              description: Allow traffic within the same namespace.
    TagsObject:
      type: object
      description: Tags object for patch operations.
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
    ManagedNamespaceListResult:
      type: object
      description: The response of a ManagedNamespace list operation.
      properties:
        value:
          type: array
          description: The ManagedNamespace items on this page
          items:
            $ref: '#/components/schemas/ManagedNamespace'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    DeletePolicy:
      type: string
      description: Delete options of a namespace.
      enum:
      - Keep
      - Delete
      x-ms-enum:
        name: DeletePolicy
        modelAsString: true
        values:
        - name: Keep
          value: Keep
          description: Only delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
        - name: Delete
          value: Delete
          description: Delete both the ARM resource and the Kubernetes namespace together.
    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.
    ManagedNamespace:
      type: object
      description: Namespace managed by ARM.
      properties:
        properties:
          $ref: '#/components/schemas/NamespaceProperties'
          description: Properties of a namespace.
        eTag:
          type: string
          description: If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
          readOnly: true
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    ResourceQuota:
      type: object
      description: Resource quota for the namespace.
      properties:
        cpuRequest:
          type: string
          description: CPU request of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details.
        cpuLimit:
          type: string
          description: CPU limit of the namespace in one-thousandth CPU form. See [CPU resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu) for more details.
        memoryRequest:
          type: string
          description: 'Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details.'
        memoryLimit:
          type: string
          description: 'Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See [Memory resource units](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory) for more details.'
  parameters:
    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
    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
  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.