azure-native.containerstorage.VolumeSnapshot
Explore with Pulumi AI
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 * 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",
});
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")
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 * 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",
});
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")
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VolumeSnapshot resource accepts the following input properties:
- MountOptions List<string>
- List of string mount options
- PoolName string
- Pool Object
- ReclaimPolicy string | Pulumi.Azure Native. Container Storage. Reclaim Policy 
- Reclaim Policy, Delete or Retain
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Source string
- Reference to the source volume
- VolumeMode string | Pulumi.Azure Native. Container Storage. Volume Mode 
- Indicates how the volumes created from the snapshot should be attached
- VolumeSnapshot stringName 
- Volume Snapshot Resource
- MountOptions []string
- List of string mount options
- PoolName string
- Pool Object
- ReclaimPolicy string | ReclaimPolicy 
- Reclaim Policy, Delete or Retain
- ResourceGroup stringName 
- 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
- VolumeSnapshot stringName 
- Volume Snapshot Resource
- mountOptions List<String>
- List of string mount options
- poolName String
- Pool Object
- reclaimPolicy String | ReclaimPolicy 
- Reclaim Policy, Delete or Retain
- resourceGroup StringName 
- 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
- volumeSnapshot StringName 
- Volume Snapshot Resource
- mountOptions string[]
- List of string mount options
- poolName string
- Pool Object
- reclaimPolicy string | ReclaimPolicy 
- Reclaim Policy, Delete or Retain
- resourceGroup stringName 
- 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
- volumeSnapshot stringName 
- 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_ strname 
- 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_ strname 
- Volume Snapshot Resource
- mountOptions List<String>
- List of string mount options
- poolName String
- Pool Object
- reclaimPolicy String | "Delete" | "Retain"
- Reclaim Policy, Delete or Retain
- resourceGroup StringName 
- 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
- volumeSnapshot StringName 
- 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.Azure Native. Container Storage. Outputs. System Data Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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
- ReclaimPolicy Delete 
- Delete
- ReclaimPolicy Retain 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
VolumeMode, VolumeModeArgs    
- Filesystem
- Filesystem
- Raw
- Raw
- VolumeMode Filesystem 
- Filesystem
- VolumeMode Raw 
- 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