azure-native.storsimple.Volume
Explore with Pulumi AI
The volume. Azure REST API version: 2017-06-01. Prior API version in Azure Native 1.x: 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 * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const volume = new azure_native.storsimple.Volume("volume", {
    accessControlRecordIds: ["/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2"],
    deviceName: "Device05ForSDKTest",
    managerName: "ManagerForSDKTest1",
    monitoringStatus: azure_native.storsimple.MonitoringStatus.Enabled,
    resourceGroupName: "ResourceGroupForSDKTest",
    sizeInBytes: 5368709120,
    volumeContainerName: "VolumeContainerForSDKTest",
    volumeName: "Volume1ForSDKTest",
    volumeStatus: azure_native.storsimple.VolumeStatus.Offline,
    volumeType: azure_native.storsimple.VolumeType.Tiered,
});
import pulumi
import pulumi_azure_native as azure_native
volume = azure_native.storsimple.Volume("volume",
    access_control_record_ids=["/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/ManagerForSDKTest1/accessControlRecords/ACR2"],
    device_name="Device05ForSDKTest",
    manager_name="ManagerForSDKTest1",
    monitoring_status=azure_native.storsimple.MonitoringStatus.ENABLED,
    resource_group_name="ResourceGroupForSDKTest",
    size_in_bytes=5368709120,
    volume_container_name="VolumeContainerForSDKTest",
    volume_name="Volume1ForSDKTest",
    volume_status=azure_native.storsimple.VolumeStatus.OFFLINE,
    volume_type=azure_native.storsimple.VolumeType.TIERED)
resources:
  volume:
    type: azure-native:storsimple:Volume
    properties:
      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: 5.36870912e+09
      volumeContainerName: VolumeContainerForSDKTest
      volumeName: Volume1ForSDKTest
      volumeStatus: Offline
      volumeType: Tiered
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,
           access_control_record_ids: Optional[Sequence[str]] = None,
           device_name: Optional[str] = None,
           manager_name: Optional[str] = None,
           monitoring_status: Optional[MonitoringStatus] = None,
           resource_group_name: Optional[str] = None,
           size_in_bytes: Optional[float] = None,
           volume_container_name: Optional[str] = None,
           volume_status: Optional[VolumeStatus] = None,
           volume_type: Optional[VolumeType] = None,
           kind: Optional[Kind] = 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:storsimple: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 examplevolumeResourceResourceFromStorsimple = new AzureNative.StorSimple.Volume("examplevolumeResourceResourceFromStorsimple", new()
{
    AccessControlRecordIds = new[]
    {
        "string",
    },
    DeviceName = "string",
    ManagerName = "string",
    MonitoringStatus = AzureNative.StorSimple.MonitoringStatus.Enabled,
    ResourceGroupName = "string",
    SizeInBytes = 0,
    VolumeContainerName = "string",
    VolumeStatus = AzureNative.StorSimple.VolumeStatus.Online,
    VolumeType = AzureNative.StorSimple.VolumeType.Tiered,
    Kind = AzureNative.StorSimple.Kind.Series8000,
    VolumeName = "string",
});
example, err := storsimple.NewVolume(ctx, "examplevolumeResourceResourceFromStorsimple", &storsimple.VolumeArgs{
	AccessControlRecordIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	DeviceName:          pulumi.String("string"),
	ManagerName:         pulumi.String("string"),
	MonitoringStatus:    storsimple.MonitoringStatusEnabled,
	ResourceGroupName:   pulumi.String("string"),
	SizeInBytes:         pulumi.Float64(0),
	VolumeContainerName: pulumi.String("string"),
	VolumeStatus:        storsimple.VolumeStatusOnline,
	VolumeType:          storsimple.VolumeTypeTiered,
	Kind:                storsimple.KindSeries8000,
	VolumeName:          pulumi.String("string"),
})
var examplevolumeResourceResourceFromStorsimple = new Volume("examplevolumeResourceResourceFromStorsimple", VolumeArgs.builder()
    .accessControlRecordIds("string")
    .deviceName("string")
    .managerName("string")
    .monitoringStatus("Enabled")
    .resourceGroupName("string")
    .sizeInBytes(0)
    .volumeContainerName("string")
    .volumeStatus("Online")
    .volumeType("Tiered")
    .kind("Series8000")
    .volumeName("string")
    .build());
