VolumeArgs

data class VolumeArgs(val creationData: Output<SourceCreationDataArgs>? = null, val elasticSanName: Output<String>? = null, val managedBy: Output<ManagedByInfoArgs>? = null, val resourceGroupName: Output<String>? = null, val sizeGiB: Output<Double>? = null, val volumeGroupName: Output<String>? = null, val volumeName: Output<String>? = null) : ConvertibleToJava<VolumeArgs>

Response for Volume request. Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2021-11-20-preview. Other available API versions: 2021-11-20-preview, 2022-12-01-preview, 2023-01-01, 2024-06-01-preview, 2024-07-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native elasticsan [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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,
SourceId = "ARM Id of Resource",
},
ElasticSanName = "elasticsanname",
ManagedBy = new AzureNative.ElasticSan.Inputs.ManagedByInfoArgs
{
ResourceId = "mtkeip",
},
ResourceGroupName = "resourcegroupname",
SizeGiB = 9,
VolumeGroupName = "volumegroupname",
VolumeName = "volumename",
});
});
package main
import (
elasticsan "github.com/pulumi/pulumi-azure-native-sdk/elasticsan/v3"
"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: pulumi.String(elasticsan.VolumeCreateOptionNone),
SourceId: pulumi.String("ARM Id of Resource"),
},
ElasticSanName: pulumi.String("elasticsanname"),
ManagedBy: &elasticsan.ManagedByInfoArgs{
ResourceId: pulumi.String("mtkeip"),
},
ResourceGroupName: pulumi.String("resourcegroupname"),
SizeGiB: pulumi.Float64(9),
VolumeGroupName: pulumi.String("volumegroupname"),
VolumeName: pulumi.String("volumename"),
})
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 com.pulumi.azurenative.elasticsan.inputs.ManagedByInfoArgs;
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")
.sourceId("ARM Id of Resource")
.build())
.elasticSanName("elasticsanname")
.managedBy(ManagedByInfoArgs.builder()
.resourceId("mtkeip")
.build())
.resourceGroupName("resourcegroupname")
.sizeGiB(9.0)
.volumeGroupName("volumegroupname")
.volumeName("volumename")
.build());
}
}

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 = "elasticsanname",
ResourceGroupName = "resourcegroupname",
SizeGiB = 9,
VolumeGroupName = "volumegroupname",
VolumeName = "volumename",
});
});
package main
import (
elasticsan "github.com/pulumi/pulumi-azure-native-sdk/elasticsan/v3"
"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("elasticsanname"),
ResourceGroupName: pulumi.String("resourcegroupname"),
SizeGiB: pulumi.Float64(9),
VolumeGroupName: pulumi.String("volumegroupname"),
VolumeName: pulumi.String("volumename"),
})
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("elasticsanname")
.resourceGroupName("resourcegroupname")
.sizeGiB(9.0)
.volumeGroupName("volumegroupname")
.volumeName("volumename")
.build());
}
}

Import

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

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

Constructors

Link copied to clipboard
constructor(creationData: Output<SourceCreationDataArgs>? = null, elasticSanName: Output<String>? = null, managedBy: Output<ManagedByInfoArgs>? = null, resourceGroupName: Output<String>? = null, sizeGiB: Output<Double>? = null, volumeGroupName: Output<String>? = null, volumeName: Output<String>? = null)

Properties

Link copied to clipboard

State of the operation on the resource.

Link copied to clipboard
val elasticSanName: Output<String>? = null

The name of the ElasticSan.

Link copied to clipboard
val managedBy: Output<ManagedByInfoArgs>? = null

Parent resource information.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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

Link copied to clipboard
val sizeGiB: Output<Double>? = null

Volume size.

Link copied to clipboard
val volumeGroupName: Output<String>? = null

The name of the VolumeGroup.

Link copied to clipboard
val volumeName: Output<String>? = null

The name of the Volume.

Functions

Link copied to clipboard
open override fun toJava(): VolumeArgs