1. Packages
  2. Azure Native v1
  3. API Docs
  4. containerstorage
  5. VolumeSnapshot
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.containerstorage.VolumeSnapshot

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    volume_snapshot = azure_native.containerstorage.VolumeSnapshot("volumeSnapshot",
        mount_options=["ozllffotmjyosqwx"],
        pool_name="-1Jk-",
        reclaim_policy="Delete",
        resource_group_name="rgcontainerstorage",
        source="oytmtfvq",
        volume_mode="Filesystem",
        volume_snapshot_name="XBOVLQ-UDJ2n5kod886SN")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const volumeSnapshot = new azure_native.containerstorage.VolumeSnapshot("volumeSnapshot", {
        mountOptions: ["ozllffotmjyosqwx"],
        poolName: "-1Jk-",
        reclaimPolicy: "Delete",
        resourceGroupName: "rgcontainerstorage",
        source: "oytmtfvq",
        volumeMode: "Filesystem",
        volumeSnapshotName: "XBOVLQ-UDJ2n5kod886SN",
    });
    
    resources:
      volumeSnapshot:
        type: azure-native:containerstorage:VolumeSnapshot
        properties:
          mountOptions:
            - ozllffotmjyosqwx
          poolName: -1Jk-
          reclaimPolicy: Delete
          resourceGroupName: rgcontainerstorage
          source: oytmtfvq
          volumeMode: Filesystem
          volumeSnapshotName: XBOVLQ-UDJ2n5kod886SN
    

    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 pulumi
    import pulumi_azure_native as azure_native
    
    volume_snapshot = azure_native.containerstorage.VolumeSnapshot("volumeSnapshot",
        pool_name="E-sfxFA3nN-FcID851Rq-Q3u",
        resource_group_name="rgcontainerstorage",
        volume_snapshot_name="CjG-k-K4nWgGVV3VL-jT-5")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const volumeSnapshot = new azure_native.containerstorage.VolumeSnapshot("volumeSnapshot", {
        poolName: "E-sfxFA3nN-FcID851Rq-Q3u",
        resourceGroupName: "rgcontainerstorage",
        volumeSnapshotName: "CjG-k-K4nWgGVV3VL-jT-5",
    });
    
    resources:
      volumeSnapshot:
        type: azure-native:containerstorage:VolumeSnapshot
        properties:
          poolName: E-sfxFA3nN-FcID851Rq-Q3u
          resourceGroupName: rgcontainerstorage
          volumeSnapshotName: CjG-k-K4nWgGVV3VL-jT-5
    

    Create VolumeSnapshot Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VolumeSnapshot(name: string, args: VolumeSnapshotArgs, opts?: CustomResourceOptions);
    @overload
    def VolumeSnapshot(resource_name: str,
                       args: VolumeSnapshotArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VolumeSnapshot(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       mount_options: Optional[Sequence[str]] = None,
                       pool_name: Optional[str] = None,
                       reclaim_policy: Optional[Union[str, ReclaimPolicy]] = None,
                       resource_group_name: Optional[str] = None,
                       source: Optional[str] = None,
                       volume_mode: Optional[Union[str, VolumeMode]] = None,
                       volume_snapshot_name: Optional[str] = None)
    func NewVolumeSnapshot(ctx *Context, name string, args VolumeSnapshotArgs, opts ...ResourceOption) (*VolumeSnapshot, error)
    public VolumeSnapshot(string name, VolumeSnapshotArgs args, CustomResourceOptions? opts = null)
    public VolumeSnapshot(String name, VolumeSnapshotArgs args)
    public VolumeSnapshot(String name, VolumeSnapshotArgs args, CustomResourceOptions options)
    
    type: azure-native:containerstorage:VolumeSnapshot
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VolumeSnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VolumeSnapshotArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VolumeSnapshotArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeSnapshotArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeSnapshotArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var volumeSnapshotResource = new AzureNative.Containerstorage.VolumeSnapshot("volumeSnapshotResource", new()
    {
        MountOptions = new[]
        {
            "string",
        },
        PoolName = "string",
        ReclaimPolicy = "string",
        ResourceGroupName = "string",
        Source = "string",
        VolumeMode = "string",
        VolumeSnapshotName = "string",
    });
    
    example, err := containerstorage.NewVolumeSnapshot(ctx, "volumeSnapshotResource", &containerstorage.VolumeSnapshotArgs{
    	MountOptions: []string{
    		"string",
    	},
    	PoolName:           "string",
    	ReclaimPolicy:      "string",
    	ResourceGroupName:  "string",
    	Source:             "string",
    	VolumeMode:         "string",
    	VolumeSnapshotName: "string",
    })
    
    var volumeSnapshotResource = new VolumeSnapshot("volumeSnapshotResource", VolumeSnapshotArgs.builder()
        .mountOptions("string")
        .poolName("string")
        .reclaimPolicy("string")
        .resourceGroupName("string")
        .source("string")
        .volumeMode("string")
        .volumeSnapshotName("string")
        .build());
    
    volume_snapshot_resource = azure_native.containerstorage.VolumeSnapshot("volumeSnapshotResource",
        mount_options=[string],
        pool_name=string,
        reclaim_policy=string,
        resource_group_name=string,
        source=string,
        volume_mode=string,
        volume_snapshot_name=string)
    
    const volumeSnapshotResource = new azure_native.containerstorage.VolumeSnapshot("volumeSnapshotResource", {
        mountOptions: ["string"],
        poolName: "string",
        reclaimPolicy: "string",
        resourceGroupName: "string",
        source: "string",
        volumeMode: "string",
        volumeSnapshotName: "string",
    });
    
    type: azure-native:containerstorage:VolumeSnapshot
    properties:
        mountOptions:
            - string
        poolName: string
        reclaimPolicy: string
        resourceGroupName: string
        source: string
        volumeMode: string
        volumeSnapshotName: string
    

    VolumeSnapshot Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The VolumeSnapshot resource accepts the following input properties:

    MountOptions List<string>
    List of string mount options
    PoolName string
    Pool Object
    ReclaimPolicy string | Pulumi.AzureNative.ContainerStorage.ReclaimPolicy
    Reclaim Policy, Delete or Retain
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Source string
    Reference to the source volume
    VolumeMode string | Pulumi.AzureNative.ContainerStorage.VolumeMode
    Indicates how the volumes created from the snapshot should be attached
    VolumeSnapshotName string
    Volume Snapshot Resource
    MountOptions []string
    List of string mount options
    PoolName string
    Pool Object
    ReclaimPolicy string | ReclaimPolicy
    Reclaim Policy, Delete or Retain
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Source string
    Reference to the source volume
    VolumeMode string | VolumeMode
    Indicates how the volumes created from the snapshot should be attached
    VolumeSnapshotName string
    Volume Snapshot Resource
    mountOptions List<String>
    List of string mount options
    poolName String
    Pool Object
    reclaimPolicy String | ReclaimPolicy
    Reclaim Policy, Delete or Retain
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    source String
    Reference to the source volume
    volumeMode String | VolumeMode
    Indicates how the volumes created from the snapshot should be attached
    volumeSnapshotName String
    Volume Snapshot Resource
    mountOptions string[]
    List of string mount options
    poolName string
    Pool Object
    reclaimPolicy string | ReclaimPolicy
    Reclaim Policy, Delete or Retain
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    source string
    Reference to the source volume
    volumeMode string | VolumeMode
    Indicates how the volumes created from the snapshot should be attached
    volumeSnapshotName string
    Volume Snapshot Resource
    mount_options Sequence[str]
    List of string mount options
    pool_name str
    Pool Object
    reclaim_policy str | ReclaimPolicy
    Reclaim Policy, Delete or Retain
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    source str
    Reference to the source volume
    volume_mode str | VolumeMode
    Indicates how the volumes created from the snapshot should be attached
    volume_snapshot_name str
    Volume Snapshot Resource
    mountOptions List<String>
    List of string mount options
    poolName String
    Pool Object
    reclaimPolicy String | "Delete" | "Retain"
    Reclaim Policy, Delete or Retain
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    source String
    Reference to the source volume
    volumeMode String | "Filesystem" | "Raw"
    Indicates how the volumes created from the snapshot should be attached
    volumeSnapshotName String
    Volume Snapshot Resource

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VolumeSnapshot resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The status of the last operation.
    SystemData Pulumi.AzureNative.ContainerStorage.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The status of the last operation.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The status of the last operation.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    The status of the last operation.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    The status of the last operation.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The status of the last operation.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ReclaimPolicy, ReclaimPolicyArgs

    Delete
    Delete
    Retain
    Retain
    ReclaimPolicyDelete
    Delete
    ReclaimPolicyRetain
    Retain
    Delete
    Delete
    Retain
    Retain
    Delete
    Delete
    Retain
    Retain
    DELETE
    Delete
    RETAIN
    Retain
    "Delete"
    Delete
    "Retain"
    Retain

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    VolumeMode, VolumeModeArgs

    Filesystem
    Filesystem
    Raw
    Raw
    VolumeModeFilesystem
    Filesystem
    VolumeModeRaw
    Raw
    Filesystem
    Filesystem
    Raw
    Raw
    Filesystem
    Filesystem
    Raw
    Raw
    FILESYSTEM
    Filesystem
    RAW
    Raw
    "Filesystem"
    Filesystem
    "Raw"
    Raw

    Import

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi