||The name of the resource when initially creating the resource. Must be 1-63 characters, 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.
||Name of zone the where the instance resides, i.e.,
us-central1-a. See `available region and zones<https://cloud.google.com/compute/docs/regions-zones/#available/>`_. for the current list of zones.
||Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. See creating custom machine types.
|network-interface list subresource
List of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported. (Required)
- network resource
Network for this instance. If neither the network or subnetwork is specified, the default network
global/networks/default is used and if the network is not specified but the subnetwork is specified, the network is inferred. (Required)
- subnetwork resource
Subnetwork for this instance. If the network resource is in legacy mode, do not specify this field. If the network is in auto subnet mode, specifying the subnetwork is optional. If the network is in custom subnet mode, specifying the subnetwork is required.
- An IPv4 internal IP address to assign for this network interface. If unspecified an unused internal IP is assigned.
- access-config list subresource
A list of access configurations for this interface. Currently, only
NE_TO_ONE_NAT is supported. If unspecified this instance will have no external internet access.
- Name of this access configuration. Default and recommended name is
External NAT, but can be any arbitrary string.
- An unused static external IP address available to the project. Leave this field undefined to use an IP from a shared ephemeral IP address pool. If you specify a static external IP address, it must live in the same region as the zone of the instance.
- Signifies the networking tier used for configuring this access configuration. Valid values are
STANDARD. If specified without a valid external IP address, an ephemeral IP will be created with this networkTier. If a valid external IP address is specified, it must match that of the networkTier associated with the Address resource owning that IP.
- The DNS domain name for the public PTR record. Can only be set if the
setPublicPtr field is set to
true a public DNS ‘PTR’ record should be created to map the external IP address of the instance to a DNS domain name.
- The type of configuration. The default and only valid value is
- alias-ip-range list subresource
A list of alias IP ranges for this network interface. Can only specify this for network interfaces in VPC networks.
- The IP alias ranges to allocate for this interface. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. This range may be a single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR-formatted string (e.g. 10.1.2.0/24).
- Name given to a subnetwork secondary IP range for use in allocating the IP alias range. Unspecified the primary range of the subnetwork is used.
- Fingerprint hash of contents stored in this network interface. Will be ignored when inserting an Instance or adding a NetworkInterface. An up-to-date fingerprint must be provided in order to update the NetworkInterface, otherwise the request will fail with HTTP error 412.
||If enabled allows this instance to send and receive packets with non-matching destination or source IPs. Defaults to
||Map of key-value pairs to apply to the instance.
|initialize-disk list subresource
Parameters for a new disk that will be created alongside the new instance. Use to create boot disks or local SSDs attached to the new instance.
- Whether the disk will be auto-deleted when the instance is deleted, but not when the disk is detached from the instance.
- This is a boot disk the virtual machine will use the first partition of the disk for its root filesystem.
- Only for persistent disks, the unique device name reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. The name can then be used to reference the device for mounting, resizing, etc… from within the instance. Unspecified the server chooses a default name in the form of
x is a number assigned by Google Compute Engine.
- disk-encryption-key subresource
When creating a new disk this field encrypts the new disk using the supplied encryption key. If attaching an existing disk already encrypted, this decrypts the disk using the supplied encryption key.||If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time.||If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group.
- guest-os-feature list subresource
List of features to enable on the guest operating system. Applicable only for bootable images. See `enabling guest operating system features<https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features/>`_.
- Enables one or more features for VM instances that use the image for their boot disks. Valid values are
WINDOWS. See Enabling guest operating system features.
- initialize-params subresource
Parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new instance. This property is mutually exclusive with the source property; you can only define one or the other, but not both.
- The source image to create this disk in the form of a URL path. See Images.
- An optional description. Provide this property when creating the disk.
- The disk name. If the disk with the instance name exists already in the given zone/region a new name will be automatically generated.
- Size of the disk in base-2 GB. Unspecified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB.
- The disk type to use to create the instance. Unspecified, the default is pd-standard, specified using the full URL (e.g. https://www.googleapis.com/compute/v1/projects/project/zones/zone/diskTypes/pd-standard). Other values include pd-ssd and local-ssd. Provide either the full or partial URL. Note that for
InstanceTemplate, this is the name of the disk type, not URL.
- labels map
- Labels to apply to this disk. Only applicable for persistent disks.
- source-image-encryption-key subresource
Encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. Instance templates do not store customer-supplied encryption keys, so you cannot create disks or instances in a managed instance group if the source images are encrypted with your own keys.
- source-snapshot-encryption-key subresource
Encryption key of the source snapshot.
- resource-policy list
- Resource policies applied to this disk for automatic snapshot creations.
- If set to
true, uses an autogenerated disk name instead of the one provided. Defaults to
- Disk interface to use for attaching this disk. Valid values are
NVME. Default is
SCSI. Persistent disks must always use
SCSI and the request will fail if you attempt to attach a persistent disk in any other format than
- The mode in which to attach this disk. Valid values are
READ_ONLY. Default is
- source resource
The Persistent Disk resource.
- Type of the disk, valid values are
PERSISTENT. Default is
||The status of the instance. Setting a value of TERMINATED` will stop the instance while setting the value to
RUNNING will start an instance. See also instance status.
||The list of service accounts that are authorized for the instance.
The metadata of the instance, specified with key/value pairs.
Keys may only contain alphanumeric characters, dashes, and underscores, and must be 1-128 characters in length.
Values must be 0-262144 characters in length.
The set of tags for the instance. Each tag must be 1-63 characters, 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.
All tags for an instance must be unique. You can assign up to 64 different tags per instance.