SnapshotArgs

data class SnapshotArgs(val poolName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val snapshotName: Output<String>? = null, val source: Output<String>? = null) : ConvertibleToJava<SnapshotArgs>

Concrete proxy resource types can be created by aliasing this type using a specific property type. Uses Azure REST API version 2023-07-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-07-01-preview.

Example Usage

Snapshots_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var snapshot = new AzureNative.ContainerStorage.Snapshot("snapshot", new()
{
PoolName = "test-pool",
ResourceGroupName = "test-rg",
SnapshotName = "test-snapshot",
Source = "C0C6I6",
});
});
package main
import (
containerstorage "github.com/pulumi/pulumi-azure-native-sdk/containerstorage/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerstorage.NewSnapshot(ctx, "snapshot", &containerstorage.SnapshotArgs{
PoolName: pulumi.String("test-pool"),
ResourceGroupName: pulumi.String("test-rg"),
SnapshotName: pulumi.String("test-snapshot"),
Source: pulumi.String("C0C6I6"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerstorage.Snapshot;
import com.pulumi.azurenative.containerstorage.SnapshotArgs;
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) {
var snapshot = new Snapshot("snapshot", SnapshotArgs.builder()
.poolName("test-pool")
.resourceGroupName("test-rg")
.snapshotName("test-snapshot")
.source("C0C6I6")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:containerstorage:Snapshot test-snapshot /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerStorage/pools/{poolName}/snapshots/{snapshotName}

Constructors

Link copied to clipboard
constructor(poolName: Output<String>? = null, resourceGroupName: Output<String>? = null, snapshotName: Output<String>? = null, source: Output<String>? = null)

Properties

Link copied to clipboard
val poolName: Output<String>? = null

Pool Object

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val snapshotName: Output<String>? = null

Volume Snapshot Resource

Link copied to clipboard
val source: Output<String>? = null

Reference to the source volume

Functions

Link copied to clipboard
open override fun toJava(): SnapshotArgs