VolumeSnapshot

class VolumeSnapshot : KotlinCustomResource

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",
});
});
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
})
}
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());
}
}

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",
});
});
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
})
}
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());
}
}

Import

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

$ pulumi import azure-native:containerstorage:VolumeSnapshot nvn vdihfxdstmkozaxfocgt

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val mountOptions: Output<List<String>>

List of string mount options

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The status of the last operation.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reclaimPolicy: Output<String>

Reclaim Policy, Delete or Retain

Link copied to clipboard
val source: Output<String>

Reference to the source volume

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val volumeMode: Output<String>

Indicates how the volumes created from the snapshot should be attached