1. Packages
  2. Azure Native
  3. API Docs
  4. elasticsan
  5. Volume
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

azure-native.elasticsan.Volume

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Response for Volume request. Azure REST API version: 2021-11-20-preview. Prior API version in Azure Native 1.x: 2021-11-20-preview

    Example Usage

    Volumes_Create_MaximumSet_Gen

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var volume = new AzureNative.ElasticSan.Volume("volume", new()
        {
            CreationData = new AzureNative.ElasticSan.Inputs.SourceCreationDataArgs
            {
                CreateSource = AzureNative.ElasticSan.VolumeCreateOption.None,
                SourceUri = "aaaaaa",
            },
            ElasticSanName = "ti7q-k952-1qB3J_5",
            ResourceGroupName = "rgelasticsan",
            SizeGiB = 22,
            Tags = 
            {
                { "key7423", "aaaa" },
            },
            VolumeGroupName = "u_5I_1j4t3",
            VolumeName = "9132y",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/elasticsan/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := elasticsan.NewVolume(ctx, "volume", &elasticsan.VolumeArgs{
    			CreationData: &elasticsan.SourceCreationDataArgs{
    				CreateSource: elasticsan.VolumeCreateOptionNone,
    				SourceUri:    pulumi.String("aaaaaa"),
    			},
    			ElasticSanName:    pulumi.String("ti7q-k952-1qB3J_5"),
    			ResourceGroupName: pulumi.String("rgelasticsan"),
    			SizeGiB:           pulumi.Float64(22),
    			Tags: pulumi.StringMap{
    				"key7423": pulumi.String("aaaa"),
    			},
    			VolumeGroupName: pulumi.String("u_5I_1j4t3"),
    			VolumeName:      pulumi.String("9132y"),
    		})
    		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.elasticsan.Volume;
    import com.pulumi.azurenative.elasticsan.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()        
                .creationData(Map.ofEntries(
                    Map.entry("createSource", "None"),
                    Map.entry("sourceUri", "aaaaaa")
                ))
                .elasticSanName("ti7q-k952-1qB3J_5")
                .resourceGroupName("rgelasticsan")
                .sizeGiB(22)
                .tags(Map.of("key7423", "aaaa"))
                .volumeGroupName("u_5I_1j4t3")
                .volumeName("9132y")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    volume = azure_native.elasticsan.Volume("volume",
        creation_data=azure_native.elasticsan.SourceCreationDataArgs(
            create_source=azure_native.elasticsan.VolumeCreateOption.NONE,
            source_uri="aaaaaa",
        ),
        elastic_san_name="ti7q-k952-1qB3J_5",
        resource_group_name="rgelasticsan",
        size_gi_b=22,
        tags={
            "key7423": "aaaa",
        },
        volume_group_name="u_5I_1j4t3",
        volume_name="9132y")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const volume = new azure_native.elasticsan.Volume("volume", {
        creationData: {
            createSource: azure_native.elasticsan.VolumeCreateOption.None,
            sourceUri: "aaaaaa",
        },
        elasticSanName: "ti7q-k952-1qB3J_5",
        resourceGroupName: "rgelasticsan",
        sizeGiB: 22,
        tags: {
            key7423: "aaaa",
        },
        volumeGroupName: "u_5I_1j4t3",
        volumeName: "9132y",
    });
    
    resources:
      volume:
        type: azure-native:elasticsan:Volume
        properties:
          creationData:
            createSource: None
            sourceUri: aaaaaa
          elasticSanName: ti7q-k952-1qB3J_5
          resourceGroupName: rgelasticsan
          sizeGiB: 22
          tags:
            key7423: aaaa
          volumeGroupName: u_5I_1j4t3
          volumeName: 9132y
    

    Volumes_Create_MinimumSet_Gen

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var volume = new AzureNative.ElasticSan.Volume("volume", new()
        {
            ElasticSanName = "ti7q-k952-1qB3J_5",
            ResourceGroupName = "rgelasticsan",
            VolumeGroupName = "u_5I_1j4t3",
            VolumeName = "9132y",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/elasticsan/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := elasticsan.NewVolume(ctx, "volume", &elasticsan.VolumeArgs{
    			ElasticSanName:    pulumi.String("ti7q-k952-1qB3J_5"),
    			ResourceGroupName: pulumi.String("rgelasticsan"),
    			VolumeGroupName:   pulumi.String("u_5I_1j4t3"),
    			VolumeName:        pulumi.String("9132y"),
    		})
    		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.elasticsan.Volume;
    import com.pulumi.azurenative.elasticsan.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()        
                .elasticSanName("ti7q-k952-1qB3J_5")
                .resourceGroupName("rgelasticsan")
                .volumeGroupName("u_5I_1j4t3")
                .volumeName("9132y")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    volume = azure_native.elasticsan.Volume("volume",
        elastic_san_name="ti7q-k952-1qB3J_5",
        resource_group_name="rgelasticsan",
        volume_group_name="u_5I_1j4t3",
        volume_name="9132y")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const volume = new azure_native.elasticsan.Volume("volume", {
        elasticSanName: "ti7q-k952-1qB3J_5",
        resourceGroupName: "rgelasticsan",
        volumeGroupName: "u_5I_1j4t3",
        volumeName: "9132y",
    });
    
    resources:
      volume:
        type: azure-native:elasticsan:Volume
        properties:
          elasticSanName: ti7q-k952-1qB3J_5
          resourceGroupName: rgelasticsan
          volumeGroupName: u_5I_1j4t3
          volumeName: 9132y
    

    Create Volume Resource

    new Volume(name: string, args: VolumeArgs, opts?: CustomResourceOptions);
    @overload
    def Volume(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               creation_data: Optional[SourceCreationDataArgs] = None,
               elastic_san_name: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               size_gi_b: Optional[float] = None,
               tags: Optional[Mapping[str, str]] = None,
               volume_group_name: Optional[str] = None,
               volume_name: Optional[str] = None)
    @overload
    def Volume(resource_name: str,
               args: VolumeArgs,
               opts: Optional[ResourceOptions] = 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:elasticsan:Volume
    properties: # The arguments to resource properties.
    options: # 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.
    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.

    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

    The Volume resource accepts the following input properties:

    ElasticSanName string

    The name of the ElasticSan.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    VolumeGroupName string

    The name of the VolumeGroup.

    CreationData Pulumi.AzureNative.ElasticSan.Inputs.SourceCreationData

    State of the operation on the resource.

    SizeGiB double

    Volume size.

    Tags Dictionary<string, string>

    Azure resource tags.

    VolumeName string

    The name of the Volume.

    ElasticSanName string

    The name of the ElasticSan.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    VolumeGroupName string

    The name of the VolumeGroup.

    CreationData SourceCreationDataArgs

    State of the operation on the resource.

    SizeGiB float64

    Volume size.

    Tags map[string]string

    Azure resource tags.

    VolumeName string

    The name of the Volume.

    elasticSanName String

    The name of the ElasticSan.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    volumeGroupName String

    The name of the VolumeGroup.

    creationData SourceCreationData

    State of the operation on the resource.

    sizeGiB Double

    Volume size.

    tags Map<String,String>

    Azure resource tags.

    volumeName String

    The name of the Volume.

    elasticSanName string

    The name of the ElasticSan.

    resourceGroupName string

    The name of the resource group. The name is case insensitive.

    volumeGroupName string

    The name of the VolumeGroup.

    creationData SourceCreationData

    State of the operation on the resource.

    sizeGiB number

    Volume size.

    tags {[key: string]: string}

    Azure resource tags.

    volumeName string

    The name of the Volume.

    elastic_san_name str

    The name of the ElasticSan.

    resource_group_name str

    The name of the resource group. The name is case insensitive.

    volume_group_name str

    The name of the VolumeGroup.

    creation_data SourceCreationDataArgs

    State of the operation on the resource.

    size_gi_b float

    Volume size.

    tags Mapping[str, str]

    Azure resource tags.

    volume_name str

    The name of the Volume.

    elasticSanName String

    The name of the ElasticSan.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    volumeGroupName String

    The name of the VolumeGroup.

    creationData Property Map

    State of the operation on the resource.

    sizeGiB Number

    Volume size.

    tags Map<String>

    Azure resource tags.

    volumeName String

    The name of the Volume.

    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

    Azure resource name.

    StorageTarget Pulumi.AzureNative.ElasticSan.Outputs.IscsiTargetInfoResponse

    Storage target information

    SystemData Pulumi.AzureNative.ElasticSan.Outputs.SystemDataResponse

    Resource metadata required by ARM RPC

    Type string

    Azure resource type.

    VolumeId string

    Unique Id of the volume in GUID format

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    Azure resource name.

    StorageTarget IscsiTargetInfoResponse

    Storage target information

    SystemData SystemDataResponse

    Resource metadata required by ARM RPC

    Type string

    Azure resource type.

    VolumeId string

    Unique Id of the volume in GUID format

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Azure resource name.

    storageTarget IscsiTargetInfoResponse

    Storage target information

    systemData SystemDataResponse

    Resource metadata required by ARM RPC

    type String

    Azure resource type.

    volumeId String

    Unique Id of the volume in GUID format

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    Azure resource name.

    storageTarget IscsiTargetInfoResponse

    Storage target information

    systemData SystemDataResponse

    Resource metadata required by ARM RPC

    type string

    Azure resource type.

    volumeId string

    Unique Id of the volume in GUID format

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    Azure resource name.

    storage_target IscsiTargetInfoResponse

    Storage target information

    system_data SystemDataResponse

    Resource metadata required by ARM RPC

    type str

    Azure resource type.

    volume_id str

    Unique Id of the volume in GUID format

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    Azure resource name.

    storageTarget Property Map

    Storage target information

    systemData Property Map

    Resource metadata required by ARM RPC

    type String

    Azure resource type.

    volumeId String

    Unique Id of the volume in GUID format

    Supporting Types

    IscsiTargetInfoResponse, IscsiTargetInfoResponseArgs

    ProvisioningState string

    State of the operation on the resource.

    TargetIqn string

    iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

    TargetPortalHostname string

    iSCSI Target Portal Host Name

    TargetPortalPort int

    iSCSI Target Portal Port

    Status string

    Operational status of the iSCSI Target.

    ProvisioningState string

    State of the operation on the resource.

    TargetIqn string

    iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

    TargetPortalHostname string

    iSCSI Target Portal Host Name

    TargetPortalPort int

    iSCSI Target Portal Port

    Status string

    Operational status of the iSCSI Target.

    provisioningState String

    State of the operation on the resource.

    targetIqn String

    iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

    targetPortalHostname String

    iSCSI Target Portal Host Name

    targetPortalPort Integer

    iSCSI Target Portal Port

    status String

    Operational status of the iSCSI Target.

    provisioningState string

    State of the operation on the resource.

    targetIqn string

    iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

    targetPortalHostname string

    iSCSI Target Portal Host Name

    targetPortalPort number

    iSCSI Target Portal Port

    status string

    Operational status of the iSCSI Target.

    provisioning_state str

    State of the operation on the resource.

    target_iqn str

    iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

    target_portal_hostname str

    iSCSI Target Portal Host Name

    target_portal_port int

    iSCSI Target Portal Port

    status str

    Operational status of the iSCSI Target.

    provisioningState String

    State of the operation on the resource.

    targetIqn String

    iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".

    targetPortalHostname String

    iSCSI Target Portal Host Name

    targetPortalPort Number

    iSCSI Target Portal Port

    status String

    Operational status of the iSCSI Target.

    SourceCreationData, SourceCreationDataArgs

    CreateSource Pulumi.AzureNative.ElasticSan.VolumeCreateOption

    This enumerates the possible sources of a volume creation.

    SourceUri string

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    CreateSource VolumeCreateOption

    This enumerates the possible sources of a volume creation.

    SourceUri string

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    createSource VolumeCreateOption

    This enumerates the possible sources of a volume creation.

    sourceUri String

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    createSource VolumeCreateOption

    This enumerates the possible sources of a volume creation.

    sourceUri string

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    create_source VolumeCreateOption

    This enumerates the possible sources of a volume creation.

    source_uri str

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    createSource "None"

    This enumerates the possible sources of a volume creation.

    sourceUri String

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    SourceCreationDataResponse, SourceCreationDataResponseArgs

    CreateSource string

    This enumerates the possible sources of a volume creation.

    SourceUri string

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    CreateSource string

    This enumerates the possible sources of a volume creation.

    SourceUri string

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    createSource String

    This enumerates the possible sources of a volume creation.

    sourceUri String

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    createSource string

    This enumerates the possible sources of a volume creation.

    sourceUri string

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    create_source str

    This enumerates the possible sources of a volume creation.

    source_uri str

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    createSource String

    This enumerates the possible sources of a volume creation.

    sourceUri String

    If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

    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.

    VolumeCreateOption, VolumeCreateOptionArgs

    None
    None
    VolumeCreateOptionNone
    None
    None
    None
    None
    None
    NONE
    None
    "None"
    None

    Import

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

    $ pulumi import azure-native:elasticsan:Volume aaaaaaaaaaaa /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.9.0 published on Wednesday, Sep 27, 2023 by Pulumi