PreservedState

Preserved state for a given instance.

JSON representation
{
  "disks": {
    string: {
      object (PreservedDisk)
    },
    ...
  },
  "metadata": {
    string: string,
    ...
  },
  "internalIPs": {
    string: {
      object (PreservedNetworkIp)
    },
    ...
  },
  "externalIPs": {
    string: {
      object (PreservedNetworkIp)
    },
    ...
  }
}
Fields
disks

map (key: string, value: object (PreservedDisk))

Preserved disks defined for this instance. This map is keyed with the device names of the disks.

metadata

map (key: string, value: string)

Preserved metadata defined for this instance.

internalIPs

map (key: string, value: object (PreservedNetworkIp))

Preserved internal IPs defined for this instance. This map is keyed with the name of the network interface.

externalIPs

map (key: string, value: object (PreservedNetworkIp))

Preserved external IPs defined for this instance. This map is keyed with the name of the network interface.

PreservedDisk

JSON representation
{
  "source": string,
  "mode": enum (DiskMode),
  "autoDelete": enum (AutoDelete)
}
Fields
source

string

The URL of the disk resource that is stateful and should be attached to the VM instance.

mode

enum (DiskMode)

The mode in which to attach this disk, either

READ_WRITE

or

READ_ONLY

. If not specified, the default is to attach the disk in

READ_WRITE

mode.

autoDelete

enum (AutoDelete)

These stateful disks will never be deleted during autohealing, update, instance recreate operations. This flag is used to configure if the disk should be deleted after it is no longer used by the group, e.g. when the given instance or the whole MIG is deleted. Note: disks attached in

READ_ONLY

mode cannot be auto-deleted.

DiskMode

Whether the disk will be attached in

READ_WRITE

or

READ_ONLY

mode.

Enums
READ_WRITE

[Default] Attaches this disk in

READ_WRITE

mode. Only one VM instance at a time can be attached to a disk in

READ_WRITE

mode.

READ_ONLY

Attaches this disk in read-only mode. Multiple VM instances can use a disk in

READ_ONLY

mode at a time.

PreservedNetworkIp

JSON representation
{
  "autoDelete": enum (AutoDelete),
  "ipAddress": {
    object (IpAddress)
  }
}
Fields
autoDelete

enum (AutoDelete)

These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted.

ipAddress

object (IpAddress)

Ip address representation

IpAddress

JSON representation
{
  "literal": string,
  "address": string
}
Fields
literal

string

An IPv4 internal network address to assign to the instance for this network interface.

address

string

The URL of the reservation for this IP address.