VolumeArgs

data class VolumeArgs(val accessControlRecordIds: Output<List<String>>? = null, val deviceName: Output<String>? = null, val kind: Output<Kind>? = null, val managerName: Output<String>? = null, val monitoringStatus: Output<MonitoringStatus>? = null, val resourceGroupName: Output<String>? = null, val sizeInBytes: Output<Double>? = null, val volumeContainerName: Output<String>? = null, val volumeName: Output<String>? = null, val volumeStatus: Output<VolumeStatus>? = null, val volumeType: Output<VolumeType>? = null) : ConvertibleToJava<VolumeArgs>

The volume. Uses Azure REST API version 2017-06-01. In version 2.x of the Azure Native provider, it used API version 2017-06-01.

Example Usage

VolumesCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var volume = new AzureNative.StorSimple.Volume("volume", new()
{
AccessControlRecordIds = new[]
{
"/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2",
},
DeviceName = "Device05ForSDKTest",
ManagerName = "ManagerForSDKTest1",
MonitoringStatus = AzureNative.StorSimple.MonitoringStatus.Enabled,
ResourceGroupName = "ResourceGroupForSDKTest",
SizeInBytes = 5368709120,
VolumeContainerName = "VolumeContainerForSDKTest",
VolumeName = "Volume1ForSDKTest",
VolumeStatus = AzureNative.StorSimple.VolumeStatus.Offline,
VolumeType = AzureNative.StorSimple.VolumeType.Tiered,
});
});
package main
import (
storsimple "github.com/pulumi/pulumi-azure-native-sdk/storsimple/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storsimple.NewVolume(ctx, "volume", &storsimple.VolumeArgs{
AccessControlRecordIds: pulumi.StringArray{
pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2"),
},
DeviceName: pulumi.String("Device05ForSDKTest"),
ManagerName: pulumi.String("ManagerForSDKTest1"),
MonitoringStatus: storsimple.MonitoringStatusEnabled,
ResourceGroupName: pulumi.String("ResourceGroupForSDKTest"),
SizeInBytes: pulumi.Float64(5368709120),
VolumeContainerName: pulumi.String("VolumeContainerForSDKTest"),
VolumeName: pulumi.String("Volume1ForSDKTest"),
VolumeStatus: storsimple.VolumeStatusOffline,
VolumeType: storsimple.VolumeTypeTiered,
})
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.storsimple.Volume;
import com.pulumi.azurenative.storsimple.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()
.accessControlRecordIds("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2")
.deviceName("Device05ForSDKTest")
.managerName("ManagerForSDKTest1")
.monitoringStatus("Enabled")
.resourceGroupName("ResourceGroupForSDKTest")
.sizeInBytes(5368709120)
.volumeContainerName("VolumeContainerForSDKTest")
.volumeName("Volume1ForSDKTest")
.volumeStatus("Offline")
.volumeType("Tiered")
.build());
}
}

Import

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

$ pulumi import azure-native:storsimple:Volume Volume1ForSDKTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/devices/{deviceName}/volumeContainers/{volumeContainerName}/volumes/{volumeName}

Constructors

Link copied to clipboard
constructor(accessControlRecordIds: Output<List<String>>? = null, deviceName: Output<String>? = null, kind: Output<Kind>? = null, managerName: Output<String>? = null, monitoringStatus: Output<MonitoringStatus>? = null, resourceGroupName: Output<String>? = null, sizeInBytes: Output<Double>? = null, volumeContainerName: Output<String>? = null, volumeName: Output<String>? = null, volumeStatus: Output<VolumeStatus>? = null, volumeType: Output<VolumeType>? = null)

Properties

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

The IDs of the access control records, associated with the volume.

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

The device name

Link copied to clipboard
val kind: Output<Kind>? = null

The Kind of the object. Currently only Series8000 is supported

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

The manager name

Link copied to clipboard
val monitoringStatus: Output<MonitoringStatus>? = null

The monitoring status of the volume.

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

The resource group name

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

The size of the volume in bytes.

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

The volume container name.

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

The volume name.

Link copied to clipboard
val volumeStatus: Output<VolumeStatus>? = null

The volume status.

Link copied to clipboard
val volumeType: Output<VolumeType>? = null

The type of the volume.

Functions

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