{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-managed-namespace-list-result-schema.json",
  "title": "ManagedNamespaceListResult",
  "description": "The response of a ManagedNamespace list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-kubernetes-service-managednamespaces-api-openapi.yml#/components/schemas/ManagedNamespaceListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The ManagedNamespace items on this page",
      "items": {
        "$ref": "#/$defs/ManagedNamespace"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "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."
          }
        ]
      }
    },
    "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."
          }
        ]
      }
    },
    "ManagedNamespace": {
      "type": "object",
      "description": "Namespace managed by ARM.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/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": "../../../../../../common-types/resource-management/v6/types.json#/definitions/TrackedResource"
        }
      ]
    },
    "NamespaceProperties": {
      "type": "object",
      "description": "Properties of a namespace managed by ARM",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/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": "#/$defs/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": "#/$defs/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": "#/$defs/AdoptionPolicy",
          "description": "Action if Kubernetes namespace with same name already exists."
        },
        "deletePolicy": {
          "$ref": "#/$defs/DeletePolicy",
          "description": "Delete options of a namespace."
        }
      }
    },
    "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."
              }
            ]
          }
        }
      }
    },
    "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."
        }
      }
    }
  }
}