Class InstanceTemplateDiskArgs
Inherited Members
Namespace: Pulumi.Gcp.Compute.Inputs
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class InstanceTemplateDiskArgs : ResourceArgs
Constructors
View SourceInstanceTemplateDiskArgs()
Declaration
public InstanceTemplateDiskArgs()
Properties
View SourceAutoDelete
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> |
Boot
Indicates that this is a boot disk.
Declaration
public Input<bool> Boot { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
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> |
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> |
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> |
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> |
DiskType
The GCE disk type. Can be either "pd-ssd",
"local-ssd", or "pd-standard".
Declaration
public Input<string> DiskType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
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> |
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> |
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> |
Source
The name (not self_link)
of the disk (such as those managed by gcp.compute.Disk) to attach.
Note: Either
sourceorsource_imageis 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> |
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
sourceorsource_imageis 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> |
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> |