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 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:
- Mount
Options List<string> - List of string mount options
- Pool
Name string - Pool Object
- Reclaim
Policy string | Pulumi.Azure Native. Container Storage. Reclaim Policy - Reclaim Policy, Delete or Retain
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source string
- Reference to the source volume
- Volume
Mode string | Pulumi.Azure Native. Container Storage. Volume Mode - Indicates how the volumes created from the snapshot should be attached
- Volume
Snapshot stringName - Volume Snapshot Resource
- Mount
Options []string - List of string mount options
- Pool
Name string - Pool Object
- Reclaim
Policy string | ReclaimPolicy - Reclaim Policy, Delete or Retain
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source string
- Reference to the source volume
- Volume
Mode string | VolumeMode - Indicates how the volumes created from the snapshot should be attached
- Volume
Snapshot stringName - Volume Snapshot Resource
- mount
Options List<String> - List of string mount options
- pool
Name String - Pool Object
- reclaim
Policy String | ReclaimPolicy - Reclaim Policy, Delete or Retain
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source String
- Reference to the source volume
- volume
Mode String | VolumeMode - Indicates how the volumes created from the snapshot should be attached
- volume
Snapshot StringName - Volume Snapshot Resource
- mount
Options string[] - List of string mount options
- pool
Name string - Pool Object
- reclaim
Policy string | ReclaimPolicy - Reclaim Policy, Delete or Retain
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- source string
- Reference to the source volume
- volume
Mode string | VolumeMode - Indicates how the volumes created from the snapshot should be attached
- volume
Snapshot 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
- mount
Options List<String> - List of string mount options
- pool
Name String - Pool Object
- reclaim
Policy String | "Delete" | "Retain" - Reclaim Policy, Delete or Retain
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source String
- Reference to the source volume
- volume
Mode String | "Filesystem" | "Raw" - Indicates how the volumes created from the snapshot should be attached
- volume
Snapshot 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
- Provisioning
State string - The status of the last operation.
- System
Data 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
- Provisioning
State string - The status of the last operation.
- System
Data 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
- provisioning
State String - The status of the last operation.
- system
Data 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
- provisioning
State string - The status of the last operation.
- system
Data 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
- provisioning
State String - The status of the last operation.
- system
Data 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
- Reclaim
Policy Delete - Delete
- Reclaim
Policy Retain - Retain
- Delete
- Delete
- Retain
- Retain
- Delete
- Delete
- Retain
- Retain
- DELETE
- Delete
- RETAIN
- Retain
- "Delete"
- Delete
- "Retain"
- Retain
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
VolumeMode, VolumeModeArgs
- Filesystem
- Filesystem
- Raw
- Raw
- Volume
Mode Filesystem - Filesystem
- Volume
Mode 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