Google Cloud Compute Engine Image Family Views API

The ImageFamilyViews API from Google Cloud Compute Engine — 1 operation(s) for imagefamilyviews.

GitHub OpenAPI

Operations 1

GET /compute/v1/projects/{project}/zones/{zone}/imageFamilyViews/{family} Get imageFamilyViews #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-cloud-compute-engine:google-cloud-compute-engine-imagefamilyviews-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-cloud-compute-engine-imagefamilyviews-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compute Engine Image Family Views API
  version: v1
  description: Generated from Google's published Discovery document for Compute Engine API (compute v1, revision 20261106). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://compute.googleapis.com
tags:
- name: ImageFamilyViews
paths:
  /compute/v1/projects/{project}/zones/{zone}/imageFamilyViews/{family}:
    get:
      operationId: compute.imageFamilyViews.get
      summary: Get imageFamilyViews
      description: 'Returns the latest image that is part of an image family, is not

        deprecated and is rolled out in the specified zone.'
      parameters:
      - name: project
        in: path
        required: true
        description: Project ID for this request.
        schema:
          type: string
          pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
      - name: zone
        in: path
        required: true
        description: The name of the zone for this request.
        schema:
          pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'
          type: string
      - name: family
        in: path
        required: true
        description: Name of the image family to search for.
        schema:
          type: string
          pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageFamilyView'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
        - https://www.googleapis.com/auth/compute
        - https://www.googleapis.com/auth/compute.readonly
      - apiKey: []
      tags:
      - ImageFamilyViews
