Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

getComputeDisk

Get information about a Yandex Compute disk. For more information, see the official documentation.

Using getComputeDisk

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 getComputeDisk(args: GetComputeDiskArgs, opts?: InvokeOptions): Promise<GetComputeDiskResult>
function getComputeDiskOutput(args: GetComputeDiskOutputArgs, opts?: InvokeOptions): Output<GetComputeDiskResult>
def get_compute_disk(disk_id: Optional[str] = None,
                     disk_placement_policy: Optional[GetComputeDiskDiskPlacementPolicy] = None,
                     folder_id: Optional[str] = None,
                     name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetComputeDiskResult
def get_compute_disk_output(disk_id: Optional[pulumi.Input[str]] = None,
                     disk_placement_policy: Optional[pulumi.Input[GetComputeDiskDiskPlacementPolicyArgs]] = None,
                     folder_id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetComputeDiskResult]
func LookupComputeDisk(ctx *Context, args *LookupComputeDiskArgs, opts ...InvokeOption) (*LookupComputeDiskResult, error)
func LookupComputeDiskOutput(ctx *Context, args *LookupComputeDiskOutputArgs, opts ...InvokeOption) LookupComputeDiskResultOutput

> Note: This function is named LookupComputeDisk in the Go SDK.

public static class GetComputeDisk 
{
    public static Task<GetComputeDiskResult> InvokeAsync(GetComputeDiskArgs args, InvokeOptions? opts = null)
    public static Output<GetComputeDiskResult> Invoke(GetComputeDiskInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

DiskId string
The ID of a specific disk.
DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
FolderId string
ID of the folder that the disk belongs to.
Name string
Name of the disk.
DiskId string
The ID of a specific disk.
DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
FolderId string
ID of the folder that the disk belongs to.
Name string
Name of the disk.
diskId string
The ID of a specific disk.
diskPlacementPolicy GetComputeDiskDiskPlacementPolicy
folderId string
ID of the folder that the disk belongs to.
name string
Name of the disk.
disk_id str
The ID of a specific disk.
disk_placement_policy GetComputeDiskDiskPlacementPolicy
folder_id str
ID of the folder that the disk belongs to.
name str
Name of the disk.

getComputeDisk Result

The following output properties are available:

CreatedAt string
Disk creation timestamp.
Description string
Optional description of this disk.
DiskId string
FolderId string
ID of the folder that the disk belongs to.
Id string
The provider-assigned unique ID for this managed resource.
ImageId string
ID of the source image that was used to create this disk.
InstanceIds List<string>
IDs of instances to which this disk is attached.
Labels Dictionary<string, string>
Map of labels applied to this disk.
Name string
ProductIds List<string>
License IDs that indicate which licenses are attached to this disk.
Size int
Size of the disk, specified in Gb.
SnapshotId string
Source snapshot that was used to create this disk.
Status string
Status of the disk.
Type string
Type of the disk.
Zone string
ID of the zone where the disk resides.
DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
CreatedAt string
Disk creation timestamp.
Description string
Optional description of this disk.
DiskId string
FolderId string
ID of the folder that the disk belongs to.
Id string
The provider-assigned unique ID for this managed resource.
ImageId string
ID of the source image that was used to create this disk.
InstanceIds []string
IDs of instances to which this disk is attached.
Labels map[string]string
Map of labels applied to this disk.
Name string
ProductIds []string
License IDs that indicate which licenses are attached to this disk.
Size int
Size of the disk, specified in Gb.
SnapshotId string
Source snapshot that was used to create this disk.
Status string
Status of the disk.
Type string
Type of the disk.
Zone string
ID of the zone where the disk resides.
DiskPlacementPolicy GetComputeDiskDiskPlacementPolicy
createdAt string
Disk creation timestamp.
description string
Optional description of this disk.
diskId string
folderId string
ID of the folder that the disk belongs to.
id string
The provider-assigned unique ID for this managed resource.
imageId string
ID of the source image that was used to create this disk.
instanceIds string[]
IDs of instances to which this disk is attached.
labels {[key: string]: string}
Map of labels applied to this disk.
name string
productIds string[]
License IDs that indicate which licenses are attached to this disk.
size number
Size of the disk, specified in Gb.
snapshotId string
Source snapshot that was used to create this disk.
status string
Status of the disk.
type string
Type of the disk.
zone string
ID of the zone where the disk resides.
diskPlacementPolicy GetComputeDiskDiskPlacementPolicy
created_at str
Disk creation timestamp.
description str
Optional description of this disk.
disk_id str
folder_id str
ID of the folder that the disk belongs to.
id str
The provider-assigned unique ID for this managed resource.
image_id str
ID of the source image that was used to create this disk.
instance_ids Sequence[str]
IDs of instances to which this disk is attached.
labels Mapping[str, str]
Map of labels applied to this disk.
name str
product_ids Sequence[str]
License IDs that indicate which licenses are attached to this disk.
size int
Size of the disk, specified in Gb.
snapshot_id str
Source snapshot that was used to create this disk.
status str
Status of the disk.
type str
Type of the disk.
zone str
ID of the zone where the disk resides.
disk_placement_policy GetComputeDiskDiskPlacementPolicy

Supporting Types

GetComputeDiskDiskPlacementPolicy

Package Details

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