1. Packages
  2. Azure Native v1
  3. API Docs
  4. containerstorage
  5. Volume
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.Volume

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

    Volumes_CreateOrUpdate_MaximumSet_Gen

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var volume = new AzureNative.ContainerStorage.Volume("volume", new()
        {
            CapacityGiB = 4,
            Labels = 
            {
                { "key6929", "cylq" },
            },
            MountOptions = new[]
            {
                "bztwmyruogigzqnwzpnjxjo",
            },
            PoolName = "L-7Vr5xE3",
            ReclaimPolicy = "Delete",
            ResourceGroupName = "rgcontainerstorage",
            VolumeMode = "Filesystem",
            VolumeName = "y4borPc1GHLej48W3",
        });
    
    });
    
    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.NewVolume(ctx, "volume", &containerstorage.VolumeArgs{
    			CapacityGiB: pulumi.Float64(4),
    			Labels: pulumi.StringMap{
    				"key6929": pulumi.String("cylq"),
    			},
    			MountOptions: pulumi.StringArray{
    				pulumi.String("bztwmyruogigzqnwzpnjxjo"),
    			},
    			PoolName:          pulumi.String("L-7Vr5xE3"),
    			ReclaimPolicy:     pulumi.String("Delete"),
    			ResourceGroupName: pulumi.String("rgcontainerstorage"),
    			VolumeMode:        pulumi.String("Filesystem"),
    			VolumeName:        pulumi.String("y4borPc1GHLej48W3"),
    		})
    		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.Volume;
    import com.pulumi.azurenative.containerstorage.VolumeArgs;
    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 volume = new Volume("volume", VolumeArgs.builder()        
                .capacityGiB(4)
                .labels(Map.of("key6929", "cylq"))
                .mountOptions("bztwmyruogigzqnwzpnjxjo")
                .poolName("L-7Vr5xE3")
                .reclaimPolicy("Delete")
                .resourceGroupName("rgcontainerstorage")
                .volumeMode("Filesystem")
                .volumeName("y4borPc1GHLej48W3")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    volume = azure_native.containerstorage.Volume("volume",
        capacity_gi_b=4,
        labels={
            "key6929": "cylq",
        },
        mount_options=["bztwmyruogigzqnwzpnjxjo"],
        pool_name="L-7Vr5xE3",
        reclaim_policy="Delete",
        resource_group_name="rgcontainerstorage",
        volume_mode="Filesystem",
        volume_name="y4borPc1GHLej48W3")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const volume = new azure_native.containerstorage.Volume("volume", {
        capacityGiB: 4,
        labels: {
            key6929: "cylq",
        },
        mountOptions: ["bztwmyruogigzqnwzpnjxjo"],
        poolName: "L-7Vr5xE3",
        reclaimPolicy: "Delete",
        resourceGroupName: "rgcontainerstorage",
        volumeMode: "Filesystem",
        volumeName: "y4borPc1GHLej48W3",
    });
    
    resources:
      volume:
        type: azure-native:containerstorage:Volume
        properties:
          capacityGiB: 4
          labels:
            key6929: cylq
          mountOptions:
            - bztwmyruogigzqnwzpnjxjo
          poolName: L-7Vr5xE3
          reclaimPolicy: Delete
          resourceGroupName: rgcontainerstorage
          volumeMode: Filesystem
          volumeName: y4borPc1GHLej48W3
    

    Volumes_CreateOrUpdate_MinimumSet_Gen

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var volume = new AzureNative.ContainerStorage.Volume("volume", new()
        {
            PoolName = "-3-0",
            ResourceGroupName = "rgcontainerstorage",
            VolumeName = "q-r6KY54UA6G5TPSTL83",
        });
    
    });
    
    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.NewVolume(ctx, "volume", &containerstorage.VolumeArgs{
    			PoolName:          pulumi.String("-3-0"),
    			ResourceGroupName: pulumi.String("rgcontainerstorage"),
    			VolumeName:        pulumi.String("q-r6KY54UA6G5TPSTL83"),
    		})
    		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.Volume;
    import com.pulumi.azurenative.containerstorage.VolumeArgs;
    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 volume = new Volume("volume", VolumeArgs.builder()        
                .poolName("-3-0")
                .resourceGroupName("rgcontainerstorage")
                .volumeName("q-r6KY54UA6G5TPSTL83")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    volume = azure_native.containerstorage.Volume("volume",
        pool_name="-3-0",
        resource_group_name="rgcontainerstorage",
        volume_name="q-r6KY54UA6G5TPSTL83")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const volume = new azure_native.containerstorage.Volume("volume", {
        poolName: "-3-0",
        resourceGroupName: "rgcontainerstorage",
        volumeName: "q-r6KY54UA6G5TPSTL83",
    });
    
    resources:
      volume:
        type: azure-native:containerstorage:Volume
        properties:
          poolName: -3-0
          resourceGroupName: rgcontainerstorage
          volumeName: q-r6KY54UA6G5TPSTL83
    

    Create Volume Resource

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

    Constructor syntax

    new Volume(name: string, args: VolumeArgs, opts?: CustomResourceOptions);
    @overload
    def Volume(resource_name: str,
               args: VolumeArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Volume(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               capacity_gi_b: Optional[float] = None,
               labels: Optional[Mapping[str, str]] = 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,
               volume_mode: Optional[Union[str, VolumeMode]] = None,
               volume_name: Optional[str] = None)
    func NewVolume(ctx *Context, name string, args VolumeArgs, opts ...ResourceOption) (*Volume, error)
    public Volume(string name, VolumeArgs args, CustomResourceOptions? opts = null)
    public Volume(String name, VolumeArgs args)
    public Volume(String name, VolumeArgs args, CustomResourceOptions options)
    
    type: azure-native:containerstorage:Volume
    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 VolumeArgs
    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 VolumeArgs
    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 VolumeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VolumeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VolumeArgs
    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 volumeResource = new AzureNative.Containerstorage.Volume("volumeResource", new()
    {
        CapacityGiB = 0,
        Labels = 
        {
            { "string", "string" },
        },
        MountOptions = new[]
        {
            "string",
        },
        PoolName = "string",
        ReclaimPolicy = "string",
        ResourceGroupName = "string",
        VolumeMode = "string",
        VolumeName = "string",
    });
    
    example, err := containerstorage.NewVolume(ctx, "volumeResource", &containerstorage.VolumeArgs{
    	CapacityGiB: 0,
    	Labels: map[string]interface{}{
    		"string": "string",
    	},
    	MountOptions: []string{
    		"string",
    	},
    	PoolName:          "string",
    	ReclaimPolicy:     "string",
    	ResourceGroupName: "string",
    	VolumeMode:        "string",
    	VolumeName:        "string",
    })
    
    var volumeResource = new Volume("volumeResource", VolumeArgs.builder()
        .capacityGiB(0)
        .labels(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .mountOptions("string")
        .poolName("string")
        .reclaimPolicy("string")
        .resourceGroupName("string")
        .volumeMode("string")
        .volumeName("string")
        .build());
    
    volume_resource = azure_native.containerstorage.Volume("volumeResource",
        capacity_gi_b=0,
        labels={
            string: string,
        },
        mount_options=[string],
        pool_name=string,
        reclaim_policy=string,
        resource_group_name=string,
        volume_mode=string,
        volume_name=string)
    
    const volumeResource = new azure_native.containerstorage.Volume("volumeResource", {
        capacityGiB: 0,
        labels: {
            string: "string",
        },
        mountOptions: ["string"],
        poolName: "string",
        reclaimPolicy: "string",
        resourceGroupName: "string",
        volumeMode: "string",
        volumeName: "string",
    });
    
    type: azure-native:containerstorage:Volume
    properties:
        capacityGiB: 0
        labels:
            string: string
        mountOptions:
            - string
        poolName: string
        reclaimPolicy: string
        resourceGroupName: string
        volumeMode: string
        volumeName: string
    

    Volume 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 Volume resource accepts the following input properties:

    CapacityGiB double
    Requested capacity in GiB
    Labels Dictionary<string, string>
    String KV pairs indicating labels
    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.
    VolumeMode string | Pulumi.AzureNative.ContainerStorage.VolumeMode
    Indicates how the volume should be attached
    VolumeName string
    Volume Resource
    CapacityGiB float64
    Requested capacity in GiB
    Labels map[string]string
    String KV pairs indicating labels
    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.
    VolumeMode string | VolumeMode
    Indicates how the volume should be attached
    VolumeName string
    Volume Resource
    capacityGiB Double
    Requested capacity in GiB
    labels Map<String,String>
    String KV pairs indicating labels
    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.
    volumeMode String | VolumeMode
    Indicates how the volume should be attached
    volumeName String
    Volume Resource
    capacityGiB number
    Requested capacity in GiB
    labels {[key: string]: string}
    String KV pairs indicating labels
    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.
    volumeMode string | VolumeMode
    Indicates how the volume should be attached
    volumeName string
    Volume Resource
    capacity_gi_b float
    Requested capacity in GiB
    labels Mapping[str, str]
    String KV pairs indicating labels
    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.
    volume_mode str | VolumeMode
    Indicates how the volume should be attached
    volume_name str
    Volume Resource
    capacityGiB Number
    Requested capacity in GiB
    labels Map<String>
    String KV pairs indicating labels
    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.
    volumeMode String | "Filesystem" | "Raw"
    Indicates how the volume should be attached
    volumeName String
    Volume Resource

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Volume 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:Volume qw uhsbnbojqymtspvbxzzjoepbyhgr 
    

    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