{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-access-review-response-schema.json",
  "title": "AccessReviewResponse",
  "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/AccessReviewResponse",
  "properties": {
    "account_id": {
      "type": "string"
    },
    "action": {
      "enum": [
        "get",
        "list",
        "create",
        "delete",
        "update"
      ],
      "type": "string"
    },
    "allowed": {
      "type": "boolean"
    },
    "cluster_id": {
      "type": "string"
    },
    "cluster_uuid": {
      "type": "string"
    },
    "is_ocm_internal": {
      "type": "boolean"
    },
    "organization_id": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "resource_type": {
      "enum": [
        "AddOn",
        "Flavour",
        "Account",
        "AccountPool",
        "Cluster",
        "Plan",
        "Subscription",
        "Organization",
        "Role",
        "Permission",
        "RoleBinding",
        "Registry",
        "RegistryCredential",
        "CurrentAccount",
        "AccessReview",
        "SelfAccessReview",
        "ResourceReview",
        "SelfResourceReview",
        "ClusterRegistration",
        "AccessToken",
        "ClusterAuthorization",
        "SelfManagedCluster",
        "RedhatManagedCluster",
        "ExportControlReview",
        "ClusterLog",
        "ClusterCredential",
        "ClusterMetric",
        "ResourceQuota",
        "ReservedResource",
        "Dashboard",
        "ClusterProviderAndRegion",
        "ServiceLog",
        "InternalServiceLog",
        "CSLogs",
        "SubscriptionLabel",
        "OrganizationLabel",
        "SubscriptionLabelInternal",
        "SubscriptionInternal",
        "SubscriptionRoleBinding",
        "ClusterSelfManaged",
        "ClusterSelfManagedAddon",
        "ClusterSelfManagedLabel",
        "ClusterSelfManagedStatus",
        "OsdTrialProtectedCluster",
        "ManifestWorkSync",
        "ClusterForcedUpgrade",
        "DeleteProtection",
        "ScheduledUpgrade"
      ],
      "type": "string"
    },
    "subscription_id": {
      "type": "string"
    }
  },
  "required": [
    "allowed"
  ],
  "type": "object"
}