Class InstanceTemplateDisk
Inheritance
Inherited Members
Namespace: Pulumi.Gcp.Compute.Outputs
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class InstanceTemplateDisk
Fields
View SourceAutoDelete
Whether or not the disk should be auto-deleted. This defaults to true.
Declaration
public readonly bool? AutoDelete
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
Boot
Indicates that this is a boot disk.
Declaration
public readonly bool? Boot
Field Value
| Type | Description |
|---|---|
| System.Nullable<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 readonly string DeviceName
Field Value
| Type | Description |
|---|---|
| System.String |
DiskEncryptionKey
Encrypts or decrypts a disk using a customer-supplied encryption key.
Declaration
public readonly InstanceTemplateDiskDiskEncryptionKey DiskEncryptionKey
Field Value
| Type | Description |
|---|---|
| InstanceTemplateDiskDiskEncryptionKey |
DiskName
Name of the disk. When not provided, this defaults to the name of the instance.
Declaration
public readonly string DiskName
Field Value
| Type | Description |
|---|---|
| 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 readonly int? DiskSizeGb
Field Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
DiskType
The GCE disk type. Can be either "pd-ssd",
"local-ssd", or "pd-standard".
Declaration
public readonly string DiskType
Field Value
| Type | Description |
|---|---|
| System.String |
Interface
Specifies the disk interface to use for attaching this disk.
Declaration
public readonly string Interface
Field Value
| Type | Description |
|---|---|
| System.String |
Labels
A set of key/value label pairs to assign to instances created from this template,
Declaration
public readonly ImmutableDictionary<string, string> Labels
Field Value
| Type | Description |
|---|---|
| System.Collections.Immutable.ImmutableDictionary<System.String, 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 readonly string Mode
Field Value
| Type | Description |
|---|---|
| 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 readonly string Source
Field Value
| Type | Description |
|---|---|
| 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 readonly string SourceImage
Field Value
| Type | Description |
|---|---|
| System.String |
Type
The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.
Declaration
public readonly string Type
Field Value
| Type | Description |
|---|---|
| System.String |