{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-cluster-authorization-request-schema.json",
  "title": "ClusterAuthorizationRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-openshift-ocm-accounts-mgmt-openapi.yml#/components/schemas/ClusterAuthorizationRequest",
  "properties": {
    "account_username": {
      "type": "string"
    },
    "availability_zone": {
      "type": "string"
    },
    "byoc": {
      "type": "boolean"
    },
    "cloud_account_id": {
      "type": "string"
    },
    "cloud_provider_id": {
      "type": "string"
    },
    "cluster_id": {
      "type": "string"
    },
    "disconnected": {
      "type": "boolean"
    },
    "display_name": {
      "type": "string"
    },
    "external_cluster_id": {
      "type": "string"
    },
    "managed": {
      "type": "boolean"
    },
    "product_category": {
      "enum": [
        "assistedInstall",
        "HostedControlPlane"
      ],
      "type": "string"
    },
    "product_id": {
      "default": "OSD",
      "enum": [
        "OCP",
        "OSD",
        "OSDTrial",
        "MOA",
        "MOA-HostedControlPlane",
        "RHMI",
        "RHOSAK",
        "RHOSAKTrial",
        "RHOSR",
        "RHOSRTrial",
        "RHOSE",
        "RHOSETrial",
        "RHACS",
        "RHACSTrial",
        "ARO",
        "RHOIC",
        "OCP-AssistedInstall",
        "ROVS"
      ],
      "type": "string"
    },
    "quota_version": {
      "type": "string"
    },
    "reserve": {
      "type": "boolean"
    },
    "resources": {
      "items": {
        "$ref": "#/$defs/ReservedResource"
      },
      "type": "array"
    },
    "rh_region_id": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    }
  },
  "required": [
    "cluster_id",
    "account_username"
  ],
  "type": "object",
  "$defs": {
    "ObjectReference": {
      "properties": {
        "href": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ReservedResource": {
      "allOf": [
        {
          "$ref": "#/$defs/ObjectReference"
        },
        {
          "properties": {
            "availability_zone_type": {
              "type": "string"
            },
            "billing_marketplace_account": {
              "type": "string"
            },
            "billing_model": {
              "enum": [
                "standard",
                "marketplace",
                "marketplace-aws",
                "marketplace-rhm",
                "marketplace-azure",
                "marketplace-gcp"
              ],
              "type": "string"
            },
            "byoc": {
              "type": "boolean"
            },
            "cluster": {
              "type": "boolean"
            },
            "count": {
              "type": "integer"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "resource_name": {
              "type": "string"
            },
            "resource_type": {
              "enum": [
                "compute.node.aws",
                "pv.storage.aws",
                "cluster.aws",
                "network.io.aws",
                "network.loadbalancer.aws",
                "compute.node.gcp",
                "pv.storage.gcp",
                "cluster.gcp",
                "network.io.gcp",
                "network-gcp.loadbalancer.gcp",
                "addon",
                "compute.node",
                "pv.storage",
                "cluster",
                "network.io",
                "network.loadbalancer"
              ],
              "type": "string"
            },
            "scope": {
              "type": "string"
            },
            "subscription": {
              "$ref": "#/$defs/ObjectReference"
            },
            "updated_at": {
              "format": "date-time",
              "type": "string"
            }
          },
          "required": [
            "byoc"
          ],
          "type": "object"
        }
      ]
    }
  }
}