components:
  schemas:
    ImageFamilyView:
      type: object
      properties:
        image:
          $ref: '#/components/schemas/Image'
          description: 'The latest image that is part of the specified image family in the

            requested location, and that is not deprecated.'
    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

            the same definition as resource

            manager tags. Keys and values can be either in numeric format,

            such as `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}` or in

            namespaced format such as `{org_id|project_id}/{tag_key_short_name}` and

            `{tag_value_short_name}`. The field is ignored (both PUT &

            PATCH) when empty.'
          type: object
          additionalProperties:
            type: string
    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

            resource is intended to change to DELETED. This is only

            informational and the status will not change unless the client explicitly

            changes it.'
          type: string
        obsolete:
          description: 'An optional RFC3339 timestamp on or after which the state of this

            resource is intended to change to OBSOLETE. This is only

            informational and the status will not change unless the client explicitly

            changes it.'
          type: string
        deprecated:
          description: 'An optional RFC3339 timestamp on or after which the state of this

            resource is intended to change to DEPRECATED. This is only

            informational and the status will not change unless the client explicitly

            changes it.'
          type: string
        state:
          type: string
          description: 'The deprecation state of this resource. This can be ACTIVE,DEPRECATED, OBSOLETE, or DELETED.

            Operations 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

            warning indicating the deprecated resource and recommending its

            replacement. 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.

            The suggested replacement resource must be the same kind of resource as the

            deprecated 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
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                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.


        You can use images to create boot disks for your VM instances.

        For 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.

                An optional SHA1 checksum of the disk image before unpackaging provided

                by 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

                a 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: '#/components/schemas/CustomerEncryptionKey'
          description: 'The customer-supplied encryption key of the source image. Required if the

            source 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

            text format.'
          type: string
          readOnly: true
        deprecated:
          $ref: '#/components/schemas/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

            the setLabels method.'
        archiveSizeBytes:
          description: 'Size of the image tar.gz archive stored in Google Cloud

            Storage (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]

            The ID value of the image used to create this image. This value may be used

            to determine whether the image was taken from the current or a previous

            instance of a given image name.'
          type: string
          readOnly: true
        sourceDiskId:
          description: 'Output only. [Output Only]

            The ID value of the disk used to create this image. This value may be used

            to determine whether the image was taken from the current or a previous

            instance of a given disk name.'
          readOnly: true
          type: string
        sourceSnapshotEncryptionKey:
          $ref: '#/components/schemas/CustomerEncryptionKey'
          description: 'The customer-supplied encryption key of the source snapshot. Required if

            the 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

            ARM64 or X86_64.'
        sourceType:
          default: RAW
          type: string
          enum:
          - RAW
          description: 'The type of the image used to create this disk. The

            default and only valid value is RAW.'
        guestOsFeatures:
          type: array
          items:
            $ref: '#/components/schemas/GuestOsFeature'
          description: 'A list of features to enable on the guest operating system. Applicable

            only 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

            create 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

            defined by the server.'
          format: uint64
          type: string
          readOnly: true
        sourceDiskEncryptionKey:
          $ref: '#/components/schemas/CustomerEncryptionKey'
          description: 'Thecustomer-supplied

            encryption key of the source disk. Required if the source disk is

            protected 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.

            The name must be 1-63 characters long, and comply withRFC1035.

            Specifically, the name must be 1-63 characters long and match the regular

            expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first

            character must be a lowercase letter, and all following characters must be

            a dash, lowercase letter, or digit, except the last character, which cannot

            be a dash.'
        labelFingerprint:
          format: byte
          type: string
          description: 'A fingerprint for the labels being applied to this image, which is

            essentially a hash of the labels used for optimistic locking. The

            fingerprint is initially generated by Compute Engine and changes after

            every request to modify or update labels. You must always provide an

            up-to-date fingerprint hash in order to update or change labels,

            otherwise the request will fail with error412 conditionNotMet.


            To see the latest fingerprint, make a get() request to

            retrieve an image.'
        shieldedInstanceInitialState:
          $ref: '#/components/schemas/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

            family name can be from a publicly managed image family provided by

            Compute Engine, or from a custom image family you create. For example,centos-stream-9 is a publicly available image family.

            For more information, see Image

            family best practices.


            When creating disks, you can specify an image family instead of a specific

            image name. The image family always returns its latest image that is not

            deprecated. The name of the image family must comply with RFC1035.'
          type: string
        sourceSnapshotId:
          description: 'Output only. [Output Only]

            The ID value of the snapshot used to create this image. This value may be

            used to determine whether the snapshot was taken from the current or a

            previous 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

            resources, such as instances, only after the image has been successfully

            created and the status is set to READY. Possible

            values are FAILED, PENDING, orREADY.'
          readOnly: true
          enum:
          - DELETING
          - FAILED
          - PENDING
          - READY
        imageEncryptionKey:
          $ref: '#/components/schemas/CustomerEncryptionKey'
          description: 'Encrypts the image using acustomer-supplied

            encryption key.


            After you encrypt an image with a customer-supplied key, you must provide

            the same key if you use the image later (e.g. to create a disk from

            the image).


            Customer-supplied encryption keys do not protect access to metadata

            of the disk.


            If you do not provide an encryption key when creating the image, then the

            disk will be encrypted using an automatically generated key and you do not

            need to provide a key to use the image later.'
        enableConfidentialCompute:
          description: 'Output only. Whether this image is created from a confidential compute mode disk.

            [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

            multi-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: '#/components/schemas/ImageParams'
          description: 'Input only. [Input Only] Additional params passed with the request, but not persisted

            as 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

            images.'
          readOnly: true
          type: string
          default: compute#image
    InitialStateConfig:
      description: 'Initial State for shielded instance,

        these are public keys which are safe to store in public'
      type: object
      properties:
        keks:
          description: The Key Exchange Key (KEK).
          items:
            $ref: '#/components/schemas/FileContentBuffer'
          type: array
        dbxs:
          items:
            $ref: '#/components/schemas/FileContentBuffer'
          description: The forbidden key database (dbx).
          type: array
        dbs:
          type: array
          items:
            $ref: '#/components/schemas/FileContentBuffer'
          description: The Key Database (db).
        pk:
          $ref: '#/components/schemas/FileContentBuffer'
          description: The Platform Key (PK).
    CustomerEncryptionKey:
      type: object
      properties:
        rawKey:
          description: '[DEPRECATED] CSEK is no longer supported. Use CMEK instead.

            Specifies a 256-bit customer-supplied

            encryption key, encoded in RFC

            4648 base64 to either encrypt or decrypt this resource. You can

            provide either the rawKey or thersaEncryptedKey.

            For example:


            "rawKey":

            "SGVsbG8gZnJvbSBHb29nbGUgQ2xvdWQgUGxhdGZvcm0="'
          type: string
          deprecated: true
        sha256:
          type: string
          description: '[DEPRECATED] CSEK is no longer supported. Use CMEK instead.

            [Output only] TheRFC

            4648 base64 encoded SHA-256 hash of the customer-supplied

            encryption key that protects this resource.'
          deprecated: true
        kmsKeyServiceAccount:
          type: string
          description: 'The service account being used for the encryption request for the given KMS

            key. If absent, the Compute Engine default service account is used.

            For example:


            "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
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
            https://www.googleapis.com/auth/compute: View and manage your Google Compute Engine resources
            https://www.googleapis.com/auth/devstorage.read_write: Manage your data in Cloud Storage and see the email address of your Google Account
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
            https://www.googleapis.com/auth/compute.readonly: View your Google Compute Engine resources
            https://www.googleapis.com/auth/devstorage.full_control: Manage your data and permissions in Cloud Storage and see the email address for your Google Account
externalDocs:
  url: https://cloud.google.com/compute/
x-provenance:
  method: harvested
  publisher: Google
  source: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)