Volume

class Volume : KotlinCustomResource

The volume. 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"
"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/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/devices/Device05ForSDKTest/volumeContainers/VolumeContainerForSDKTest/volumes/Volume1ForSDKTest

Properties

Link copied to clipboard

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

Link copied to clipboard

The IDs of the backup policies, in which this volume is part of.

Link copied to clipboard
val backupStatus: Output<String>

The backup status of the volume.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>?

The Kind of the object. Currently only Series8000 is supported

Link copied to clipboard

The monitoring status of the volume.

Link copied to clipboard
val name: Output<String>

The name of the object.

Link copied to clipboard
val operationStatus: Output<String>

The operation status on the volume.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sizeInBytes: Output<Double>

The size of the volume in bytes.

Link copied to clipboard
val type: Output<String>

The hierarchical type of the object.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The ID of the volume container, in which this volume is created.

Link copied to clipboard
val volumeStatus: Output<String>

The volume status.

Link copied to clipboard
val volumeType: Output<String>

The type of the volume.