Show / Hide Table of Contents

Class InstanceTemplateDiskArgs

Inheritance
System.Object
InputArgs
ResourceArgs
InstanceTemplateDiskArgs
Inherited Members
ResourceArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute.Inputs
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class InstanceTemplateDiskArgs : ResourceArgs

Constructors

View Source

InstanceTemplateDiskArgs()

Declaration
public InstanceTemplateDiskArgs()

Properties

View Source

AutoDelete

Whether or not the disk should be auto-deleted. This defaults to true.

Declaration
public Input<bool> AutoDelete { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

Boot

Indicates that this is a boot disk.

Declaration
public Input<bool> Boot { get; set; }
Property Value
Type Description
Input<System.Boolean>
View Source

DeviceName

A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.

Declaration
public Input<string> DeviceName { get; set; }
Property Value
Type Description
Input<System.String>
View Source

DiskEncryptionKey

Encrypts or decrypts a disk using a customer-supplied encryption key.

Declaration
public Input<InstanceTemplateDiskDiskEncryptionKeyArgs> DiskEncryptionKey { get; set; }
Property Value
Type Description
Input<InstanceTemplateDiskDiskEncryptionKeyArgs>
View Source

DiskName

Name of the disk. When not provided, this defaults to the name of the instance.

Declaration
public Input<string> DiskName { get; set; }
Property Value
Type Description
Input<System.String>
View Source

DiskSizeGb

The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.

Declaration
public Input<int> DiskSizeGb { get; set; }
Property Value
Type Description
Input<System.Int32>
View Source

DiskType

The GCE disk type. Can be either &quot;pd-ssd&quot;, &quot;local-ssd&quot;, or &quot;pd-standard&quot;.

Declaration
public Input<string> DiskType { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Interface

Specifies the disk interface to use for attaching this disk.

Declaration
public Input<string> Interface { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Labels

A set of key/value label pairs to assign to instances created from this template,

Declaration
public InputMap<string> Labels { get; set; }
Property Value
Type Description
InputMap<System.String>
View Source

Mode

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.

Declaration
public Input<string> Mode { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Source

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source or source_image is required when creating a new instance except for when creating a local SSD. Check the API docs for details.

Declaration
public Input<string> Source { get; set; }
Property Value
Type Description
Input<System.String>
View Source

SourceImage

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source or source_image is required when creating a new instance except for when creating a local SSD. Check the API docs for details.

Declaration
public Input<string> SourceImage { get; set; }
Property Value
Type Description
Input<System.String>
View Source

Type

The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.

Declaration
public Input<string> Type { get; set; }
Property Value
Type Description
Input<System.String>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.