{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-cluster-request-schema.json",
  "title": "ClusterRequest",
  "description": "This is the ClusterRequest entity defined in Harness",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-clusters-api-openapi.yml#/components/schemas/ClusterRequest",
  "required": [
    "envRef"
  ],
  "type": "object",
  "properties": {
    "identifier": {
      "type": "string",
      "description": "identifier of the cluster"
    },
    "orgIdentifier": {
      "type": "string",
      "description": "organization identifier of the cluster"
    },
    "agentIdentifier": {
      "type": "string",
      "description": "agent identifier of the cluster"
    },
    "projectIdentifier": {
      "type": "string",
      "description": "project identifier of the cluster"
    },
    "envRef": {
      "type": "string",
      "description": "environment identifier of the cluster"
    },
    "scope": {
      "type": "string",
      "description": "scope at which the cluster exists in harness gitops, project vs org vs account",
      "enum": [
        "ACCOUNT",
        "ORGANIZATION",
        "PROJECT"
      ]
    }
  }
}