Azure Kubernetes Service Deployment Safeguards API

The DeploymentSafeguards API from Azure Kubernetes Service — 2 operation(s) for deploymentsafeguards.

GitHub OpenAPI

Operations 4

GET /{resourceUri}/providers/Microsoft.ContainerService/deploymentSafeguards Deployment safeguards list #
GET /{resourceUri}/providers/Microsoft.ContainerService/deploymentSafeguards/default Deployment safeguards get #
PUT /{resourceUri}/providers/Microsoft.ContainerService/deploymentSafeguards/default Deployment safeguards create #
DELETE /{resourceUri}/providers/Microsoft.ContainerService/deploymentSafeguards/default Deployment safeguards delete #

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-deploymentsafeguards-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-deploymentsafeguards-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ContainerServiceDeploymentSafeguardsClient Deployment…
  version: '2025-07-01'
  description: Azure Kubernetes Service Deployment Safeguards API Client.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DeploymentSafeguards
paths:
  /{resourceUri}/providers/Microsoft.ContainerService/deploymentSafeguards:
    get:
      operationId: DeploymentSafeguards_List
      tags:
      - DeploymentSafeguards
      description: List DeploymentSafeguards by parent resource
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.ResourceManager.ResourceUriParameter'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeploymentSafeguardListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Deployment safeguards list
      x-summary-source: derived
  /{resourceUri}/providers/Microsoft.ContainerService/deploymentSafeguards/default:
    get:
      operationId: DeploymentSafeguards_Get
      tags:
      - DeploymentSafeguards
      description: Fetch a deployment safeguard by name
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.ResourceManager.ResourceUriParameter'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeploymentSafeguard'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Deployment safeguards get
      x-summary-source: derived
    put:
      operationId: DeploymentSafeguards_Create
      tags:
      - DeploymentSafeguards
      description: Creates or updates a deploymentSafeguard
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.ResourceManager.ResourceUriParameter'
      responses:
        '200':
          description: Resource 'DeploymentSafeguard' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeploymentSafeguard'
        '201':
          description: Resource 'DeploymentSafeguard' 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/DeploymentSafeguard'
        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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeploymentSafeguard'
        description: Resource create parameters.
        required: true
      summary: Deployment safeguards create
      x-summary-source: derived
    delete:
      operationId: DeploymentSafeguards_Delete
      tags:
      - DeploymentSafeguards
      description: Delete DeploymentSafeguards
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.ResourceManager.ResourceUriParameter'
      responses:
        '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: Deployment safeguards delete
      x-summary-source: derived
components:
  schemas:
    DeploymentSafeguardListResult:
      type: object
      description: The response of a DeploymentSafeguard list operation.
      properties:
        value:
          type: array
          description: The DeploymentSafeguard items on this page
          items:
            $ref: '#/components/schemas/DeploymentSafeguard'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    DeploymentSafeguardsProperties:
      type: object
      description: DeploymentSafeguards Properties
      properties:
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: Provisioning State
          readOnly: true
        level:
          $ref: '#/components/schemas/DeploymentSafeguardsLevel'
          description: The deployment safeguards level. Possible values are Warn and Enforce
        excludedNamespaces:
          type: array
          description: User defined list of namespaces to exclude from Deployment Safeguards. Deployments in these namespaces will not be checked against any safeguards
          items:
            type: string
        systemExcludedNamespaces:
          type: array
          description: System defined list of namespaces excluded from Deployment Safeguards. These are determined by the underlying provider (such as AKS), and cannot be changed. Deployments in these namespaces will not be checked
          items:
            type: string
          readOnly: true
        podSecurityStandardsLevel:
          $ref: '#/components/schemas/PodSecurityStandardsLevel'
          description: The pod security standards level
      required:
      - level
      - systemExcludedNamespaces
    DeploymentSafeguardsLevel:
      type: string
      description: Specifies the level of Deployment Safeguards
      enum:
      - Warn
      - Enforce
      x-ms-enum:
        name: DeploymentSafeguardsLevel
        modelAsString: true
        values:
        - name: Warn
          value: Warn
          description: Best practice violations will only show warnings
        - name: Enforce
          value: Enforce
          description: Best practice violations will be denied
    ProvisioningState:
      type: string
      description: The provisioning state of the last accepted operation.
      enum:
      - Succeeded
      - Failed
      - Canceled
      - Creating
      - Updating
      - Deleting
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
        values:
        - name: Succeeded
          value: Succeeded
          description: Resource has been created.
        - name: Failed
          value: Failed
          description: Resource creation failed.
        - name: Canceled
          value: Canceled
          description: Resource creation was canceled.
        - name: Creating
          value: Creating
          description: The provisioning state of DeploymentSafeguards being created.
        - name: Updating
          value: Updating
          description: The provisioning state of DeploymentSafeguards being updated.
        - name: Deleting
          value: Deleting
          description: The provisioning state of DeploymentSafeguards being deleted.
      readOnly: true
    PodSecurityStandardsLevel:
      type: string
      description: Specifies the Pod Security Standards level
      enum:
      - Privileged
      - Baseline
      - Restricted
      x-ms-enum:
        name: PodSecurityStandardsLevel
        modelAsString: true
        values:
        - name: PodSecurityStandardsPrivileged
          value: Privileged
          description: Privileged level is an unrestricted policy, providing the widest possible level of permissions. This policy allows for known privilege escalations.
        - name: PodSecurityStandardsBaseline
          value: Baseline
          description: Baseline level is a minimally restrictive policy which prevents known privilege escalations. Allows the default (minimally specified) Pod configuration.
        - name: PodSecurityStandardsRestricted
          value: Restricted
          description: Restricted level is a heavily restricted policy, following current Pod hardening best practices.
    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'
    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.
    DeploymentSafeguard:
      type: object
      description: Deployment Safeguards
      properties:
        properties:
          $ref: '#/components/schemas/DeploymentSafeguardsProperties'
          description: The resource-specific properties for this resource.
          x-ms-client-flatten: true
        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/ProxyResource'
  parameters:
    Azure.ResourceManager.ResourceUriParameter:
      name: resourceUri
      in: path
      description: The fully qualified Azure Resource manager identifier of the resource.
      required: true
      x-ms-parameter-location: method
      x-ms-skip-url-encoding: true
      schema:
        type: string
    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.