Volume Snapshot Args
data class VolumeSnapshotArgs(val mountOptions: Output<List<String>>? = null, val poolName: Output<String>? = null, val reclaimPolicy: Output<Either<String, ReclaimPolicy>>? = null, val resourceGroupName: Output<String>? = null, val source: Output<String>? = null, val volumeMode: Output<Either<String, VolumeMode>>? = null, val volumeSnapshotName: Output<String>? = null) : ConvertibleToJava<VolumeSnapshotArgs>
Concrete proxy resource types can be created by aliasing this type using a specific property type. API Version: 2023-03-01-preview.
Example Usage
VolumeSnapshots_CreateOrUpdate_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var volumeSnapshot = new AzureNative.ContainerStorage.VolumeSnapshot("volumeSnapshot", new()
{
MountOptions = new[]
{
"ozllffotmjyosqwx",
},
PoolName = "-1Jk-",
ReclaimPolicy = "Delete",
ResourceGroupName = "rgcontainerstorage",
Source = "oytmtfvq",
VolumeMode = "Filesystem",
VolumeSnapshotName = "XBOVLQ-UDJ2n5kod886SN",
});
});
Content copied to clipboard
package main
import (
containerstorage "github.com/pulumi/pulumi-azure-native-sdk/containerstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerstorage.NewVolumeSnapshot(ctx, "volumeSnapshot", &containerstorage.VolumeSnapshotArgs{
MountOptions: pulumi.StringArray{
pulumi.String("ozllffotmjyosqwx"),
},
PoolName: pulumi.String("-1Jk-"),
ReclaimPolicy: pulumi.String("Delete"),
ResourceGroupName: pulumi.String("rgcontainerstorage"),
Source: pulumi.String("oytmtfvq"),
VolumeMode: pulumi.String("Filesystem"),
VolumeSnapshotName: pulumi.String("XBOVLQ-UDJ2n5kod886SN"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerstorage.VolumeSnapshot;
import com.pulumi.azurenative.containerstorage.VolumeSnapshotArgs;
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 volumeSnapshot = new VolumeSnapshot("volumeSnapshot", VolumeSnapshotArgs.builder()
.mountOptions("ozllffotmjyosqwx")
.poolName("-1Jk-")
.reclaimPolicy("Delete")
.resourceGroupName("rgcontainerstorage")
.source("oytmtfvq")
.volumeMode("Filesystem")
.volumeSnapshotName("XBOVLQ-UDJ2n5kod886SN")
.build());
}
}
Content copied to clipboard
VolumeSnapshots_CreateOrUpdate_MinimumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var volumeSnapshot = new AzureNative.ContainerStorage.VolumeSnapshot("volumeSnapshot", new()
{
PoolName = "E-sfxFA3nN-FcID851Rq-Q3u",
ResourceGroupName = "rgcontainerstorage",
VolumeSnapshotName = "CjG-k-K4nWgGVV3VL-jT-5",
});
});
Content copied to clipboard
package main
import (
containerstorage "github.com/pulumi/pulumi-azure-native-sdk/containerstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerstorage.NewVolumeSnapshot(ctx, "volumeSnapshot", &containerstorage.VolumeSnapshotArgs{
PoolName: pulumi.String("E-sfxFA3nN-FcID851Rq-Q3u"),
ResourceGroupName: pulumi.String("rgcontainerstorage"),
VolumeSnapshotName: pulumi.String("CjG-k-K4nWgGVV3VL-jT-5"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerstorage.VolumeSnapshot;
import com.pulumi.azurenative.containerstorage.VolumeSnapshotArgs;
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 volumeSnapshot = new VolumeSnapshot("volumeSnapshot", VolumeSnapshotArgs.builder()
.poolName("E-sfxFA3nN-FcID851Rq-Q3u")
.resourceGroupName("rgcontainerstorage")
.volumeSnapshotName("CjG-k-K4nWgGVV3VL-jT-5")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:containerstorage:VolumeSnapshot nvn vdihfxdstmkozaxfocgt
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(mountOptions: Output<List<String>>? = null, poolName: Output<String>? = null, reclaimPolicy: Output<Either<String, ReclaimPolicy>>? = null, resourceGroupName: Output<String>? = null, source: Output<String>? = null, volumeMode: Output<Either<String, VolumeMode>>? = null, volumeSnapshotName: Output<String>? = null)
Properties
Link copied to clipboard
List of string mount options
Link copied to clipboard
Reclaim Policy, Delete or Retain
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Indicates how the volumes created from the snapshot should be attached
Link copied to clipboard
Volume Snapshot Resource