- Resource: MachineImage
- Status
- SourceInstanceProperties
- SavedAttachedDisk
- SavedDisk
- SourceDiskEncryptionKey
- Methods
Resource: MachineImage
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 |
---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "selfLink": string, "sourceInstance": string, "status": enum ( |
Fields | |
---|---|
kind |
[Output Only] The resource type, which is always
for machine image. |
id |
[Output Only] A unique identifier for this machine image. The server defines this identifier. |
creation |
[Output Only] The creation timestamp for this machine image in RFC3339 text format. |
name |
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
description |
An optional description of this resource. Provide this property when you create the resource. |
self |
[Output Only] The URL for this machine image. The server defines this URL. |
source |
The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values:
|
status |
[Output Only] The status of the machine image. One of the following values:
,
,
,
, and
. |
source |
[Output Only] DEPRECATED: Please use
instead for source instance related properties. New properties will not be added to this field. |
instance |
[Output Only] Properties of source instance |
saved |
An array of Machine Image specific properties for disks attached to the source instance |
storage |
The regional or multi-regional Cloud Storage bucket location where the machine image is stored. |
machine |
Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later. |
guest |
[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process. |
source |
[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key. |
total |
[Output Only] Total size of the storage used by the machine image. |
satisfies |
[Output Only] Reserved for future use. |
satisfies |
Output only. Reserved for future use. |
Status
Enums | |
---|---|
INVALID |
|
CREATING |
|
READY |
|
DELETING |
|
UPLOADING |
SourceInstanceProperties
DEPRECATED: Please use
compute#instanceProperties
instead. New properties will not be added to this field.
JSON representation |
---|
{ "description": string, "tags": { object ( |
Fields | |
---|---|
description |
An optional text description for the instances that are created from this machine image. |
tags |
A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035. |
machine |
The machine type to use for instances that are created from this machine image. |
can |
Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify
. If unsure, leave this set to
. See the Enable IP forwarding documentation for more information. |
network |
An array of network access configurations for this interface. |
disks[] |
An array of disks that are associated with the instances that are created from this machine image. |
metadata |
The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. |
service |
A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances. |
scheduling |
Specifies the scheduling options for the instances that are created from this machine image. |
labels |
Labels to apply to instances that are created from this machine image. |
guest |
A list of guest accelerator cards' type and count to use for instances created from this machine image. |
min |
Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as
or
. For more information, read Specifying a Minimum CPU Platform. |
deletion |
Whether the instance created from this machine image should be protected against deletion. |
key |
KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified. |
SavedAttachedDisk
DEPRECATED: Please use
compute#savedDisk
instead. An instance-attached disk resource.
JSON representation |
---|
{ "kind": string, "type": enum ( |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always
for attached disks. |
type |
Specifies the type of the attached disk, either
or
. |
mode |
The mode in which this disk is attached to the source instance, either
or
. |
source |
Specifies a URL of the disk attached to the source instance. |
device |
Specifies the name of the disk attached to the source instance. |
index |
Specifies zero-based index of the disk that is attached to the source instance. |
boot |
Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. |
auto |
Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). |
licenses[] |
[Output Only] Any valid publicly visible licenses. |
interface |
Specifies the disk interface to use for attaching this disk, which is either
or
. |
guest |
A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. |
disk |
The encryption key for the disk. |
disk |
The size of the disk in base-2 GB. |
storage |
[Output Only] A size of the storage used by the disk's snapshot by this machine image. |
storage |
[Output Only] An indicator whether
is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be
, meaning the size of the snapshot is being updated, or
, meaning the size of the snapshot is up-to-date. |
disk |
[Output Only] URL of the disk type resource. For example:
|
SavedDisk
An instance-attached disk resource.
JSON representation |
---|
{ "kind": string, "sourceDisk": string, "storageBytes": string, "storageBytesStatus": enum ( |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always
for attached disks. |
source |
Specifies a URL of the disk attached to the source instance. |
storage |
[Output Only] Size of the individual disk snapshot used by this machine image. |
storage |
[Output Only] An indicator whether
is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be
, meaning the size of the snapshot is being updated, or
, meaning the size of the snapshot is up-to-date. |
architecture |
[Output Only] The architecture of the attached disk. |
SourceDiskEncryptionKey
JSON representation |
---|
{
"sourceDisk": string,
"diskEncryptionKey": {
object ( |
Fields | |
---|---|
source |
URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values:
|
disk |
The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. |
Methods |
|
---|---|
|
The method compute.v1.MachineImagesService.Delete is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.MachineImagesService.Get is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.MachineImagesService.GetPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.MachineImagesService.Insert is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.MachineImagesService.List is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.MachineImagesService.SetPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.MachineImagesService.TestPermissions is not available in this (s3nsapis.fr) universe. |