Method: images.getFromFamily

Returns the latest image that is part of an image family and is not deprecated.

HTTP request

GET https://compute.googleapis.com/compute/v1/projects/{project}/global/images/family/{resourceId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

resourceId

string

Name of the image family to search for.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Represents an Image resource.

You can use images to create boot disks for your VM instances. For more information, read Images.

JSON representation
{
  "id": string,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "sourceType": enum,
  "rawDisk": {
    "source": string,
    "sha1Checksum": string,
    "containerType": enum
  },
  "deprecated": {
    "state": enum,
    "replacement": string,
    "deprecated": string,
    "obsolete": string,
    "deleted": string
  },
  "status": enum,
  "archiveSizeBytes": string,
  "diskSizeGb": string,
  "sourceDisk": string,
  "sourceDiskId": string,