getSnapshot

Use this data source to access information about an existing Snapshot.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.compute.ComputeFunctions;
import com.pulumi.azure.compute.inputs.GetSnapshotArgs;
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 example = ComputeFunctions.getSnapshot(GetSnapshotArgs.builder()
.name("my-snapshot")
.resourceGroupName("my-resource-group")
.build());
}
}

Return

A collection of values returned by getSnapshot.

Parameters

argument

A collection of arguments for invoking getSnapshot.


suspend fun getSnapshot(name: String, resourceGroupName: String): GetSnapshotResult

Return

A collection of values returned by getSnapshot.

See also

Parameters

name

Specifies the name of the Snapshot.

resourceGroupName

Specifies the name of the resource group the Snapshot is located in.


suspend fun getSnapshot(argument: suspend GetSnapshotPlainArgsBuilder.() -> Unit): GetSnapshotResult

Return

A collection of values returned by getSnapshot.

See also

Parameters

argument

Builder for com.pulumi.azure.compute.kotlin.inputs.GetSnapshotPlainArgs.