azure-native.containerstorage.Volume
Explore with Pulumi AI
Concrete proxy resource types can be created by aliasing this type using a specific property type. API Version: 2023-03-01-preview.
Example Usage
Volumes_CreateOrUpdate_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var volume = new AzureNative.ContainerStorage.Volume("volume", new()
{
CapacityGiB = 4,
Labels =
{
{ "key6929", "cylq" },
},
MountOptions = new[]
{
"bztwmyruogigzqnwzpnjxjo",
},
PoolName = "L-7Vr5xE3",
ReclaimPolicy = "Delete",
ResourceGroupName = "rgcontainerstorage",
VolumeMode = "Filesystem",
VolumeName = "y4borPc1GHLej48W3",
});
});
package main
import (
containerstorage "github.com/pulumi/pulumi-azure-native-sdk/containerstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerstorage.NewVolume(ctx, "volume", &containerstorage.VolumeArgs{
CapacityGiB: pulumi.Float64(4),
Labels: pulumi.StringMap{
"key6929": pulumi.String("cylq"),
},
MountOptions: pulumi.StringArray{
pulumi.String("bztwmyruogigzqnwzpnjxjo"),
},
PoolName: pulumi.String("L-7Vr5xE3"),
ReclaimPolicy: pulumi.String("Delete"),
ResourceGroupName: pulumi.String("rgcontainerstorage"),
VolumeMode: pulumi.String("Filesystem"),
VolumeName: pulumi.String("y4borPc1GHLej48W3"),
})
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.containerstorage.Volume;
import com.pulumi.azurenative.containerstorage.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()
.capacityGiB(4)
.labels(Map.of("key6929", "cylq"))
.mountOptions("bztwmyruogigzqnwzpnjxjo")
.poolName("L-7Vr5xE3")
.reclaimPolicy("Delete")
.resourceGroupName("rgcontainerstorage")
.volumeMode("Filesystem")
.volumeName("y4borPc1GHLej48W3")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
volume = azure_native.containerstorage.Volume("volume",
capacity_gi_b=4,
labels={
"key6929": "cylq",
},
mount_options=["bztwmyruogigzqnwzpnjxjo"],
pool_name="L-7Vr5xE3",
reclaim_policy="Delete",
resource_group_name="rgcontainerstorage",
volume_mode="Filesystem",
volume_name="y4borPc1GHLej48W3")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const volume = new azure_native.containerstorage.Volume("volume", {
capacityGiB: 4,
labels: {
key6929: "cylq",
},
mountOptions: ["bztwmyruogigzqnwzpnjxjo"],
poolName: "L-7Vr5xE3",
reclaimPolicy: "Delete",
resourceGroupName: "rgcontainerstorage",
volumeMode: "Filesystem",
volumeName: "y4borPc1GHLej48W3",
});
resources:
volume:
type: azure-native:containerstorage:Volume
properties:
capacityGiB: 4
labels:
key6929: cylq
mountOptions:
- bztwmyruogigzqnwzpnjxjo
poolName: L-7Vr5xE3
reclaimPolicy: Delete
resourceGroupName: rgcontainerstorage
volumeMode: Filesystem
volumeName: y4borPc1GHLej48W3
Volumes_CreateOrUpdate_MinimumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var volume = new AzureNative.ContainerStorage.Volume("volume", new()
{
PoolName = "-3-0",
ResourceGroupName = "rgcontainerstorage",
VolumeName = "q-r6KY54UA6G5TPSTL83",
});
});
package main
import (
containerstorage "github.com/pulumi/pulumi-azure-native-sdk/containerstorage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerstorage.NewVolume(ctx, "volume", &containerstorage.VolumeArgs{
PoolName: pulumi.String("-3-0"),
ResourceGroupName: pulumi.String("rgcontainerstorage"),
VolumeName: pulumi.String("q-r6KY54UA6G5TPSTL83"),
})
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.containerstorage.Volume;
import com.pulumi.azurenative.containerstorage.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()
.poolName("-3-0")
.resourceGroupName("rgcontainerstorage")
.volumeName("q-r6KY54UA6G5TPSTL83")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
volume = azure_native.containerstorage.Volume("volume",
pool_name="-3-0",
resource_group_name="rgcontainerstorage",
volume_name="q-r6KY54UA6G5TPSTL83")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const volume = new azure_native.containerstorage.Volume("volume", {
poolName: "-3-0",
resourceGroupName: "rgcontainerstorage",
volumeName: "q-r6KY54UA6G5TPSTL83",
});
resources:
volume:
type: azure-native:containerstorage:Volume
properties:
poolName: -3-0
resourceGroupName: rgcontainerstorage
volumeName: q-r6KY54UA6G5TPSTL83
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,
capacity_gi_b: Optional[float] = None,
labels: Optional[Mapping[str, str]] = None,
mount_options: Optional[Sequence[str]] = None,
pool_name: Optional[str] = None,
reclaim_policy: Optional[Union[str, ReclaimPolicy]] = None,
resource_group_name: Optional[str] = None,
volume_mode: Optional[Union[str, VolumeMode]] = 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:containerstorage: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 volumeResource = new AzureNative.Containerstorage.Volume("volumeResource", new()
{
CapacityGiB = 0,
Labels =
{
{ "string", "string" },
},
MountOptions = new[]
{
"string",
},
PoolName = "string",
ReclaimPolicy = "string",
ResourceGroupName = "string",
VolumeMode = "string",
VolumeName = "string",
});
example, err := containerstorage.NewVolume(ctx, "volumeResource", &containerstorage.VolumeArgs{
CapacityGiB: 0,
Labels: map[string]interface{}{
"string": "string",
},
MountOptions: []string{
"string",
},
PoolName: "string",
ReclaimPolicy: "string",
ResourceGroupName: "string",
VolumeMode: "string",
VolumeName: "string",
})
var volumeResource = new Volume("volumeResource", VolumeArgs.builder()
.capacityGiB(0)
.labels(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.mountOptions("string")
.poolName("string")
.reclaimPolicy("string")
.resourceGroupName("string")
.volumeMode("string")
.volumeName("string")
.build());
volume_resource = azure_native.containerstorage.Volume("volumeResource",
capacity_gi_b=0,
labels={
string: string,
},
mount_options=[string],
pool_name=string,
reclaim_policy=string,
resource_group_name=string,
volume_mode=string,
volume_name=string)
const volumeResource = new azure_native.containerstorage.Volume("volumeResource", {
capacityGiB: 0,
labels: {
string: "string",
},
mountOptions: ["string"],
poolName: "string",
reclaimPolicy: "string",
resourceGroupName: "string",
volumeMode: "string",
volumeName: "string",
});
type: azure-native:containerstorage:Volume
properties:
capacityGiB: 0
labels:
string: string
mountOptions:
- string
poolName: string
reclaimPolicy: string
resourceGroupName: string
volumeMode: string
volumeName: string
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:
- Capacity
Gi doubleB - Requested capacity in GiB
- Labels Dictionary<string, string>
- String KV pairs indicating labels
- Mount
Options List<string> - List of string mount options
- Pool
Name string - Pool Object
- Reclaim
Policy string | Pulumi.Azure Native. Container Storage. Reclaim Policy - Reclaim Policy, Delete or Retain
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Volume
Mode string | Pulumi.Azure Native. Container Storage. Volume Mode - Indicates how the volume should be attached
- Volume
Name string - Volume Resource
- Capacity
Gi float64B - Requested capacity in GiB
- Labels map[string]string
- String KV pairs indicating labels
- Mount
Options []string - List of string mount options
- Pool
Name string - Pool Object
- Reclaim
Policy string | ReclaimPolicy - Reclaim Policy, Delete or Retain
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Volume
Mode string | VolumeMode - Indicates how the volume should be attached
- Volume
Name string - Volume Resource
- capacity
Gi DoubleB - Requested capacity in GiB
- labels Map<String,String>
- String KV pairs indicating labels
- mount
Options List<String> - List of string mount options
- pool
Name String - Pool Object
- reclaim
Policy String | ReclaimPolicy - Reclaim Policy, Delete or Retain
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- volume
Mode String | VolumeMode - Indicates how the volume should be attached
- volume
Name String - Volume Resource
- capacity
Gi numberB - Requested capacity in GiB
- labels {[key: string]: string}
- String KV pairs indicating labels
- mount
Options string[] - List of string mount options
- pool
Name string - Pool Object
- reclaim
Policy string | ReclaimPolicy - Reclaim Policy, Delete or Retain
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- volume
Mode string | VolumeMode - Indicates how the volume should be attached
- volume
Name string - Volume Resource
- capacity_
gi_ floatb - Requested capacity in GiB
- labels Mapping[str, str]
- String KV pairs indicating labels
- mount_
options Sequence[str] - List of string mount options
- pool_
name str - Pool Object
- reclaim_
policy str | ReclaimPolicy - Reclaim Policy, Delete or Retain
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- volume_
mode str | VolumeMode - Indicates how the volume should be attached
- volume_
name str - Volume Resource
- capacity
Gi NumberB - Requested capacity in GiB
- labels Map<String>
- String KV pairs indicating labels
- mount
Options List<String> - List of string mount options
- pool
Name String - Pool Object
- reclaim
Policy String | "Delete" | "Retain" - Reclaim Policy, Delete or Retain
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- volume
Mode String | "Filesystem" | "Raw" - Indicates how the volume should be attached
- volume
Name String - Volume Resource
Outputs
All input properties are implicitly available as output properties. Additionally, the Volume resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The status of the last operation.
- System
Data Pulumi.Azure Native. Container Storage. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The status of the last operation.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The status of the last operation.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The status of the last operation.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The status of the last operation.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The status of the last operation.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ReclaimPolicy, ReclaimPolicyArgs
- Delete
- Delete
- Retain
- Retain
- Reclaim
Policy Delete - Delete
- Reclaim
Policy Retain - Retain
- Delete
- Delete
- Retain
- Retain
- Delete
- Delete
- Retain
- Retain
- DELETE
- Delete
- RETAIN
- Retain
- "Delete"
- Delete
- "Retain"
- Retain
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
VolumeMode, VolumeModeArgs
- Filesystem
- Filesystem
- Raw
- Raw
- Volume
Mode Filesystem - Filesystem
- Volume
Mode Raw - Raw
- Filesystem
- Filesystem
- Raw
- Raw
- Filesystem
- Filesystem
- Raw
- Raw
- FILESYSTEM
- Filesystem
- RAW
- Raw
- "Filesystem"
- Filesystem
- "Raw"
- Raw
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:containerstorage:Volume qw uhsbnbojqymtspvbxzzjoepbyhgr
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0