examplevolume_resource_resource_from_storsimple = azure_native.storsimple.Volume("examplevolumeResourceResourceFromStorsimple",
    access_control_record_ids=["string"],
    device_name="string",
    manager_name="string",
    monitoring_status=azure_native.storsimple.MonitoringStatus.ENABLED,
    resource_group_name="string",
    size_in_bytes=0,
    volume_container_name="string",
    volume_status=azure_native.storsimple.VolumeStatus.ONLINE,
    volume_type=azure_native.storsimple.VolumeType.TIERED,
    kind=azure_native.storsimple.Kind.SERIES8000,
    volume_name="string")
const examplevolumeResourceResourceFromStorsimple = new azure_native.storsimple.Volume("examplevolumeResourceResourceFromStorsimple", {
    accessControlRecordIds: ["string"],
    deviceName: "string",
    managerName: "string",
    monitoringStatus: azure_native.storsimple.MonitoringStatus.Enabled,
    resourceGroupName: "string",
    sizeInBytes: 0,
    volumeContainerName: "string",
    volumeStatus: azure_native.storsimple.VolumeStatus.Online,
    volumeType: azure_native.storsimple.VolumeType.Tiered,
    kind: azure_native.storsimple.Kind.Series8000,
    volumeName: "string",
});
type: azure-native:storsimple:Volume
properties:
    accessControlRecordIds:
        - string
    deviceName: string
    kind: Series8000
    managerName: string
    monitoringStatus: Enabled
    resourceGroupName: string
    sizeInBytes: 0
    volumeContainerName: string
    volumeName: string
    volumeStatus: Online
    volumeType: Tiered
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Volume resource accepts the following input properties:
- AccessControl List<string>Record Ids 
- The IDs of the access control records, associated with the volume.
- DeviceName string
- The device name
- ManagerName string
- The manager name
- MonitoringStatus Pulumi.Azure Native. Stor Simple. Monitoring Status 
- The monitoring status of the volume.
- ResourceGroup stringName 
- The resource group name
- SizeIn doubleBytes 
- The size of the volume in bytes.
- VolumeContainer stringName 
- The volume container name.
- VolumeStatus Pulumi.Azure Native. Stor Simple. Volume Status 
- The volume status.
- VolumeType Pulumi.Azure Native. Stor Simple. Volume Type 
- The type of the volume.
- Kind
Pulumi.Azure Native. Stor Simple. Kind 
- The Kind of the object. Currently only Series8000 is supported
- VolumeName string
- The volume name.
- AccessControl []stringRecord Ids 
- The IDs of the access control records, associated with the volume.
- DeviceName string
- The device name
- ManagerName string
- The manager name
- MonitoringStatus MonitoringStatus 
- The monitoring status of the volume.
- ResourceGroup stringName 
- The resource group name
- SizeIn float64Bytes 
- The size of the volume in bytes.
- VolumeContainer stringName 
- The volume container name.
- VolumeStatus VolumeStatus 
- The volume status.
- VolumeType VolumeType 
- The type of the volume.
- Kind Kind
- The Kind of the object. Currently only Series8000 is supported
- VolumeName string
- The volume name.
- accessControl List<String>Record Ids 
- The IDs of the access control records, associated with the volume.
- deviceName String
- The device name
- managerName String
- The manager name
- monitoringStatus MonitoringStatus 
- The monitoring status of the volume.
- resourceGroup StringName 
- The resource group name
- sizeIn DoubleBytes 
- The size of the volume in bytes.
- volumeContainer StringName 
- The volume container name.
- volumeStatus VolumeStatus 
- The volume status.
- volumeType VolumeType 
- The type of the volume.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- volumeName String
- The volume name.
- accessControl string[]Record Ids 
- The IDs of the access control records, associated with the volume.
- deviceName string
- The device name
- managerName string
- The manager name
- monitoringStatus MonitoringStatus 
- The monitoring status of the volume.
- resourceGroup stringName 
- The resource group name
- sizeIn numberBytes 
- The size of the volume in bytes.
- volumeContainer stringName 
- The volume container name.
- volumeStatus VolumeStatus 
- The volume status.
- volumeType VolumeType 
- The type of the volume.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- volumeName string
- The volume name.
- access_control_ Sequence[str]record_ ids 
- The IDs of the access control records, associated with the volume.
- device_name str
- The device name
- manager_name str
- The manager name
- monitoring_status MonitoringStatus 
- The monitoring status of the volume.
- resource_group_ strname 
- The resource group name
- size_in_ floatbytes 
- The size of the volume in bytes.
- volume_container_ strname 
- The volume container name.
- volume_status VolumeStatus 
- The volume status.
- volume_type VolumeType 
- The type of the volume.
- kind Kind
- The Kind of the object. Currently only Series8000 is supported
- volume_name str
- The volume name.
- accessControl List<String>Record Ids 
- The IDs of the access control records, associated with the volume.
- deviceName String
- The device name
- managerName String
- The manager name
- monitoringStatus "Enabled" | "Disabled"
- The monitoring status of the volume.
- resourceGroup StringName 
- The resource group name
- sizeIn NumberBytes 
- The size of the volume in bytes.
- volumeContainer StringName 
- The volume container name.
- volumeStatus "Online" | "Offline"
- The volume status.
- volumeType "Tiered" | "Archival" | "LocallyPinned" 
- The type of the volume.
- kind "Series8000"
- The Kind of the object. Currently only Series8000 is supported
- volumeName String
- The volume name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:
- BackupPolicy List<string>Ids 
- The IDs of the backup policies, in which this volume is part of.
- BackupStatus string
- The backup status of the volume.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object.
- OperationStatus string
- The operation status on the volume.
- Type string
- The hierarchical type of the object.
- VolumeContainer stringId 
- The ID of the volume container, in which this volume is created.
- BackupPolicy []stringIds 
- The IDs of the backup policies, in which this volume is part of.
- BackupStatus string
- The backup status of the volume.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the object.
- OperationStatus string
- The operation status on the volume.
- Type string
- The hierarchical type of the object.
- VolumeContainer stringId 
- The ID of the volume container, in which this volume is created.
- backupPolicy List<String>Ids 
- The IDs of the backup policies, in which this volume is part of.
- backupStatus String
- The backup status of the volume.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object.
- operationStatus String
- The operation status on the volume.
- type String
- The hierarchical type of the object.
- volumeContainer StringId 
- The ID of the volume container, in which this volume is created.
- backupPolicy string[]Ids 
- The IDs of the backup policies, in which this volume is part of.
- backupStatus string
- The backup status of the volume.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the object.
- operationStatus string
- The operation status on the volume.
- type string
- The hierarchical type of the object.
- volumeContainer stringId 
- The ID of the volume container, in which this volume is created.
- backup_policy_ Sequence[str]ids 
- The IDs of the backup policies, in which this volume is part of.
- backup_status str
- The backup status of the volume.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the object.
- operation_status str
- The operation status on the volume.
- type str
- The hierarchical type of the object.
- volume_container_ strid 
- The ID of the volume container, in which this volume is created.
- backupPolicy List<String>Ids 
- The IDs of the backup policies, in which this volume is part of.
- backupStatus String
- The backup status of the volume.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the object.
- operationStatus String
- The operation status on the volume.
- type String
- The hierarchical type of the object.
- volumeContainer StringId 
- The ID of the volume container, in which this volume is created.
Supporting Types
Kind, KindArgs  
- Series8000
- Series8000
- KindSeries8000 
- Series8000
- Series8000
- Series8000
- Series8000
- Series8000
- SERIES8000
- Series8000
- "Series8000"
- Series8000
MonitoringStatus, MonitoringStatusArgs    
- Enabled
- Enabled
- Disabled
- Disabled
- MonitoringStatus Enabled 
- Enabled
- MonitoringStatus Disabled 
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
VolumeStatus, VolumeStatusArgs    
- Online
- Online
- Offline
- Offline
- VolumeStatus Online 
- Online
- VolumeStatus Offline 
- Offline
- Online
- Online
- Offline
- Offline
- Online
- Online
- Offline
- Offline
- ONLINE
- Online
- OFFLINE
- Offline
- "Online"
- Online
- "Offline"
- Offline
VolumeType, VolumeTypeArgs    
- Tiered
- Tiered
- Archival
- Archival
- LocallyPinned 
- LocallyPinned
- VolumeType Tiered 
- Tiered
- VolumeType Archival 
- Archival
- VolumeType Locally Pinned 
- LocallyPinned
- Tiered
- Tiered
- Archival
- Archival
- LocallyPinned 
- LocallyPinned
- Tiered
- Tiered
- Archival
- Archival
- LocallyPinned 
- LocallyPinned
- TIERED
- Tiered
- ARCHIVAL
- Archival
- LOCALLY_PINNED
- LocallyPinned
- "Tiered"
- Tiered
- "Archival"
- Archival
- "LocallyPinned" 
- LocallyPinned
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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0