{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vmware-tanzu/json-schema/vmware-tanzu-create-global-namespace-request-schema.json",
  "title": "CreateGlobalNamespaceRequest",
  "description": "Request body for creating a global namespace.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vmware-tanzu-global-namespaces-api-openapi.yml#/components/schemas/CreateGlobalNamespaceRequest",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Global namespace name."
    },
    "description": {
      "type": "string"
    },
    "domain_name": {
      "type": "string"
    },
    "mtls_enforced": {
      "type": "boolean",
      "default": true
    },
    "cluster_configs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ClusterConfig"
      }
    }
  },
  "$defs": {
    "ClusterConfig": {
      "type": "object",
      "description": "Configuration for a cluster participating in a global namespace.",
      "properties": {
        "cluster_name": {
          "type": "string",
          "description": "Name of the cluster."
        },
        "namespaces": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Kubernetes namespaces from this cluster to include."
        }
      }
    }
  }
}