Compute Engine v1 API - Class MachineImage (2.12.0)

public sealed class MachineImage : IMessage<MachineImage>, IEquatable<MachineImage>, IDeepCloneable<MachineImage>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API 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.

Inheritance

object > MachineImage

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

MachineImage()

public MachineImage()

MachineImage(MachineImage)

public MachineImage(MachineImage other)
Parameter
NameDescription
otherMachineImage

Properties

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] The creation timestamp for this machine image in RFC3339 text format.

Property Value
TypeDescription
string

Description

public string Description { get; set; }

An optional description of this resource. Provide this property when you create the resource.

Property Value
TypeDescription
string

GuestFlush

public bool GuestFlush { get; set; }

[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.

Property Value
TypeDescription
bool

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
bool

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
bool

HasGuestFlush

public bool HasGuestFlush { get; }

Gets whether the "guest_flush" field is set

Property Value
TypeDescription
bool

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
bool

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
bool

HasSatisfiesPzs

public bool HasSatisfiesPzs { get; }

Gets whether the "satisfies_pzs" field is set

Property Value
TypeDescription
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
bool

HasSourceInstance

public bool HasSourceInstance { get; }

Gets whether the "source_instance" field is set

Property Value
TypeDescription
bool

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
bool

HasTotalStorageBytes

public bool HasTotalStorageBytes { get; }

Gets whether the "total_storage_bytes" field is set

Property Value
TypeDescription
bool

Id

public ulong Id { get; set; }

[Output Only] A unique identifier for this machine image. The server defines this identifier.

Property Value
TypeDescription
ulong

InstanceProperties

public InstanceProperties InstanceProperties { get; set; }

[Output Only] Properties of source instance

Property Value
TypeDescription
InstanceProperties

Kind

public string Kind { get; set; }

[Output Only] The resource type, which is always compute#machineImage for machine image.

Property Value
TypeDescription
string

MachineImageEncryptionKey

public CustomerEncryptionKey MachineImageEncryptionKey { get; set; }

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.

Property Value
TypeDescription
CustomerEncryptionKey

Name

public string Name { get; set; }

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.

Property Value
TypeDescription
string

SatisfiesPzs

public bool SatisfiesPzs { get; set; }

[Output Only] Reserved for future use.

Property Value
TypeDescription
bool

SavedDisks

public RepeatedField<SavedDisk> SavedDisks { get; }

An array of Machine Image specific properties for disks attached to the source instance

Property Value
TypeDescription
RepeatedFieldSavedDisk
public string SelfLink { get; set; }

[Output Only] The URL for this machine image. The server defines this URL.

Property Value
TypeDescription
string

SourceDiskEncryptionKeys

public RepeatedField<SourceDiskEncryptionKey> SourceDiskEncryptionKeys { get; }

[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.

Property Value
TypeDescription
RepeatedFieldSourceDiskEncryptionKey

SourceInstance

public string SourceInstance { get; set; }

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

Property Value
TypeDescription
string

SourceInstanceProperties

public SourceInstanceProperties SourceInstanceProperties { get; set; }

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

Property Value
TypeDescription
SourceInstanceProperties

Status

public string Status { get; set; }

[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.

Property Value
TypeDescription
string

StorageLocations

public RepeatedField<string> StorageLocations { get; }

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

Property Value
TypeDescription
RepeatedFieldstring

TotalStorageBytes

public long TotalStorageBytes { get; set; }

[Output Only] Total size of the storage used by the machine image.

Property Value
TypeDescription
long