{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-deployment-safeguard-list-result-schema.json",
  "title": "DeploymentSafeguardListResult",
  "description": "The response of a DeploymentSafeguard list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-kubernetes-service-deploymentsafeguards-api-openapi.yml#/components/schemas/DeploymentSafeguardListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The DeploymentSafeguard items on this page",
      "items": {
        "$ref": "#/$defs/DeploymentSafeguard"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "DeploymentSafeguard": {
      "type": "object",
      "description": "Deployment Safeguards",
      "properties": {
        "properties": {
          "$ref": "#/$defs/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": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ProxyResource"
        }
      ]
    },
    "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"
          }
        ]
      }
    },
    "DeploymentSafeguardsProperties": {
      "type": "object",
      "description": "DeploymentSafeguards Properties",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "Provisioning State",
          "readOnly": true
        },
        "level": {
          "$ref": "#/$defs/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": "#/$defs/PodSecurityStandardsLevel",
          "description": "The pod security standards level"
        }
      },
      "required": [
        "level",
        "systemExcludedNamespaces"
      ]
    },
    "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."
          }
        ]
      }
    },
    "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
    }
  }
}