Class 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.
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class MachineImage : IDirectResponseSchema
Properties
CreationTimestamp
[Output Only] The creation timestamp for this machine image in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
An optional description of this resource. Provide this property when you create the resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
GuestFlush
[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.
Declaration
[JsonProperty("guestFlush")]
public virtual bool? GuestFlush { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Id
[Output Only] A unique identifier for this machine image. The server defines this identifier.
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
Type | Description |
---|---|
ulong? |
InstanceProperties
[Output Only] Properties of source instance
Declaration
[JsonProperty("instanceProperties")]
public virtual InstanceProperties InstanceProperties { get; set; }
Property Value
Type | Description |
---|---|
InstanceProperties |
Kind
[Output Only] The resource type, which is always compute#machineImage for machine image.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
MachineImageEncryptionKey
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.
Declaration
[JsonProperty("machineImageEncryptionKey")]
public virtual CustomerEncryptionKey MachineImageEncryptionKey { get; set; }
Property Value
Type | Description |
---|---|
CustomerEncryptionKey |
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 [a-z]([-a-z0-9]*[a-z0-9])?
which means the 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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SatisfiesPzi
Output only. Reserved for future use.
Declaration
[JsonProperty("satisfiesPzi")]
public virtual bool? SatisfiesPzi { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SatisfiesPzs
[Output Only] Reserved for future use.
Declaration
[JsonProperty("satisfiesPzs")]
public virtual bool? SatisfiesPzs { get; set; }
Property Value
Type | Description |
---|---|
bool? |
SavedDisks
An array of Machine Image specific properties for disks attached to the source instance
Declaration
[JsonProperty("savedDisks")]
public virtual IList<SavedDisk> SavedDisks { get; set; }
Property Value
Type | Description |
---|---|
IList<SavedDisk> |
SelfLink
[Output Only] The URL for this machine image. The server defines this URL.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type | Description |
---|---|
string |
SourceDiskEncryptionKeys
[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.
Declaration
[JsonProperty("sourceDiskEncryptionKeys")]
public virtual IList<SourceDiskEncryptionKey> SourceDiskEncryptionKeys { get; set; }
Property Value
Type | Description |
---|---|
IList<SourceDiskEncryptionKey> |
SourceInstance
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: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance
Declaration
[JsonProperty("sourceInstance")]
public virtual string SourceInstance { get; set; }
Property Value
Type | Description |
---|---|
string |
SourceInstanceProperties
[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.
Declaration
[JsonProperty("sourceInstanceProperties")]
public virtual SourceInstanceProperties SourceInstanceProperties { get; set; }
Property Value
Type | Description |
---|---|
SourceInstanceProperties |
Status
[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING.
Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
Type | Description |
---|---|
string |
StorageLocations
The regional or multi-regional Cloud Storage bucket location where the machine image is stored.
Declaration
[JsonProperty("storageLocations")]
public virtual IList<string> StorageLocations { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
TotalStorageBytes
[Output Only] Total size of the storage used by the machine image.
Declaration
[JsonProperty("totalStorageBytes")]
public virtual long? TotalStorageBytes { get; set; }
Property Value
Type | Description |
---|---|
long? |