Method: machineImages.get

Returns the specified machine image. Gets a list of available machine images by making a list() request.

HTTP request

GET https://compute.googleapis.com/compute/beta/projects/{project}/global/machineImages/{resourceId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID for this request.

resourceId

string

The name of the machine image.

Request body

The request body must be empty.

Response body

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

Represents a machine image resource.

A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images.

JSON representation
{
  "id": string,
  "creationTimestamp": string,
  "name": string,
  "description": string,
  "selfLink": string,
  "sourceInstance": string,
  "status": enum,
  "sourceInstanceProperties": {
    "description": string,
    "tags": {
      "items": [
        string
      ],
      "fingerprint": string
    },
    "machineType": string,
    "canIpForward": boolean,
    "networkInterfaces": [
      {
        "network": string,
        "subnetwork": string,
        "networkIP": string,
        "ipv6Address": string,
        "name": string,
        "accessConfigs": [
          {
            "type": enum,
            "name": string,
            "natIP": string,
            "externalIpv6": string,
            "externalIpv6PrefixLength": integer,
            "setPublicPtr": boolean,
            "publicPtrDomainName": string,
            "networkTier": enum,
            "kind": string
          }
        ],
        "ipv6AccessConfigs": [
          {
            "type": enum,
            "name": string,
            "natIP": string,
            "externalIpv6": string,
            "externalIpv6PrefixLength": integer,
            "setPublicPtr": boolean,
            "publicPtrDomainName": string,
            "networkTier": enum,
            "kind": string
          }
        ],
        "aliasIpRanges": [
          {
            "ipCidrRange": string,
            "subnetworkRangeName": string
          }
        ],
        "fingerprint": string,
        "stackType": enum,
        "ipv6AccessType": enum,
        "queueCount": integer,
        "nicType": enum,
        "kind": string
      }
    ],
    "disks": [
      {
        "type": enum,
        "mode": enum,
        "source": string,
        "deviceName": string,
        "index": integer,
        "boot": boolean,
        "autoDelete": boolean,
        "licenses": [
          string
        ],
        "interface": enum,
        "guestOsFeatures": [
          {
            "type"