1. Packages
  2. Azure Native
  3. API Docs
  4. storsimple
  5. Volume
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.storsimple.Volume

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    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 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)
    
    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,
    });
    
    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:

    AccessControlRecordIds List<string>
    The IDs of the access control records, associated with the volume.
    DeviceName string
    The device name
    ManagerName string
    The manager name
    MonitoringStatus Pulumi.AzureNative.StorSimple.MonitoringStatus
    The monitoring status of the volume.
    ResourceGroupName string
    The resource group name
    SizeInBytes double
    The size of the volume in bytes.
    VolumeContainerName string
    The volume container name.
    VolumeStatus Pulumi.AzureNative.StorSimple.VolumeStatus
    The volume status.
    VolumeType Pulumi.AzureNative.StorSimple.VolumeType
    The type of the volume.
    Kind Pulumi.AzureNative.StorSimple.Kind
    The Kind of the object. Currently only Series8000 is supported
    VolumeName string
    The volume name.
    AccessControlRecordIds []string
    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.
    ResourceGroupName string
    The resource group name
    SizeInBytes float64
    The size of the volume in bytes.
    VolumeContainerName string
    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.
    accessControlRecordIds List<String>
    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.
    resourceGroupName String
    The resource group name
    sizeInBytes Double
    The size of the volume in bytes.
    volumeContainerName String
    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.
    accessControlRecordIds string[]
    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.
    resourceGroupName string
    The resource group name
    sizeInBytes number
    The size of the volume in bytes.
    volumeContainerName string
    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_record_ids Sequence[str]
    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_name str
    The resource group name
    size_in_bytes float
    The size of the volume in bytes.
    volume_container_name str
    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.
    accessControlRecordIds List<String>
    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.
    resourceGroupName String
    The resource group name
    sizeInBytes Number
    The size of the volume in bytes.
    volumeContainerName String
    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:

    BackupPolicyIds List<string>
    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.
    VolumeContainerId string
    The ID of the volume container, in which this volume is created.
    BackupPolicyIds []string
    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.
    VolumeContainerId string
    The ID of the volume container, in which this volume is created.
    backupPolicyIds List<String>
    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.
    volumeContainerId String
    The ID of the volume container, in which this volume is created.
    backupPolicyIds string[]
    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.
    volumeContainerId string
    The ID of the volume container, in which this volume is created.
    backup_policy_ids Sequence[str]
    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_id str
    The ID of the volume container, in which this volume is created.
    backupPolicyIds List<String>
    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.
    volumeContainerId String
    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
    MonitoringStatusEnabled
    Enabled
    MonitoringStatusDisabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    ENABLED
    Enabled
    DISABLED
    Disabled
    "Enabled"
    Enabled
    "Disabled"
    Disabled

    VolumeStatus, VolumeStatusArgs

    Online
    Online
    Offline
    Offline
    VolumeStatusOnline
    Online
    VolumeStatusOffline
    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
    VolumeTypeTiered
    Tiered
    VolumeTypeArchival
    Archival
    VolumeTypeLocallyPinned
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi