Yandex

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

getComputeSnapshot

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

Using getComputeSnapshot

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 getComputeSnapshot(args: GetComputeSnapshotArgs, opts?: InvokeOptions): Promise<GetComputeSnapshotResult>
function getComputeSnapshotOutput(args: GetComputeSnapshotOutputArgs, opts?: InvokeOptions): Output<GetComputeSnapshotResult>
def get_compute_snapshot(folder_id: Optional[str] = None,
                         name: Optional[str] = None,
                         snapshot_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetComputeSnapshotResult
def get_compute_snapshot_output(folder_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         snapshot_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetComputeSnapshotResult]
func LookupComputeSnapshot(ctx *Context, args *LookupComputeSnapshotArgs, opts ...InvokeOption) (*LookupComputeSnapshotResult, error)
func LookupComputeSnapshotOutput(ctx *Context, args *LookupComputeSnapshotOutputArgs, opts ...InvokeOption) LookupComputeSnapshotResultOutput

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

public static class GetComputeSnapshot 
{
    public static Task<GetComputeSnapshotResult> InvokeAsync(GetComputeSnapshotArgs args, InvokeOptions? opts = null)
    public static Output<GetComputeSnapshotResult> Invoke(GetComputeSnapshotInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

FolderId string
ID of the folder that the snapshot belongs to.
Name string
The name of the snapshot.
SnapshotId string
The ID of a specific snapshot.
FolderId string
ID of the folder that the snapshot belongs to.
Name string
The name of the snapshot.
SnapshotId string
The ID of a specific snapshot.
folderId string
ID of the folder that the snapshot belongs to.
name string
The name of the snapshot.
snapshotId string
The ID of a specific snapshot.
folder_id str
ID of the folder that the snapshot belongs to.
name str
The name of the snapshot.
snapshot_id str
The ID of a specific snapshot.

getComputeSnapshot Result

The following output properties are available:

CreatedAt string
Snapshot creation timestamp.
Description string
An optional description of this snapshot.
DiskSize int
Minimum required size of the disk which is created from this snapshot.
FolderId string
ID of the folder that the snapshot belongs to.
Id string
The provider-assigned unique ID for this managed resource.
Labels Dictionary<string, string>
A map of labels applied to this snapshot.
Name string
ProductIds List<string>
License IDs that indicate which licenses are attached to this snapshot.
SnapshotId string
SourceDiskId string
ID of the source disk.
Status string
The status of the snapshot.
StorageSize int
The size of the snapshot, specified in Gb.
CreatedAt string
Snapshot creation timestamp.
Description string
An optional description of this snapshot.
DiskSize int
Minimum required size of the disk which is created from this snapshot.
FolderId string
ID of the folder that the snapshot belongs to.
Id string
The provider-assigned unique ID for this managed resource.
Labels map[string]string
A map of labels applied to this snapshot.
Name string
ProductIds []string
License IDs that indicate which licenses are attached to this snapshot.
SnapshotId string
SourceDiskId string
ID of the source disk.
Status string
The status of the snapshot.
StorageSize int
The size of the snapshot, specified in Gb.
createdAt string
Snapshot creation timestamp.
description string
An optional description of this snapshot.
diskSize number
Minimum required size of the disk which is created from this snapshot.
folderId string
ID of the folder that the snapshot belongs to.
id string
The provider-assigned unique ID for this managed resource.
labels {[key: string]: string}
A map of labels applied to this snapshot.
name string
productIds string[]
License IDs that indicate which licenses are attached to this snapshot.
snapshotId string
sourceDiskId string
ID of the source disk.
status string
The status of the snapshot.
storageSize number
The size of the snapshot, specified in Gb.
created_at str
Snapshot creation timestamp.
description str
An optional description of this snapshot.
disk_size int
Minimum required size of the disk which is created from this snapshot.
folder_id str
ID of the folder that the snapshot belongs to.
id str
The provider-assigned unique ID for this managed resource.
labels Mapping[str, str]
A map of labels applied to this snapshot.
name str
product_ids Sequence[str]
License IDs that indicate which licenses are attached to this snapshot.
snapshot_id str
source_disk_id str
ID of the source disk.
status str
The status of the snapshot.
storage_size int
The size of the snapshot, specified in Gb.

Package Details

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