{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-compute-engine/json-schema/google-cloud-compute-engine-image-family-view-schema.json",
  "title": "ImageFamilyView",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-compute-engine-image-family-views-api-openapi.yml#/components/schemas/ImageFamilyView",
  "type": "object",
  "properties": {
    "image": {
      "$ref": "#/$defs/Image",
      "description": "The latest image that is part of the specified image family in the\nrequested location, and that is not deprecated."
    }
  },
  "$defs": {
    "CustomerEncryptionKey": {
      "type": "object",
      "properties": {
        "rawKey": {
          "description": "[DEPRECATED] CSEK is no longer supported. Use CMEK instead.\nSpecifies a 256-bit customer-supplied\nencryption key, encoded in RFC\n4648 base64 to either encrypt or decrypt this resource. You can\nprovide either the rawKey or thersaEncryptedKey.\nFor example:\n\n\"rawKey\":\n\"SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0=\"",
          "type": "string",
          "deprecated": true
        },
        "sha256": {
          "type": "string",
          "description": "[DEPRECATED] CSEK is no longer supported. Use CMEK instead.\n[Output only] TheRFC\n4648 base64 encoded SHA-256 hash of the customer-supplied\nencryption key that protects this resource.",
          "deprecated": true
        },
        "kmsKeyServiceAccount": {
          "type": "string",
          "description": "The service account being used for the encryption request for the given KMS\nkey. If absent, the Compute Engine default service account is used.\nFor example:\n\n\"kmsKeyServiceAccount\": \"name@project_id.iam.gserviceaccount.com/"
        },
        "kmsKeyName": {
          "type": "string",
          "description": "The name of the encryption key that is stored in Google Cloud KMS.\nFor example:\n\n\"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/\nkey_region/cryptoKeys/key\n\nThe fully-qualifed key name may be returned for resource GET requests. For \nexample: \n\n\"kmsKeyName\": \"projects/kms_project_id/locations/region/keyRings/\nkey_region/cryptoKeys/key\n/cryptoKeyVersions/1"
        },
        "rsaEncryptedKey": {
          "description": "[DEPRECATED] CSEK is no longer supported. Use CMEK instead.\nSpecifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit\ncustomer-supplied encryption key to either encrypt or decrypt this\nresource. You can provide either the rawKey or thersaEncryptedKey.\nFor example:\n\n\"rsaEncryptedKey\":\n\"ieCx/NcW06PcT7Ep1X6LUTc/hLvUDYyzSZPPVCVPTVEohpeHASqC8uw5TzyO9U+Fka9JFH\nz0mBibXUInrC/jEk014kCK/NPjYgEMOyssZ4ZINPKxlUh2zn1bV+MCaTICrdmuSBTWlUUiFoD\nD6PYznLwh8ZNdaheCeZ8ewEXgFQ8V+sDroLaN3Xs3MDTXQEMMoNUXMCZEIpg9Vtp9x2oe==\"\n\nThe key must meet the following requirements before you can provide it to \nCompute Engine: \n   \n   1. The key is wrapped using a RSA public key certificate provided by \n   Google. \n   2. After being wrapped, the key must be encoded in RFC 4648 base64 \n   encoding. \n\nGets the RSA public key certificate provided by Google at: \n\n\nhttps://cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem",
          "type": "string",
          "deprecated": true
        }
      }
    },
    "DeprecationStatus": {
      "description": "Deprecation status for a public resource.",
      "type": "object",
      "properties": {
        "deleted": {
          "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to DELETED. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.",
          "type": "string"
        },
        "obsolete": {
          "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to OBSOLETE. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.",
          "type": "string"
        },
        "deprecated": {
          "description": "An optional RFC3339 timestamp on or after which the state of this\nresource is intended to change to DEPRECATED. This is only\ninformational and the status will not change unless the client explicitly\nchanges it.",
          "type": "string"
        },
        "state": {
          "type": "string",
          "description": "The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED.\nOperations which communicate the end of life date for an image, can useACTIVE. Operations which create a new resource using aDEPRECATED resource will return successfully, but with a\nwarning indicating the deprecated resource and recommending its\nreplacement. Operations which use OBSOLETE orDELETED resources will be rejected and result in an error.",
          "enum": [
            "ACTIVE",
            "DELETED",
            "DEPRECATED",
            "OBSOLETE"
          ]
        },
        "replacement": {
          "description": "The URL of the suggested replacement for a deprecated resource.\nThe suggested replacement resource must be the same kind of resource as the\ndeprecated resource.",
          "type": "string"
        }
      }
    },
    "FileContentBuffer": {
      "properties": {
        "content": {
          "description": "The raw content in the secure keys file.",
          "type": "string",
          "format": "byte"
        },
        "fileType": {
          "type": "string",
          "description": "The file type of source file.",
          "enum": [
            "BIN",
            "UNDEFINED",
            "X509"
          ]
        }
      },
      "type": "object"
    },
    "GuestOsFeature": {
      "properties": {
        "type": {
          "description": "The ID of a supported feature. To add multiple values, use commas to\nseparate values. Set to one or more of the following values:\n   \n   - VIRTIO_SCSI_MULTIQUEUE\n   - WINDOWS\n   - MULTI_IP_SUBNET\n   - UEFI_COMPATIBLE\n   - GVNIC\n   - SEV_CAPABLE\n   - SUSPEND_RESUME_COMPATIBLE\n   - SEV_LIVE_MIGRATABLE_V2\n   - SEV_SNP_CAPABLE\n   - TDX_CAPABLE\n   - IDPF\n   - SNP_SVSM_CAPABLE\n   - CCA_CAPABLE\n   - SUSPEND_SAFE_FPR\n\n\nFor more information, see\nEnabling guest operating system features.",
          "enum": [
            "BARE_METAL_LINUX_COMPATIBLE",
            "BMSAI_CAPABLE",
            "CCA_CAPABLE",
            "FEATURE_TYPE_UNSPECIFIED",
            "GVNIC",
            "IDPF",
            "MULTI_IP_SUBNET",
            "SECURE_BOOT",
            "SEV_CAPABLE",
            "SEV_LIVE_MIGRATABLE",
            "SEV_LIVE_MIGRATABLE_V2",
            "SEV_SNP_CAPABLE",
            "SNP_SVSM_CAPABLE",
            "SUSPEND_SAFE_FPR",
            "TDX_CAPABLE",
            "UEFI_COMPATIBLE",
            "VIRTIO_SCSI_MULTIQUEUE",
            "WINDOWS"
          ],
          "type": "string"
        }
      },
      "description": "Guest OS features.",
      "type": "object"
    },
    "Image": {
      "type": "object",
      "description": "Represents an Image resource.\n\nYou can use images to create boot disks for your VM instances.\nFor more information, read Images.",
      "properties": {
        "rawDisk": {
          "type": "object",
          "description": "The parameters of the raw disk image.",
          "properties": {
            "source": {
              "description": "The full Google Cloud Storage URL or Artifact Registry path where the raw\ndisk image archive is stored.\nThe following are valid formats:\n   \n   - https://storage.googleapis.com/bucket_name/image_archive_name\n   - https://storage.googleapis.com/bucket_name/folder_name/image_archive_name\n   - projects/project/locations/location/repositories/repo/packages/package/versions/version_id\n   - projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value\n\n\n\nIn order to create an image, you must provide the full or partial URL of\none of the following:\n   \n   - The rawDisk.source URL \n   - The sourceDisk URL \n   - The sourceImage URL \n   - The sourceSnapshot URL",
              "type": "string"
            },
            "sha1Checksum": {
              "type": "string",
              "pattern": "[a-f0-9]{40}",
              "description": "[Deprecated] This field is deprecated.\nAn optional SHA1 checksum of the disk image before unpackaging provided\nby the client when the disk image is created.",
              "deprecated": true
            },
            "containerType": {
              "type": "string",
              "enum": [
                "TAR"
              ],
              "description": "The format used to encode and transmit the block device, which should beTAR. This is just a container and transmission format and not\na runtime format. Provided by the client when the disk image is created."
            }
          }
        },
        "satisfiesPzs": {
          "description": "Output only. [Output Only] Reserved for future use.",
          "readOnly": true,
          "type": "boolean"
        },
        "sourceImageEncryptionKey": {
          "$ref": "#/$defs/CustomerEncryptionKey",
          "description": "The customer-supplied encryption key of the source image. Required if the\nsource image is protected by a customer-supplied encryption key."
        },
        "licenses": {
          "type": "array",
          "description": "Any applicable license URI.",
          "items": {
            "type": "string"
          }
        },
        "creationTimestamp": {
          "description": "Output only. [Output Only] Creation timestamp inRFC3339\ntext format.",
          "type": "string",
          "readOnly": true
        },
        "deprecated": {
          "$ref": "#/$defs/DeprecationStatus",
          "description": "Output only. The deprecation status associated with this image."
        },
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Labels to apply to this image. These can be later modified by\nthe setLabels method."
        },
        "archiveSizeBytes": {
          "description": "Size of the image tar.gz archive stored in Google Cloud\nStorage (in bytes).",
          "type": "string",
          "format": "int64"
        },
        "sourceSnapshot": {
          "description": "URL of the source snapshot used to create this image.\nThe following are valid formats for the URL:\n   \n   - https://www.googleapis.com/compute/v1/projects/project_id/global/\n   snapshots/snapshot_name\n   - projects/project_id/global/snapshots/snapshot_name\n\n\n\nIn order to create an image, you must provide the full or partial URL of\none of the following:\n   \n   - The rawDisk.source URL \n   - The sourceDisk URL \n   - The sourceImage URL \n   - The sourceSnapshot URL",
          "type": "string"
        },
        "sourceImageId": {
          "description": "Output only. [Output Only]\nThe ID value of the image used to create this image. This value may be used\nto determine whether the image was taken from the current or a previous\ninstance of a given image name.",
          "type": "string",
          "readOnly": true
        },
        "sourceDiskId": {
          "description": "Output only. [Output Only]\nThe ID value of the disk used to create this image. This value may be used\nto determine whether the image was taken from the current or a previous\ninstance of a given disk name.",
          "readOnly": true,
          "type": "string"
        },
        "sourceSnapshotEncryptionKey": {
          "$ref": "#/$defs/CustomerEncryptionKey",
          "description": "The customer-supplied encryption key of the source snapshot. Required if\nthe source snapshot is protected by a customer-supplied encryption key."
        },
        "architecture": {
          "type": "string",
          "enum": [
            "ARCHITECTURE_UNSPECIFIED",
            "ARM64",
            "X86_64"
          ],
          "description": "The architecture of the image. Valid values are\nARM64 or X86_64."
        },
        "sourceType": {
          "default": "RAW",
          "type": "string",
          "enum": [
            "RAW"
          ],
          "description": "The type of the image used to create this disk. The\ndefault and only valid value is RAW."
        },
        "guestOsFeatures": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GuestOsFeature"
          },
          "description": "A list of features to enable on the guest operating system. Applicable\nonly for bootable images. To see a list of available options, see theguestOSfeatures[].type parameter."
        },
        "description": {
          "type": "string",
          "description": "An optional description of this resource. Provide this property when you\ncreate the resource."
        },
        "satisfiesPzi": {
          "description": "Output only. Reserved for future use.",
          "type": "boolean",
          "readOnly": true
        },
        "diskSizeGb": {
          "format": "int64",
          "description": "Size of the image when restored onto a persistent disk (in GB).",
          "type": "string"
        },
        "id": {
          "description": "Output only. [Output Only] The unique identifier for the resource. This identifier is\ndefined by the server.",
          "format": "uint64",
          "type": "string",
          "readOnly": true
        },
        "sourceDiskEncryptionKey": {
          "$ref": "#/$defs/CustomerEncryptionKey",
          "description": "Thecustomer-supplied\nencryption key of the source disk. Required if the source disk is\nprotected by a customer-supplied encryption key."
        },
        "sourceDisk": {
          "type": "string",
          "description": "URL of the source disk used to create this image.\nFor example, the following are valid values:\n   \n   - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk \n   - projects/project/zones/zone/disks/disk \n   - zones/zone/disks/disk\n\n\n\nIn order to create an image, you must provide the full or partial URL of\none of the following:\n   \n   - The rawDisk.source URL \n   - The sourceDisk URL \n   - The sourceImage URL \n   - The sourceSnapshot URL"
        },
        "selfLink": {
          "readOnly": true,
          "description": "Output only. [Output Only] Server-defined URL for the resource.",
          "type": "string"
        },
        "name": {
          "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
          "type": "string",
          "description": "Name of the resource; provided by the client when the resource is created.\nThe name must be 1-63 characters long, and comply withRFC1035.\nSpecifically, the name must be 1-63 characters long and match the regular\nexpression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first\ncharacter must be a lowercase letter, and all following characters must be\na dash, lowercase letter, or digit, except the last character, which cannot\nbe a dash."
        },
        "labelFingerprint": {
          "format": "byte",
          "type": "string",
          "description": "A fingerprint for the labels being applied to this image, which is\nessentially a hash of the labels used for optimistic locking. The\nfingerprint is initially generated by Compute Engine and changes after\nevery request to modify or update labels. You must always provide an\nup-to-date fingerprint hash in order to update or change labels,\notherwise the request will fail with error412 conditionNotMet.\n\nTo see the latest fingerprint, make a get() request to\nretrieve an image."
        },
        "shieldedInstanceInitialState": {
          "$ref": "#/$defs/InitialStateConfig",
          "description": "Set the secure boot keys of shielded instance."
        },
        "family": {
          "description": "The name of the image family to which this image belongs. The image\nfamily name can be from a publicly managed image family provided by\nCompute Engine, or from a custom image family you create. For example,centos-stream-9 is a publicly available image family.\nFor more information, see Image\nfamily best practices.\n\nWhen creating disks, you can specify an image family instead of a specific\nimage name. The image family always returns its latest image that is not\ndeprecated. The name of the image family must comply with RFC1035.",
          "type": "string"
        },
        "sourceSnapshotId": {
          "description": "Output only. [Output Only]\nThe ID value of the snapshot used to create this image. This value may be\nused to determine whether the snapshot was taken from the current or a\nprevious instance of a given snapshot name.",
          "readOnly": true,
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "Output only. [Output Only] The status of the image. An image can be used to create other\nresources, such as instances, only after the image has been successfully\ncreated and the status is set to READY. Possible\nvalues are FAILED, PENDING, orREADY.",
          "readOnly": true,
          "enum": [
            "DELETING",
            "FAILED",
            "PENDING",
            "READY"
          ]
        },
        "imageEncryptionKey": {
          "$ref": "#/$defs/CustomerEncryptionKey",
          "description": "Encrypts the image using acustomer-supplied\nencryption key.\n\nAfter you encrypt an image with a customer-supplied key, you must provide\nthe same key if you use the image later (e.g. to create a disk from\nthe image).\n\nCustomer-supplied encryption keys do not protect access to metadata\nof the disk.\n\nIf you do not provide an encryption key when creating the image, then the\ndisk will be encrypted using an automatically generated key and you do not\nneed to provide a key to use the image later."
        },
        "enableConfidentialCompute": {
          "description": "Output only. Whether this image is created from a confidential compute mode disk.\n[Output Only]: This field is not set by user, but from source disk.",
          "readOnly": true,
          "type": "boolean"
        },
        "storageLocations": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Cloud Storage bucket storage location of the image (regional or\nmulti-regional)."
        },
        "sourceImage": {
          "type": "string",
          "description": "URL of the source image used to create this image.\nThe following are valid formats for the URL:\n   \n   - https://www.googleapis.com/compute/v1/projects/project_id/global/\n   images/image_name\n   - projects/project_id/global/images/image_name\n\n\n\nIn order to create an image, you must provide the full or partial URL of\none of the following:\n   \n   - The rawDisk.source URL \n   - The sourceDisk URL \n   - The sourceImage URL \n   - The sourceSnapshot URL"
        },
        "params": {
          "$ref": "#/$defs/ImageParams",
          "description": "Input only. [Input Only] Additional params passed with the request, but not persisted\nas part of resource payload."
        },
        "licenseCodes": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "int64"
          },
          "description": "Integer license codes indicating which licenses are attached to this image."
        },
        "kind": {
          "description": "Output only. [Output Only] Type of the resource. Always compute#image for\nimages.",
          "readOnly": true,
          "type": "string",
          "default": "compute#image"
        }
      }
    },
    "ImageParams": {
      "type": "object",
      "description": "Additional image params.",
      "properties": {
        "resourceManagerTags": {
          "description": "Input only. Resource manager tags to be bound to the image. Tag keys and values have\nthe same definition as resource\nmanager tags. Keys and values can be either in numeric format,\nsuch as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in\nnamespaced format such as `{org_id|project_id}/{tag_key_short_name}` and\n`{tag_value_short_name}`. The field is ignored (both PUT &\nPATCH) when empty.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "InitialStateConfig": {
      "description": "Initial State for shielded instance,\nthese are public keys which are safe to store in public",
      "type": "object",
      "properties": {
        "keks": {
          "description": "The Key Exchange Key (KEK).",
          "items": {
            "$ref": "#/$defs/FileContentBuffer"
          },
          "type": "array"
        },
        "dbxs": {
          "items": {
            "$ref": "#/$defs/FileContentBuffer"
          },
          "description": "The forbidden key database (dbx).",
          "type": "array"
        },
        "dbs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FileContentBuffer"
          },
          "description": "The Key Database (db)."
        },
        "pk": {
          "$ref": "#/$defs/FileContentBuffer",
          "description": "The Platform Key (PK)."
        }
      }
    }
  }
}