azure-native.elasticsan.Volume
Explore with Pulumi AI
Response for Volume request. Azure REST API version: 2021-11-20-preview. Prior API version in Azure Native 1.x: 2021-11-20-preview.
Other available API versions: 2022-12-01-preview, 2023-01-01, 2024-05-01.
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 (
elasticsan "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 com.pulumi.azurenative.elasticsan.inputs.SourceCreationDataArgs;
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(SourceCreationDataArgs.builder()
.createSource("None")
.sourceUri("aaaaaa")
.build())
.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 (
elasticsan "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
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,
elastic_san_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
volume_group_name: Optional[str] = None,
creation_data: Optional[SourceCreationDataArgs] = None,
size_gi_b: Optional[float] = None,
tags: Optional[Mapping[str, str]] = 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:elasticsan: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 azure_nativeVolumeResource = new AzureNative.ElasticSan.Volume("azure-nativeVolumeResource", new()
{
ElasticSanName = "string",
ResourceGroupName = "string",
VolumeGroupName = "string",
CreationData = new AzureNative.ElasticSan.Inputs.SourceCreationDataArgs
{
CreateSource = AzureNative.ElasticSan.VolumeCreateOption.None,
SourceUri = "string",
},
SizeGiB = 0,
Tags =
{
{ "string", "string" },
},
VolumeName = "string",
});
example, err := elasticsan.NewVolume(ctx, "azure-nativeVolumeResource", &elasticsan.VolumeArgs{
ElasticSanName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
VolumeGroupName: pulumi.String("string"),
CreationData: &elasticsan.SourceCreationDataArgs{
CreateSource: elasticsan.VolumeCreateOptionNone,
SourceUri: pulumi.String("string"),
},
SizeGiB: pulumi.Float64(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VolumeName: pulumi.String("string"),
})
var azure_nativeVolumeResource = new Volume("azure-nativeVolumeResource", VolumeArgs.builder()
.elasticSanName("string")
.resourceGroupName("string")
.volumeGroupName("string")
.creationData(SourceCreationDataArgs.builder()
.createSource("None")
.sourceUri("string")
.build())
.sizeGiB(0)
.tags(Map.of("string", "string"))
.volumeName("string")
.build());
azure_native_volume_resource = azure_native.elasticsan.Volume("azure-nativeVolumeResource",
elastic_san_name="string",
resource_group_name="string",
volume_group_name="string",
creation_data=azure_native.elasticsan.SourceCreationDataArgs(
create_source=azure_native.elasticsan.VolumeCreateOption.NONE,
source_uri="string",
),
size_gi_b=0,
tags={
"string": "string",
},
volume_name="string")
const azure_nativeVolumeResource = new azure_native.elasticsan.Volume("azure-nativeVolumeResource", {
elasticSanName: "string",
resourceGroupName: "string",
volumeGroupName: "string",
creationData: {
createSource: azure_native.elasticsan.VolumeCreateOption.None,
sourceUri: "string",
},
sizeGiB: 0,
tags: {
string: "string",
},
volumeName: "string",
});
type: azure-native:elasticsan:Volume
properties:
creationData:
createSource: None
sourceUri: string
elasticSanName: string
resourceGroupName: string
sizeGiB: 0
tags:
string: string
volumeGroupName: 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
The Volume resource accepts the following input properties:
- Elastic
San stringName - The name of the ElasticSan.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Volume
Group stringName - The name of the VolumeGroup.
- Creation
Data Pulumi.Azure Native. Elastic San. Inputs. Source Creation Data - State of the operation on the resource.
- Size
Gi doubleB - Volume size.
- Dictionary<string, string>
- Azure resource tags.
- Volume
Name string - The name of the Volume.
- Elastic
San stringName - The name of the ElasticSan.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Volume
Group stringName - The name of the VolumeGroup.
- Creation
Data SourceCreation Data Args - State of the operation on the resource.
- Size
Gi float64B - Volume size.
- map[string]string
- Azure resource tags.
- Volume
Name string - The name of the Volume.
- elastic
San StringName - The name of the ElasticSan.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- volume
Group StringName - The name of the VolumeGroup.
- creation
Data SourceCreation Data - State of the operation on the resource.
- size
Gi DoubleB - Volume size.
- Map<String,String>
- Azure resource tags.
- volume
Name String - The name of the Volume.
- elastic
San stringName - The name of the ElasticSan.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- volume
Group stringName - The name of the VolumeGroup.
- creation
Data SourceCreation Data - State of the operation on the resource.
- size
Gi numberB - Volume size.
- {[key: string]: string}
- Azure resource tags.
- volume
Name string - The name of the Volume.
- elastic_
san_ strname - The name of the ElasticSan.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- volume_
group_ strname - The name of the VolumeGroup.
- creation_
data SourceCreation Data Args - State of the operation on the resource.
- size_
gi_ floatb - Volume size.
- Mapping[str, str]
- Azure resource tags.
- volume_
name str - The name of the Volume.
- elastic
San StringName - The name of the ElasticSan.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- volume
Group StringName - The name of the VolumeGroup.
- creation
Data Property Map - State of the operation on the resource.
- size
Gi NumberB - Volume size.
- Map<String>
- Azure resource tags.
- volume
Name 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.
- Storage
Target Pulumi.Azure Native. Elastic San. Outputs. Iscsi Target Info Response - Storage target information
- System
Data Pulumi.Azure Native. Elastic San. Outputs. System Data Response - Resource metadata required by ARM RPC
- Type string
- Azure resource type.
- Volume
Id 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.
- Storage
Target IscsiTarget Info Response - Storage target information
- System
Data SystemData Response - Resource metadata required by ARM RPC
- Type string
- Azure resource type.
- Volume
Id 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.
- storage
Target IscsiTarget Info Response - Storage target information
- system
Data SystemData Response - Resource metadata required by ARM RPC
- type String
- Azure resource type.
- volume
Id 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.
- storage
Target IscsiTarget Info Response - Storage target information
- system
Data SystemData Response - Resource metadata required by ARM RPC
- type string
- Azure resource type.
- volume
Id 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 IscsiTarget Info Response - Storage target information
- system_
data SystemData Response - 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.
- storage
Target Property Map - Storage target information
- system
Data Property Map - Resource metadata required by ARM RPC
- type String
- Azure resource type.
- volume
Id String - Unique Id of the volume in GUID format
Supporting Types
IscsiTargetInfoResponse, IscsiTargetInfoResponseArgs
- Provisioning
State string - State of the operation on the resource.
- Target
Iqn string - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
- Target
Portal stringHostname - iSCSI Target Portal Host Name
- Target
Portal intPort - iSCSI Target Portal Port
- Status string
- Operational status of the iSCSI Target.
- Provisioning
State string - State of the operation on the resource.
- Target
Iqn string - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
- Target
Portal stringHostname - iSCSI Target Portal Host Name
- Target
Portal intPort - iSCSI Target Portal Port
- Status string
- Operational status of the iSCSI Target.
- provisioning
State String - State of the operation on the resource.
- target
Iqn String - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
- target
Portal StringHostname - iSCSI Target Portal Host Name
- target
Portal IntegerPort - iSCSI Target Portal Port
- status String
- Operational status of the iSCSI Target.
- provisioning
State string - State of the operation on the resource.
- target
Iqn string - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
- target
Portal stringHostname - iSCSI Target Portal Host Name
- target
Portal numberPort - 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_ strhostname - iSCSI Target Portal Host Name
- target_
portal_ intport - iSCSI Target Portal Port
- status str
- Operational status of the iSCSI Target.
- provisioning
State String - State of the operation on the resource.
- target
Iqn String - iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
- target
Portal StringHostname - iSCSI Target Portal Host Name
- target
Portal NumberPort - iSCSI Target Portal Port
- status String
- Operational status of the iSCSI Target.
SourceCreationData, SourceCreationDataArgs
- Create
Source Pulumi.Azure Native. Elastic San. Volume Create Option - This enumerates the possible sources of a volume creation.
- Source
Uri 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 VolumeCreate Option - This enumerates the possible sources of a volume creation.
- Source
Uri 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 VolumeCreate Option - This enumerates the possible sources of a volume creation.
- source
Uri 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 VolumeCreate Option - This enumerates the possible sources of a volume creation.
- source
Uri 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 VolumeCreate Option - 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.
- create
Source "None" - This enumerates the possible sources of a volume creation.
- source
Uri 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
- Create
Source string - This enumerates the possible sources of a volume creation.
- Source
Uri 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 string - This enumerates the possible sources of a volume creation.
- Source
Uri 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 String - This enumerates the possible sources of a volume creation.
- source
Uri 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 string - This enumerates the possible sources of a volume creation.
- source
Uri 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.
- create
Source String - This enumerates the possible sources of a volume creation.
- source
Uri 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
- 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.
VolumeCreateOption, VolumeCreateOptionArgs
- None
- None
- Volume
Create Option None - 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0