Google Cloud v8.27.0 published on Thursday, Apr 17, 2025 by Pulumi
gcp.compute.getRegionDisk
Explore with Pulumi AI
Get information about a Google Compute Regional Persistent disks.
the official documentation and its API.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  default:
    type: gcp:compute:Instance
    properties:
      attachedDisks:
        - source: ${diskGoogleComputeDisk.selfLink}
variables:
  disk:
    fn::invoke:
      function: gcp:compute:getRegionDisk
      arguments:
        name: persistent-regional-disk
        project: example
        region: us-central1
        type: pd-ssd
        physicalBlockSizeBytes: 4096
        replicaZones:
          - us-central1-a
          - us-central1-f
Using getRegionDisk
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRegionDisk(args: GetRegionDiskArgs, opts?: InvokeOptions): Promise<GetRegionDiskResult>
function getRegionDiskOutput(args: GetRegionDiskOutputArgs, opts?: InvokeOptions): Output<GetRegionDiskResult>def get_region_disk(name: Optional[str] = None,
                    project: Optional[str] = None,
                    region: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetRegionDiskResult
def get_region_disk_output(name: Optional[pulumi.Input[str]] = None,
                    project: Optional[pulumi.Input[str]] = None,
                    region: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetRegionDiskResult]func LookupRegionDisk(ctx *Context, args *LookupRegionDiskArgs, opts ...InvokeOption) (*LookupRegionDiskResult, error)
func LookupRegionDiskOutput(ctx *Context, args *LookupRegionDiskOutputArgs, opts ...InvokeOption) LookupRegionDiskResultOutput> Note: This function is named LookupRegionDisk in the Go SDK.
public static class GetRegionDisk 
{
    public static Task<GetRegionDiskResult> InvokeAsync(GetRegionDiskArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionDiskResult> Invoke(GetRegionDiskInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegionDiskResult> getRegionDisk(GetRegionDiskArgs args, InvokeOptions options)
public static Output<GetRegionDiskResult> getRegionDisk(GetRegionDiskArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:compute/getRegionDisk:getRegionDisk
  arguments:
    # arguments dictionaryThe following arguments are supported:
getRegionDisk Result
The following output properties are available:
- Async
Primary List<GetDisks Region Disk Async Primary Disk>  - Create
Snapshot boolBefore Destroy  - Create
Snapshot stringBefore Destroy Prefix  - Creation
Timestamp string - Description string
 - Disk
Encryption List<GetKeys Region Disk Disk Encryption Key>  - Effective
Labels Dictionary<string, string> - Guest
Os List<GetFeatures Region Disk Guest Os Feature>  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Interface string
 - Label
Fingerprint string - Labels Dictionary<string, string>
 - Last
Attach stringTimestamp  - Last
Detach stringTimestamp  - Licenses List<string>
 - Name string
 - Physical
Block intSize Bytes  - Pulumi
Labels Dictionary<string, string> - Replica
Zones List<string> - Self
Link string - Size int
 - Snapshot string
 - Source
Disk string - Source
Disk stringId  - Source
Snapshot List<GetEncryption Keys Region Disk Source Snapshot Encryption Key>  - Source
Snapshot stringId  - Type string
 - Users List<string>
 - Project string
 - Region string
 
- Async
Primary []GetDisks Region Disk Async Primary Disk  - Create
Snapshot boolBefore Destroy  - Create
Snapshot stringBefore Destroy Prefix  - Creation
Timestamp string - Description string
 - Disk
Encryption []GetKeys Region Disk Disk Encryption Key  - Effective
Labels map[string]string - Guest
Os []GetFeatures Region Disk Guest Os Feature  - Id string
 - The provider-assigned unique ID for this managed resource.
 - Interface string
 - Label
Fingerprint string - Labels map[string]string
 - Last
Attach stringTimestamp  - Last
Detach stringTimestamp  - Licenses []string
 - Name string
 - Physical
Block intSize Bytes  - Pulumi
Labels map[string]string - Replica
Zones []string - Self
Link string - Size int
 - Snapshot string
 - Source
Disk string - Source
Disk stringId  - Source
Snapshot []GetEncryption Keys Region Disk Source Snapshot Encryption Key  - Source
Snapshot stringId  - Type string
 - Users []string
 - Project string
 - Region string
 
- async
Primary List<GetDisks Region Disk Async Primary Disk>  - create
Snapshot BooleanBefore Destroy  - create
Snapshot StringBefore Destroy Prefix  - creation
Timestamp String - description String
 - disk
Encryption List<GetKeys Region Disk Disk Encryption Key>  - effective
Labels Map<String,String> - guest
Os List<GetFeatures Region Disk Guest Os Feature>  - id String
 - The provider-assigned unique ID for this managed resource.
 - interface_ String
 - label
Fingerprint String - labels Map<String,String>
 - last
Attach StringTimestamp  - last
Detach StringTimestamp  - licenses List<String>
 - name String
 - physical
Block IntegerSize Bytes  - pulumi
Labels Map<String,String> - replica
Zones List<String> - self
Link String - size Integer
 - snapshot String
 - source
Disk String - source
Disk StringId  - source
Snapshot List<GetEncryption Keys Region Disk Source Snapshot Encryption Key>  - source
Snapshot StringId  - type String
 - users List<String>
 - project String
 - region String
 
- async
Primary GetDisks Region Disk Async Primary Disk[]  - create
Snapshot booleanBefore Destroy  - create
Snapshot stringBefore Destroy Prefix  - creation
Timestamp string - description string
 - disk
Encryption GetKeys Region Disk Disk Encryption Key[]  - effective
Labels {[key: string]: string} - guest
Os GetFeatures Region Disk Guest Os Feature[]  - id string
 - The provider-assigned unique ID for this managed resource.
 - interface string
 - label
Fingerprint string - labels {[key: string]: string}
 - last
Attach stringTimestamp  - last
Detach stringTimestamp  - licenses string[]
 - name string
 - physical
Block numberSize Bytes  - pulumi
Labels {[key: string]: string} - replica
Zones string[] - self
Link string - size number
 - snapshot string
 - source
Disk string - source
Disk stringId  - source
Snapshot GetEncryption Keys Region Disk Source Snapshot Encryption Key[]  - source
Snapshot stringId  - type string
 - users string[]
 - project string
 - region string
 
- async_
primary_ Sequence[Getdisks Region Disk Async Primary Disk]  - create_
snapshot_ boolbefore_ destroy  - create_
snapshot_ strbefore_ destroy_ prefix  - creation_
timestamp str - description str
 - disk_
encryption_ Sequence[Getkeys Region Disk Disk Encryption Key]  - effective_
labels Mapping[str, str] - guest_
os_ Sequence[Getfeatures Region Disk Guest Os Feature]  - id str
 - The provider-assigned unique ID for this managed resource.
 - interface str
 - label_
fingerprint str - labels Mapping[str, str]
 - last_
attach_ strtimestamp  - last_
detach_ strtimestamp  - licenses Sequence[str]
 - name str
 - physical_
block_ intsize_ bytes  - pulumi_
labels Mapping[str, str] - replica_
zones Sequence[str] - self_
link str - size int
 - snapshot str
 - source_
disk str - source_
disk_ strid  - source_
snapshot_ Sequence[Getencryption_ keys Region Disk Source Snapshot Encryption Key]  - source_
snapshot_ strid  - type str
 - users Sequence[str]
 - project str
 - region str
 
- async
Primary List<Property Map>Disks  - create
Snapshot BooleanBefore Destroy  - create
Snapshot StringBefore Destroy Prefix  - creation
Timestamp String - description String
 - disk
Encryption List<Property Map>Keys  - effective
Labels Map<String> - guest
Os List<Property Map>Features  - id String
 - The provider-assigned unique ID for this managed resource.
 - interface String
 - label
Fingerprint String - labels Map<String>
 - last
Attach StringTimestamp  - last
Detach StringTimestamp  - licenses List<String>
 - name String
 - physical
Block NumberSize Bytes  - pulumi
Labels Map<String> - replica
Zones List<String> - self
Link String - size Number
 - snapshot String
 - source
Disk String - source
Disk StringId  - source
Snapshot List<Property Map>Encryption Keys  - source
Snapshot StringId  - type String
 - users List<String>
 - project String
 - region String
 
Supporting Types
GetRegionDiskAsyncPrimaryDisk     
- Disk string
 - Primary disk for asynchronous disk replication.
 
- Disk string
 - Primary disk for asynchronous disk replication.
 
- disk String
 - Primary disk for asynchronous disk replication.
 
- disk string
 - Primary disk for asynchronous disk replication.
 
- disk str
 - Primary disk for asynchronous disk replication.
 
- disk String
 - Primary disk for asynchronous disk replication.
 
GetRegionDiskDiskEncryptionKey     
- Kms
Key stringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - Raw
Key string - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
 - Rsa
Encrypted stringKey  - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
 - Sha256 string
 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
 
- Kms
Key stringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - Raw
Key string - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
 - Rsa
Encrypted stringKey  - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
 - Sha256 string
 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
 
- kms
Key StringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw
Key String - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
 - rsa
Encrypted StringKey  - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
 - sha256 String
 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
 
- kms
Key stringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw
Key string - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
 - rsa
Encrypted stringKey  - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
 - sha256 string
 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
 
- kms_
key_ strname  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw_
key str - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
 - rsa_
encrypted_ strkey  - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
 - sha256 str
 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
 
- kms
Key StringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw
Key String - Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource.
 - rsa
Encrypted StringKey  - Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. You can provide either the rawKey or the rsaEncryptedKey.
 - sha256 String
 - The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
 
GetRegionDiskGuestOsFeature     
- Type string
 - The type of supported feature. Read Enabling guest operating system features to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC", "SEV_LIVE_MIGRATABLE", "SEV_SNP_CAPABLE", "SUSPEND_RESUME_COMPATIBLE", "TDX_CAPABLE"]
 
- Type string
 - The type of supported feature. Read Enabling guest operating system features to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC", "SEV_LIVE_MIGRATABLE", "SEV_SNP_CAPABLE", "SUSPEND_RESUME_COMPATIBLE", "TDX_CAPABLE"]
 
- type String
 - The type of supported feature. Read Enabling guest operating system features to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC", "SEV_LIVE_MIGRATABLE", "SEV_SNP_CAPABLE", "SUSPEND_RESUME_COMPATIBLE", "TDX_CAPABLE"]
 
- type string
 - The type of supported feature. Read Enabling guest operating system features to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC", "SEV_LIVE_MIGRATABLE", "SEV_SNP_CAPABLE", "SUSPEND_RESUME_COMPATIBLE", "TDX_CAPABLE"]
 
- type str
 - The type of supported feature. Read Enabling guest operating system features to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC", "SEV_LIVE_MIGRATABLE", "SEV_SNP_CAPABLE", "SUSPEND_RESUME_COMPATIBLE", "TDX_CAPABLE"]
 
- type String
 - The type of supported feature. Read Enabling guest operating system features to see a list of available options. Possible values: ["MULTI_IP_SUBNET", "SECURE_BOOT", "SEV_CAPABLE", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC", "SEV_LIVE_MIGRATABLE", "SEV_SNP_CAPABLE", "SUSPEND_RESUME_COMPATIBLE", "TDX_CAPABLE"]
 
GetRegionDiskSourceSnapshotEncryptionKey      
- Kms
Key stringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - Raw
Key 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 stringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - Raw
Key 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 StringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw
Key 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 stringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw
Key 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_ strname  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw_
key 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.
 
- kms
Key StringName  - The name of the encryption key that is stored in Google Cloud KMS.
 - raw
Key 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.
 
Package Details
- Repository
 - Google Cloud (GCP) Classic pulumi/pulumi-gcp
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
google-betaTerraform Provider.