Google Cloud Classic v8.3.1 published on Wednesday, Sep 25, 2024 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!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetRegionDiskArgs;
import com.pulumi.gcp.compute.Instance;
import com.pulumi.gcp.compute.InstanceArgs;
import com.pulumi.gcp.compute.inputs.InstanceAttachedDiskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var disk = ComputeFunctions.getRegionDisk(GetRegionDiskArgs.builder()
.name("persistent-regional-disk")
.project("example")
.region("us-central1")
.type("pd-ssd")
.physicalBlockSizeBytes(4096)
.replicaZones(
"us-central1-a",
"us-central1-f")
.build());
var default_ = new Instance("default", InstanceArgs.builder()
.attachedDisks(InstanceAttachedDiskArgs.builder()
.source(diskGoogleComputeDisk.selfLink())
.build())
.build());
}
}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getRegionDisk:getRegionDisk
arguments:
# arguments dictionary
The following arguments are supported:
getRegionDisk Result
The following output properties are available:
- Async
Primary List<GetDisks Region Disk Async Primary Disk> - 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 - 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> - 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[] - 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] - 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 - 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.
- 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.
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-beta
Terraform Provider.