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 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
The Volume resource accepts the following input properties:
- Access
Control List<string>Record Ids - The IDs of the access control records, associated with the volume.
- Device
Name string - The device name
- Manager
Name string - The manager name
- Monitoring
Status Pulumi.Azure Native. Stor Simple. Monitoring Status - The monitoring status of the volume.
- Resource
Group stringName - The resource group name
- Size
In doubleBytes - The size of the volume in bytes.
- Volume
Container stringName - The volume container name.
- Volume
Status Pulumi.Azure Native. Stor Simple. Volume Status - The volume status.
- Volume
Type 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
- Volume
Name string - The volume name.
- Access
Control []stringRecord Ids - The IDs of the access control records, associated with the volume.
- Device
Name string - The device name
- Manager
Name string - The manager name
- Monitoring
Status MonitoringStatus - The monitoring status of the volume.
- Resource
Group stringName - The resource group name
- Size
In float64Bytes - The size of the volume in bytes.
- Volume
Container stringName - 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 string - The volume name.
- access
Control List<String>Record Ids - The IDs of the access control records, associated with the volume.
- device
Name String - The device name
- manager
Name String - The manager name
- monitoring
Status MonitoringStatus - The monitoring status of the volume.
- resource
Group StringName - The resource group name
- size
In DoubleBytes - The size of the volume in bytes.
- volume
Container StringName - 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 String - The volume name.
- access
Control string[]Record Ids - The IDs of the access control records, associated with the volume.
- device
Name string - The device name
- manager
Name string - The manager name
- monitoring
Status MonitoringStatus - The monitoring status of the volume.
- resource
Group stringName - The resource group name
- size
In numberBytes - The size of the volume in bytes.
- volume
Container stringName - 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 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.
- access
Control List<String>Record Ids - The IDs of the access control records, associated with the volume.
- device
Name String - The device name
- manager
Name String - The manager name
- monitoring
Status "Enabled" | "Disabled" - The monitoring status of the volume.
- resource
Group StringName - The resource group name
- size
In NumberBytes - The size of the volume in bytes.
- volume
Container StringName - The volume container name.
- volume
Status "Online" | "Offline" - The volume status.
- volume
Type "Tiered" | "Archival" | "LocallyPinned" - The type of the volume.
- kind "Series8000"
- The Kind of the object. Currently only Series8000 is supported
- volume
Name String - The volume name.
Outputs
All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:
- Backup
Policy List<string>Ids - The IDs of the backup policies, in which this volume is part of.
- Backup
Status 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.
- Operation
Status string - The operation status on the volume.
- Type string
- The hierarchical type of the object.
- Volume
Container stringId - The ID of the volume container, in which this volume is created.
- Backup
Policy []stringIds - The IDs of the backup policies, in which this volume is part of.
- Backup
Status 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.
- Operation
Status string - The operation status on the volume.
- Type string
- The hierarchical type of the object.
- Volume
Container stringId - The ID of the volume container, in which this volume is created.
- backup
Policy List<String>Ids - The IDs of the backup policies, in which this volume is part of.
- backup
Status 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.
- operation
Status String - The operation status on the volume.
- type String
- The hierarchical type of the object.
- volume
Container StringId - The ID of the volume container, in which this volume is created.
- backup
Policy string[]Ids - The IDs of the backup policies, in which this volume is part of.
- backup
Status 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.
- operation
Status string - The operation status on the volume.
- type string
- The hierarchical type of the object.
- volume
Container 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.
- backup
Policy List<String>Ids - The IDs of the backup policies, in which this volume is part of.
- backup
Status 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.
- operation
Status String - The operation status on the volume.
- type String
- The hierarchical type of the object.
- volume
Container StringId - The ID of the volume container, in which this volume is created.
Supporting Types
Kind, KindArgs
- Series8000
- Series8000
- Kind
Series8000 - Series8000
- Series8000
- Series8000
- Series8000
- Series8000
- SERIES8000
- Series8000
- "Series8000"
- Series8000
MonitoringStatus, MonitoringStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Monitoring
Status Enabled - Enabled
- Monitoring
Status Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
VolumeStatus, VolumeStatusArgs
- Online
- Online
- Offline
- Offline
- Volume
Status Online - Online
- Volume
Status Offline - Offline
- Online
- Online
- Offline
- Offline
- Online
- Online
- Offline
- Offline
- ONLINE
- Online
- OFFLINE
- Offline
- "Online"
- Online
- "Offline"
- Offline
VolumeType, VolumeTypeArgs
- Tiered
- Tiered
- Archival
- Archival
- Locally
Pinned - LocallyPinned
- Volume
Type Tiered - Tiered
- Volume
Type Archival - Archival
- Volume
Type Locally Pinned - LocallyPinned
- Tiered
- Tiered
- Archival
- Archival
- Locally
Pinned - LocallyPinned
- Tiered
- Tiered
- Archival
- Archival
- Locally
Pinned - LocallyPinned
- TIERED
- Tiered
- ARCHIVAL
- Archival
- LOCALLY_PINNED
- LocallyPinned
- "Tiered"
- Tiered
- "Archival"
- Archival
- "Locally
Pinned" - 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