{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-version-schema.json",
  "title": "Version",
  "description": "Representation of an _OpenShift_ version.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-openshift-ocm-clusters-mgmt-openapi.yml#/components/schemas/Version",
  "properties": {
    "kind": {
      "description": "Indicates the type of this object. Will be 'Version' if this is a complete object or 'VersionLink' if it is just a link.",
      "type": "string"
    },
    "id": {
      "description": "Unique identifier of the object.",
      "type": "string"
    },
    "href": {
      "description": "Self link.",
      "type": "string"
    },
    "gcp_marketplace_enabled": {
      "description": "GCPMarketplaceEnabled indicates if this version can be used to create GCP Marketplace clusters.",
      "type": "boolean"
    },
    "rosa_enabled": {
      "description": "ROSAEnabled indicates whether this version can be used to create ROSA clusters.",
      "type": "boolean"
    },
    "available_channels": {
      "description": "AvailableChannels is the list of channels in which this version is present",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "available_upgrades": {
      "description": "AvailableUpgrades is the list of versions this version can be upgraded to.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "channel_group": {
      "description": "ChannelGroup is the name of the group where this image belongs.\nChannelGroup is a mechanism to partition the images to different groups,\neach image belongs to only a single group.",
      "type": "string"
    },
    "default": {
      "description": "Indicates if this should be selected as the default version when a cluster is created\nwithout specifying explicitly the version.",
      "type": "boolean"
    },
    "enabled": {
      "description": "Indicates if this version can be used to create clusters.",
      "type": "boolean"
    },
    "end_of_life_timestamp": {
      "description": "EndOfLifeTimestamp is the date and time when the version will get to End of Life, using the\nformat defined in https://www.ietf.org/rfc/rfc3339.txt[RC3339].",
      "type": "string",
      "format": "date-time"
    },
    "hosted_control_plane_default": {
      "description": "HostedControlPlaneDefault is a flag that indicates if this should be selected as the default version when a\nHCP cluster is created without specifying explicitly the version.",
      "type": "boolean"
    },
    "hosted_control_plane_enabled": {
      "description": "HostedControlPlaneEnabled indicates whether this version can be used to create HCP clusters.",
      "type": "boolean"
    },
    "image_overrides": {
      "description": "ImageOverrides contains the lists of images per cloud provider.",
      "$ref": "#/$defs/ImageOverrides"
    },
    "raw_id": {
      "description": "RawID is the id of the version - without channel group and prefix.",
      "type": "string"
    },
    "release_image": {
      "description": "ReleaseImage contains the URI of Openshift release image for amd64 architecture.",
      "type": "string"
    },
    "release_images": {
      "description": "ReleaseImages contains the URI of OpenShift release images for arm64 and multi architectures.",
      "$ref": "#/$defs/ReleaseImages"
    },
    "wif_enabled": {
      "description": "WifEnabled is a flag that indicates whether this version is enabled for Workload Identity Federation.",
      "type": "boolean"
    }
  },
  "$defs": {
    "AMIOverride": {
      "description": "AMIOverride specifies what Amazon Machine Image should be used for a particular product and region.",
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'AMIOverride' if this is a complete object or 'AMIOverrideLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "ami": {
          "description": "AMI is the id of the Amazon Machine Image.",
          "type": "string"
        },
        "product": {
          "description": "Link to the product type.",
          "$ref": "#/$defs/Product"
        },
        "region": {
          "description": "Link to the cloud provider region.",
          "$ref": "#/$defs/CloudRegion"
        }
      }
    },
    "BillingModelItem": {
      "description": "BillingModelItem represents a billing model",
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'BillingModelItem' if this is a complete object or 'BillingModelItemLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "billing_model_type": {
          "description": "BillingModelType is the type of the BillingModel. e.g. standard, marketplace.",
          "type": "string"
        },
        "description": {
          "description": "Single line description of the billing model.",
          "type": "string"
        },
        "display_name": {
          "description": "User friendly display name of the billing model.",
          "type": "string"
        },
        "marketplace": {
          "description": "Indicates the marketplace of the billing model. e.g. gcp, aws, etc.",
          "type": "string"
        }
      }
    },
    "CloudProvider": {
      "description": "Cloud provider.",
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'CloudProvider' if this is a complete object or 'CloudProviderLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "display_name": {
          "description": "Name of the cloud provider for display purposes. It can contain any characters,\nincluding spaces.",
          "type": "string"
        },
        "name": {
          "description": "Human friendly identifier of the cloud provider, for example `aws`.",
          "type": "string"
        },
        "regions": {
          "description": "(optional) Provider's regions - only included when listing providers with `fetchRegions=true`.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/CloudRegion"
          }
        }
      }
    },
    "CloudRegion": {
      "description": "Description of a region of a cloud provider.",
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'CloudRegion' if this is a complete object or 'CloudRegionLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "ccs_only": {
          "description": "'true' if the region is supported only for CCS clusters, 'false' otherwise.",
          "type": "boolean"
        },
        "kms_location_id": {
          "description": "(GCP only) Comma-separated list of KMS location IDs that can be used with this region.\nE.g. \"global,nam4,us\". Order is not guaranteed.",
          "type": "string"
        },
        "kms_location_name": {
          "description": "(GCP only) Comma-separated list of display names corresponding to KMSLocationID.\nE.g. \"Global,nam4 (Iowa, South Carolina, and Oklahoma),US\". Order is not guaranteed but will match KMSLocationID.\nUnfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this.",
          "type": "string"
        },
        "cloud_provider": {
          "description": "Link to the cloud provider that the region belongs to.",
          "$ref": "#/$defs/CloudProvider"
        },
        "display_name": {
          "description": "Name of the region for display purposes, for example `N. Virginia`.",
          "type": "string"
        },
        "enabled": {
          "description": "Whether the region is enabled for deploying a managed cluster.",
          "type": "boolean"
        },
        "govcloud": {
          "description": "Whether the region is an AWS GovCloud region.",
          "type": "boolean"
        },
        "name": {
          "description": "Human friendly identifier of the region, for example `us-east-1`.\n\nNOTE: Currently for all cloud providers and all regions `id` and `name` have exactly\nthe same values.",
          "type": "string"
        },
        "supports_hypershift": {
          "description": "'true' if the region is supported for Hypershift deployments, 'false' otherwise.",
          "type": "boolean"
        },
        "supports_multi_az": {
          "description": "Whether the region supports multiple availability zones.",
          "type": "boolean"
        }
      }
    },
    "GCPImageOverride": {
      "description": "GcpImageOverride specifies what a GCP VM Image should be used for a particular product and billing model",
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'GCPImageOverride' if this is a complete object or 'GCPImageOverrideLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "billing_model": {
          "description": "Link to the billing model.",
          "$ref": "#/$defs/BillingModelItem"
        },
        "image_id": {
          "description": "ImageID is the id of the Google Cloud Platform image.",
          "type": "string"
        },
        "product": {
          "description": "Link to the product type.",
          "$ref": "#/$defs/Product"
        },
        "project_id": {
          "description": "ProjectID is the id of the Google Cloud Platform project that hosts the image.",
          "type": "string"
        }
      }
    },
    "ImageOverrides": {
      "description": "ImageOverrides holds the lists of available images per cloud provider.",
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'ImageOverrides' if this is a complete object or 'ImageOverridesLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "aws": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AMIOverride"
          }
        },
        "gcp": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GCPImageOverride"
          }
        }
      }
    },
    "Product": {
      "description": "Representation of an product that can be selected as a cluster type.",
      "properties": {
        "kind": {
          "description": "Indicates the type of this object. Will be 'Product' if this is a complete object or 'ProductLink' if it is just a link.",
          "type": "string"
        },
        "id": {
          "description": "Unique identifier of the object.",
          "type": "string"
        },
        "href": {
          "description": "Self link.",
          "type": "string"
        },
        "name": {
          "description": "Name of the product.",
          "type": "string"
        }
      }
    },
    "ReleaseImageDetails": {
      "properties": {
        "available_upgrades": {
          "description": "AvailableUpgrades is the list of versions this version can be upgraded to.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "release_image": {
          "description": "ReleaseImage contains the URI of Openshift release image.",
          "type": "string"
        }
      }
    },
    "ReleaseImages": {
      "properties": {
        "arm64": {
          "description": "Arm64 will contain the reference for the arm64 image which will be used for cluster deployments",
          "$ref": "#/$defs/ReleaseImageDetails"
        },
        "multi": {
          "description": "Multi will contain the reference for the multi image which will be used for cluster deployments",
          "$ref": "#/$defs/ReleaseImageDetails"
        }
      }
    }
  }
}