RegionDisk

Persistent disks are durable storage devices that function similarly to the physical disks in a desktop or a server. Compute Engine manages the hardware behind these devices to ensure data redundancy and optimize performance for you. Persistent disks are available as either standard hard disk drives (HDD) or solid-state drives (SSD).

Persistent disks are located independently from your virtual machine instances, so you can detach or move persistent disks to keep your data even after you delete your instances. Persistent disk performance scales automatically with size, so you can resize your existing persistent disks or add more persistent disks to an instance to meet your performance and storage space requirements.

Add a persistent disk to your instance when you need reliable and affordable storage with consistent performance characteristics.

To get more information about RegionDisk, see:

Warning: All arguments including disk_encryption_key.raw_key will be stored in the raw state as plain-text. Read more about secrets in state.

Create a RegionDisk Resource

def RegionDisk(resource_name, opts=None, description=None, disk_encryption_key=None, labels=None, name=None, physical_block_size_bytes=None, project=None, region=None, replica_zones=None, size=None, snapshot=None, source_snapshot_encryption_key=None, type=None, __props__=None);
func NewRegionDisk(ctx *Context, name string, args RegionDiskArgs, opts ...ResourceOption) (*RegionDisk, error)
public RegionDisk(string name, RegionDiskArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args RegionDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args RegionDiskArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args RegionDiskArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

RegionDisk Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The RegionDisk resource accepts the following input properties:

ReplicaZones List<string>

URLs of the zones where the disk should be replicated to.

Description string

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

DiskEncryptionKey RegionDiskDiskEncryptionKeyArgs

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

Labels Dictionary<string, string>

Labels to apply to this disk. A list of key->value pairs.

Name string

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

PhysicalBlockSizeBytes int

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

A reference to the region where the disk resides.

Size int

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

Snapshot string

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

SourceSnapshotEncryptionKey RegionDiskSourceSnapshotEncryptionKeyArgs

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

Type string

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

ReplicaZones []string

URLs of the zones where the disk should be replicated to.

Description string

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

DiskEncryptionKey RegionDiskDiskEncryptionKey

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

Labels map[string]string

Labels to apply to this disk. A list of key->value pairs.

Name string

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

PhysicalBlockSizeBytes int

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

A reference to the region where the disk resides.

Size int

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

Snapshot string

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

SourceSnapshotEncryptionKey RegionDiskSourceSnapshotEncryptionKey

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

Type string

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

replicaZones string[]

URLs of the zones where the disk should be replicated to.

description string

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

diskEncryptionKey RegionDiskDiskEncryptionKey

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

labels {[key: string]: string}

Labels to apply to this disk. A list of key->value pairs.

name string

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

physicalBlockSizeBytes number

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region string

A reference to the region where the disk resides.

size number

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

snapshot string

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

sourceSnapshotEncryptionKey RegionDiskSourceSnapshotEncryptionKey

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

type string

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

replica_zones List[str]

URLs of the zones where the disk should be replicated to.

description str

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

disk_encryption_key Dict[RegionDiskDiskEncryptionKey]

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

labels Dict[str, str]

Labels to apply to this disk. A list of key->value pairs.

name str

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

physical_block_size_bytes float

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region str

A reference to the region where the disk resides.

size float

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

snapshot str

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

source_snapshot_encryption_key Dict[RegionDiskSourceSnapshotEncryptionKey]

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

type str

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

Outputs

All input properties are implicitly available as output properties. Additionally, the RegionDisk resource produces the following output properties:

CreationTimestamp string

Creation timestamp in RFC3339 text format.

Id string
The provider-assigned unique ID for this managed resource.
LabelFingerprint string

The fingerprint used for optimistic locking of this resource. Used internally during updates.

LastAttachTimestamp string

Last attach timestamp in RFC3339 text format.

LastDetachTimestamp string

Last detach timestamp in RFC3339 text format.

SelfLink string

The URI of the created resource.

SourceSnapshotId string

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

Users List<string>

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

CreationTimestamp string

Creation timestamp in RFC3339 text format.

Id string
The provider-assigned unique ID for this managed resource.
LabelFingerprint string

The fingerprint used for optimistic locking of this resource. Used internally during updates.

LastAttachTimestamp string

Last attach timestamp in RFC3339 text format.

LastDetachTimestamp string

Last detach timestamp in RFC3339 text format.

SelfLink string

The URI of the created resource.

SourceSnapshotId string

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

Users []string

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

creationTimestamp string

Creation timestamp in RFC3339 text format.

id string
The provider-assigned unique ID for this managed resource.
labelFingerprint string

The fingerprint used for optimistic locking of this resource. Used internally during updates.

lastAttachTimestamp string

Last attach timestamp in RFC3339 text format.

lastDetachTimestamp string

Last detach timestamp in RFC3339 text format.

selfLink string

The URI of the created resource.

sourceSnapshotId string

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

users string[]

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

creation_timestamp str

Creation timestamp in RFC3339 text format.

id str
The provider-assigned unique ID for this managed resource.
label_fingerprint str

The fingerprint used for optimistic locking of this resource. Used internally during updates.

last_attach_timestamp str

Last attach timestamp in RFC3339 text format.

last_detach_timestamp str

Last detach timestamp in RFC3339 text format.

self_link str

The URI of the created resource.

source_snapshot_id str

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

users List[str]

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

Look up an Existing RegionDisk Resource

Get an existing RegionDisk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RegionDiskState, opts?: CustomResourceOptions): RegionDisk
static get(resource_name, id, opts=None, creation_timestamp=None, description=None, disk_encryption_key=None, label_fingerprint=None, labels=None, last_attach_timestamp=None, last_detach_timestamp=None, name=None, physical_block_size_bytes=None, project=None, region=None, replica_zones=None, self_link=None, size=None, snapshot=None, source_snapshot_encryption_key=None, source_snapshot_id=None, type=None, users=None, __props__=None);
func GetRegionDisk(ctx *Context, name string, id IDInput, state *RegionDiskState, opts ...ResourceOption) (*RegionDisk, error)
public static RegionDisk Get(string name, Input<string> id, RegionDiskState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

CreationTimestamp string

Creation timestamp in RFC3339 text format.

Description string

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

DiskEncryptionKey RegionDiskDiskEncryptionKeyArgs

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

LabelFingerprint string

The fingerprint used for optimistic locking of this resource. Used internally during updates.

Labels Dictionary<string, string>

Labels to apply to this disk. A list of key->value pairs.

LastAttachTimestamp string

Last attach timestamp in RFC3339 text format.

LastDetachTimestamp string

Last detach timestamp in RFC3339 text format.

Name string

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

PhysicalBlockSizeBytes int

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

A reference to the region where the disk resides.

ReplicaZones List<string>

URLs of the zones where the disk should be replicated to.

SelfLink string

The URI of the created resource.

Size int

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

Snapshot string

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

SourceSnapshotEncryptionKey RegionDiskSourceSnapshotEncryptionKeyArgs

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

SourceSnapshotId string

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

Type string

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

Users List<string>

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

CreationTimestamp string

Creation timestamp in RFC3339 text format.

Description string

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

DiskEncryptionKey RegionDiskDiskEncryptionKey

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

LabelFingerprint string

The fingerprint used for optimistic locking of this resource. Used internally during updates.

Labels map[string]string

Labels to apply to this disk. A list of key->value pairs.

LastAttachTimestamp string

Last attach timestamp in RFC3339 text format.

LastDetachTimestamp string

Last detach timestamp in RFC3339 text format.

Name string

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

PhysicalBlockSizeBytes int

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Region string

A reference to the region where the disk resides.

ReplicaZones []string

URLs of the zones where the disk should be replicated to.

SelfLink string

The URI of the created resource.

Size int

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

Snapshot string

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

SourceSnapshotEncryptionKey RegionDiskSourceSnapshotEncryptionKey

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

SourceSnapshotId string

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

Type string

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

Users []string

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

creationTimestamp string

Creation timestamp in RFC3339 text format.

description string

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

diskEncryptionKey RegionDiskDiskEncryptionKey

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

labelFingerprint string

The fingerprint used for optimistic locking of this resource. Used internally during updates.

labels {[key: string]: string}

Labels to apply to this disk. A list of key->value pairs.

lastAttachTimestamp string

Last attach timestamp in RFC3339 text format.

lastDetachTimestamp string

Last detach timestamp in RFC3339 text format.

name string

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

physicalBlockSizeBytes number

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region string

A reference to the region where the disk resides.

replicaZones string[]

URLs of the zones where the disk should be replicated to.

selfLink string

The URI of the created resource.

size number

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

snapshot string

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

sourceSnapshotEncryptionKey RegionDiskSourceSnapshotEncryptionKey

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

sourceSnapshotId string

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

type string

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

users string[]

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

creation_timestamp str

Creation timestamp in RFC3339 text format.

description str

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

disk_encryption_key Dict[RegionDiskDiskEncryptionKey]

Encrypts the disk using a customer-supplied encryption key. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later (e.g. to create a disk snapshot or an image, or to attach the disk to a virtual machine). Customer-supplied encryption keys do not protect access to metadata of the disk. If you do not provide an encryption key when creating the disk, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Structure is documented below.

label_fingerprint str

The fingerprint used for optimistic locking of this resource. Used internally during updates.

labels Dict[str, str]

Labels to apply to this disk. A list of key->value pairs.

last_attach_timestamp str

Last attach timestamp in RFC3339 text format.

last_detach_timestamp str

Last detach timestamp in RFC3339 text format.

name str

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

physical_block_size_bytes float

Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently supported sizes are 4096 and 16384, other sizes may be added in the future. If an unsupported value is requested, the error message will list the supported values for the caller’s project.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

region str

A reference to the region where the disk resides.

replica_zones List[str]

URLs of the zones where the disk should be replicated to.

self_link str

The URI of the created resource.

size float

Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the sourceImage or sourceSnapshot parameter, or specify it alone to create an empty persistent disk. If you specify this field along with sourceImage or sourceSnapshot, the value of sizeGb must not be less than the size of the sourceImage or the size of the snapshot.

snapshot str

The source snapshot used to create this disk. 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/global/snapshots/snapshot * projects/project/global/snapshots/snapshot * global/snapshots/snapshot * snapshot

source_snapshot_encryption_key Dict[RegionDiskSourceSnapshotEncryptionKey]

The customer-supplied encryption key of the source snapshot. Required if the source snapshot is protected by a customer-supplied encryption key. Structure is documented below.

source_snapshot_id str

The unique ID of the snapshot used to create this disk. This value identifies the exact snapshot that was used to create this persistent disk. For example, if you created the persistent disk from a snapshot that was later deleted and recreated under the same name, the source snapshot ID would identify the exact version of the snapshot that was used.

type str

URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk.

users List[str]

Links to the users of the disk (attached instances) in form: project/zones/zone/instances/instance

Supporting Types

RegionDiskDiskEncryptionKey

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

KmsKeyName string

The name of the encryption key that is stored in Google Cloud KMS.

RawKey string

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

Sha256 string

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

KmsKeyName string

The name of the encryption key that is stored in Google Cloud KMS.

RawKey string

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

Sha256 string

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

kmsKeyName string

The name of the encryption key that is stored in Google Cloud KMS.

rawKey string

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

sha256 string

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

kms_key_name str

The name of the encryption key that is stored in Google Cloud KMS.

rawKey str

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

sha256 str

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

RegionDiskSourceSnapshotEncryptionKey

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

KmsKeyName string

The name of the encryption key that is stored in Google Cloud KMS.

RawKey string

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

Sha256 string

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

KmsKeyName string

The name of the encryption key that is stored in Google Cloud KMS.

RawKey string

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

Sha256 string

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

kmsKeyName string

The name of the encryption key that is stored in Google Cloud KMS.

rawKey string

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

sha256 string

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

kms_key_name str

The name of the encryption key that is stored in Google Cloud KMS.

rawKey str

Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.

sha256 str

- The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.