flexibleengine.BlockstorageVolumeV2
Explore with Pulumi AI
Manages a V2 volume resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const volume1 = new flexibleengine.BlockstorageVolumeV2("volume1", {
description: "first test volume",
metadata: {
__system__cmkid: "kms_id",
__system__encrypted: "1",
},
size: 3,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
volume1 = flexibleengine.BlockstorageVolumeV2("volume1",
description="first test volume",
metadata={
"__system__cmkid": "kms_id",
"__system__encrypted": "1",
},
size=3)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewBlockstorageVolumeV2(ctx, "volume1", &flexibleengine.BlockstorageVolumeV2Args{
Description: pulumi.String("first test volume"),
Metadata: pulumi.StringMap{
"__system__cmkid": pulumi.String("kms_id"),
"__system__encrypted": pulumi.String("1"),
},
Size: pulumi.Float64(3),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var volume1 = new Flexibleengine.BlockstorageVolumeV2("volume1", new()
{
Description = "first test volume",
Metadata =
{
{ "__system__cmkid", "kms_id" },
{ "__system__encrypted", "1" },
},
Size = 3,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.BlockstorageVolumeV2;
import com.pulumi.flexibleengine.BlockstorageVolumeV2Args;
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 volume1 = new BlockstorageVolumeV2("volume1", BlockstorageVolumeV2Args.builder()
.description("first test volume")
.metadata(Map.ofEntries(
Map.entry("__system__cmkid", "kms_id"),
Map.entry("__system__encrypted", "1")
))
.size(3)
.build());
}
}
resources:
volume1:
type: flexibleengine:BlockstorageVolumeV2
properties:
description: first test volume
metadata:
__system__cmkid: kms_id
__system__encrypted: '1'
size: 3
Create BlockstorageVolumeV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BlockstorageVolumeV2(name: string, args: BlockstorageVolumeV2Args, opts?: CustomResourceOptions);
@overload
def BlockstorageVolumeV2(resource_name: str,
args: BlockstorageVolumeV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def BlockstorageVolumeV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
size: Optional[float] = None,
name: Optional[str] = None,
blockstorage_volume_v2_id: Optional[str] = None,
consistency_group_id: Optional[str] = None,
description: Optional[str] = None,
image_id: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
cascade: Optional[bool] = None,
multiattach: Optional[bool] = None,
region: Optional[str] = None,
availability_zone: Optional[str] = None,
snapshot_id: Optional[str] = None,
source_replica: Optional[str] = None,
source_vol_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[BlockstorageVolumeV2TimeoutsArgs] = None,
volume_type: Optional[str] = None)
func NewBlockstorageVolumeV2(ctx *Context, name string, args BlockstorageVolumeV2Args, opts ...ResourceOption) (*BlockstorageVolumeV2, error)
public BlockstorageVolumeV2(string name, BlockstorageVolumeV2Args args, CustomResourceOptions? opts = null)
public BlockstorageVolumeV2(String name, BlockstorageVolumeV2Args args)
public BlockstorageVolumeV2(String name, BlockstorageVolumeV2Args args, CustomResourceOptions options)
type: flexibleengine:BlockstorageVolumeV2
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 BlockstorageVolumeV2Args
- 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 BlockstorageVolumeV2Args
- 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 BlockstorageVolumeV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BlockstorageVolumeV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BlockstorageVolumeV2Args
- 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 blockstorageVolumeV2Resource = new Flexibleengine.BlockstorageVolumeV2("blockstorageVolumeV2Resource", new()
{
Size = 0,
Name = "string",
BlockstorageVolumeV2Id = "string",
ConsistencyGroupId = "string",
Description = "string",
ImageId = "string",
Metadata =
{
{ "string", "string" },
},
Cascade = false,
Multiattach = false,
Region = "string",
AvailabilityZone = "string",
SnapshotId = "string",
SourceReplica = "string",
SourceVolId = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Flexibleengine.Inputs.BlockstorageVolumeV2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
VolumeType = "string",
});
example, err := flexibleengine.NewBlockstorageVolumeV2(ctx, "blockstorageVolumeV2Resource", &flexibleengine.BlockstorageVolumeV2Args{
Size: pulumi.Float64(0),
Name: pulumi.String("string"),
BlockstorageVolumeV2Id: pulumi.String("string"),
ConsistencyGroupId: pulumi.String("string"),
Description: pulumi.String("string"),
ImageId: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
Cascade: pulumi.Bool(false),
Multiattach: pulumi.Bool(false),
Region: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
SnapshotId: pulumi.String("string"),
SourceReplica: pulumi.String("string"),
SourceVolId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &flexibleengine.BlockstorageVolumeV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
VolumeType: pulumi.String("string"),
})
var blockstorageVolumeV2Resource = new BlockstorageVolumeV2("blockstorageVolumeV2Resource", BlockstorageVolumeV2Args.builder()
.size(0)
.name("string")
.blockstorageVolumeV2Id("string")
.consistencyGroupId("string")
.description("string")
.imageId("string")
.metadata(Map.of("string", "string"))
.cascade(false)
.multiattach(false)
.region("string")
.availabilityZone("string")
.snapshotId("string")
.sourceReplica("string")
.sourceVolId("string")
.tags(Map.of("string", "string"))
.timeouts(BlockstorageVolumeV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.volumeType("string")
.build());
blockstorage_volume_v2_resource = flexibleengine.BlockstorageVolumeV2("blockstorageVolumeV2Resource",
size=0,
name="string",
blockstorage_volume_v2_id="string",
consistency_group_id="string",
description="string",
image_id="string",
metadata={
"string": "string",
},
cascade=False,
multiattach=False,
region="string",
availability_zone="string",
snapshot_id="string",
source_replica="string",
source_vol_id="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
},
volume_type="string")
const blockstorageVolumeV2Resource = new flexibleengine.BlockstorageVolumeV2("blockstorageVolumeV2Resource", {
size: 0,
name: "string",
blockstorageVolumeV2Id: "string",
consistencyGroupId: "string",
description: "string",
imageId: "string",
metadata: {
string: "string",
},
cascade: false,
multiattach: false,
region: "string",
availabilityZone: "string",
snapshotId: "string",
sourceReplica: "string",
sourceVolId: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
},
volumeType: "string",
});
type: flexibleengine:BlockstorageVolumeV2
properties:
availabilityZone: string
blockstorageVolumeV2Id: string
cascade: false
consistencyGroupId: string
description: string
imageId: string
metadata:
string: string
multiattach: false
name: string
region: string
size: 0
snapshotId: string
sourceReplica: string
sourceVolId: string
tags:
string: string
timeouts:
create: string
delete: string
volumeType: string
BlockstorageVolumeV2 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 BlockstorageVolumeV2 resource accepts the following input properties:
- Size double
- The size of the volume to create (in gigabytes).
- Availability
Zone string - The availability zone for the volume. Changing this creates a new volume.
- Blockstorage
Volume stringV2Id - Specifies a resource ID in UUID format.
- Cascade bool
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- Consistency
Group stringId - The consistency group to place the volume in. Changing this creates a new volume.
- Description string
- A description of the volume. Changing this updates the volume's description.
- Image
Id string - The image ID from which to create the volume. Changing this creates a new volume.
- Metadata Dictionary<string, string>
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- Multiattach bool
- Specifies whether the EVS disk is shareable.
- Name string
- A unique name for the volume. Changing this updates the volume's name.
- Region string
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - Snapshot
Id string - The snapshot ID from which to create the volume. Changing this creates a new volume.
- Source
Replica string - The volume ID to replicate with. Changing this creates a new volume.
- Source
Vol stringId - The volume ID from which to create the volume. Changing this creates a new volume.
- Dictionary<string, string>
- The key/value pairs to associate with the volume.
- Timeouts
Blockstorage
Volume V2Timeouts - Volume
Type string - The type of volume to create. Changing this creates a new volume.
- Size float64
- The size of the volume to create (in gigabytes).
- Availability
Zone string - The availability zone for the volume. Changing this creates a new volume.
- Blockstorage
Volume stringV2Id - Specifies a resource ID in UUID format.
- Cascade bool
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- Consistency
Group stringId - The consistency group to place the volume in. Changing this creates a new volume.
- Description string
- A description of the volume. Changing this updates the volume's description.
- Image
Id string - The image ID from which to create the volume. Changing this creates a new volume.
- Metadata map[string]string
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- Multiattach bool
- Specifies whether the EVS disk is shareable.
- Name string
- A unique name for the volume. Changing this updates the volume's name.
- Region string
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - Snapshot
Id string - The snapshot ID from which to create the volume. Changing this creates a new volume.
- Source
Replica string - The volume ID to replicate with. Changing this creates a new volume.
- Source
Vol stringId - The volume ID from which to create the volume. Changing this creates a new volume.
- map[string]string
- The key/value pairs to associate with the volume.
- Timeouts
Blockstorage
Volume V2Timeouts Args - Volume
Type string - The type of volume to create. Changing this creates a new volume.
- size Double
- The size of the volume to create (in gigabytes).
- availability
Zone String - The availability zone for the volume. Changing this creates a new volume.
- blockstorage
Volume StringV2Id - Specifies a resource ID in UUID format.
- cascade Boolean
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency
Group StringId - The consistency group to place the volume in. Changing this creates a new volume.
- description String
- A description of the volume. Changing this updates the volume's description.
- image
Id String - The image ID from which to create the volume. Changing this creates a new volume.
- metadata Map<String,String>
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach Boolean
- Specifies whether the EVS disk is shareable.
- name String
- A unique name for the volume. Changing this updates the volume's name.
- region String
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - snapshot
Id String - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source
Replica String - The volume ID to replicate with. Changing this creates a new volume.
- source
Vol StringId - The volume ID from which to create the volume. Changing this creates a new volume.
- Map<String,String>
- The key/value pairs to associate with the volume.
- timeouts
Blockstorage
Volume V2Timeouts - volume
Type String - The type of volume to create. Changing this creates a new volume.
- size number
- The size of the volume to create (in gigabytes).
- availability
Zone string - The availability zone for the volume. Changing this creates a new volume.
- blockstorage
Volume stringV2Id - Specifies a resource ID in UUID format.
- cascade boolean
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency
Group stringId - The consistency group to place the volume in. Changing this creates a new volume.
- description string
- A description of the volume. Changing this updates the volume's description.
- image
Id string - The image ID from which to create the volume. Changing this creates a new volume.
- metadata {[key: string]: string}
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach boolean
- Specifies whether the EVS disk is shareable.
- name string
- A unique name for the volume. Changing this updates the volume's name.
- region string
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - snapshot
Id string - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source
Replica string - The volume ID to replicate with. Changing this creates a new volume.
- source
Vol stringId - The volume ID from which to create the volume. Changing this creates a new volume.
- {[key: string]: string}
- The key/value pairs to associate with the volume.
- timeouts
Blockstorage
Volume V2Timeouts - volume
Type string - The type of volume to create. Changing this creates a new volume.
- size float
- The size of the volume to create (in gigabytes).
- availability_
zone str - The availability zone for the volume. Changing this creates a new volume.
- blockstorage_
volume_ strv2_ id - Specifies a resource ID in UUID format.
- cascade bool
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency_
group_ strid - The consistency group to place the volume in. Changing this creates a new volume.
- description str
- A description of the volume. Changing this updates the volume's description.
- image_
id str - The image ID from which to create the volume. Changing this creates a new volume.
- metadata Mapping[str, str]
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach bool
- Specifies whether the EVS disk is shareable.
- name str
- A unique name for the volume. Changing this updates the volume's name.
- region str
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - snapshot_
id str - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source_
replica str - The volume ID to replicate with. Changing this creates a new volume.
- source_
vol_ strid - The volume ID from which to create the volume. Changing this creates a new volume.
- Mapping[str, str]
- The key/value pairs to associate with the volume.
- timeouts
Blockstorage
Volume V2Timeouts Args - volume_
type str - The type of volume to create. Changing this creates a new volume.
- size Number
- The size of the volume to create (in gigabytes).
- availability
Zone String - The availability zone for the volume. Changing this creates a new volume.
- blockstorage
Volume StringV2Id - Specifies a resource ID in UUID format.
- cascade Boolean
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency
Group StringId - The consistency group to place the volume in. Changing this creates a new volume.
- description String
- A description of the volume. Changing this updates the volume's description.
- image
Id String - The image ID from which to create the volume. Changing this creates a new volume.
- metadata Map<String>
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach Boolean
- Specifies whether the EVS disk is shareable.
- name String
- A unique name for the volume. Changing this updates the volume's name.
- region String
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - snapshot
Id String - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source
Replica String - The volume ID to replicate with. Changing this creates a new volume.
- source
Vol StringId - The volume ID from which to create the volume. Changing this creates a new volume.
- Map<String>
- The key/value pairs to associate with the volume.
- timeouts Property Map
- volume
Type String - The type of volume to create. Changing this creates a new volume.
Outputs
All input properties are implicitly available as output properties. Additionally, the BlockstorageVolumeV2 resource produces the following output properties:
- Attachments
List<Blockstorage
Volume V2Attachment> - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- Id string
- The provider-assigned unique ID for this managed resource.
- Attachments
[]Blockstorage
Volume V2Attachment - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- Id string
- The provider-assigned unique ID for this managed resource.
- attachments
List<Blockstorage
Volume V2Attachment> - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- id String
- The provider-assigned unique ID for this managed resource.
- attachments
Blockstorage
Volume V2Attachment[] - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- id string
- The provider-assigned unique ID for this managed resource.
- attachments
Sequence[Blockstorage
Volume V2Attachment] - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- id str
- The provider-assigned unique ID for this managed resource.
- attachments List<Property Map>
- If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BlockstorageVolumeV2 Resource
Get an existing BlockstorageVolumeV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BlockstorageVolumeV2State, opts?: CustomResourceOptions): BlockstorageVolumeV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attachments: Optional[Sequence[BlockstorageVolumeV2AttachmentArgs]] = None,
availability_zone: Optional[str] = None,
blockstorage_volume_v2_id: Optional[str] = None,
cascade: Optional[bool] = None,
consistency_group_id: Optional[str] = None,
description: Optional[str] = None,
image_id: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
multiattach: Optional[bool] = None,
name: Optional[str] = None,
region: Optional[str] = None,
size: Optional[float] = None,
snapshot_id: Optional[str] = None,
source_replica: Optional[str] = None,
source_vol_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[BlockstorageVolumeV2TimeoutsArgs] = None,
volume_type: Optional[str] = None) -> BlockstorageVolumeV2
func GetBlockstorageVolumeV2(ctx *Context, name string, id IDInput, state *BlockstorageVolumeV2State, opts ...ResourceOption) (*BlockstorageVolumeV2, error)
public static BlockstorageVolumeV2 Get(string name, Input<string> id, BlockstorageVolumeV2State? state, CustomResourceOptions? opts = null)
public static BlockstorageVolumeV2 get(String name, Output<String> id, BlockstorageVolumeV2State state, CustomResourceOptions options)
resources: _: type: flexibleengine:BlockstorageVolumeV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Attachments
List<Blockstorage
Volume V2Attachment> - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- Availability
Zone string - The availability zone for the volume. Changing this creates a new volume.
- Blockstorage
Volume stringV2Id - Specifies a resource ID in UUID format.
- Cascade bool
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- Consistency
Group stringId - The consistency group to place the volume in. Changing this creates a new volume.
- Description string
- A description of the volume. Changing this updates the volume's description.
- Image
Id string - The image ID from which to create the volume. Changing this creates a new volume.
- Metadata Dictionary<string, string>
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- Multiattach bool
- Specifies whether the EVS disk is shareable.
- Name string
- A unique name for the volume. Changing this updates the volume's name.
- Region string
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - Size double
- The size of the volume to create (in gigabytes).
- Snapshot
Id string - The snapshot ID from which to create the volume. Changing this creates a new volume.
- Source
Replica string - The volume ID to replicate with. Changing this creates a new volume.
- Source
Vol stringId - The volume ID from which to create the volume. Changing this creates a new volume.
- Dictionary<string, string>
- The key/value pairs to associate with the volume.
- Timeouts
Blockstorage
Volume V2Timeouts - Volume
Type string - The type of volume to create. Changing this creates a new volume.
- Attachments
[]Blockstorage
Volume V2Attachment Args - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- Availability
Zone string - The availability zone for the volume. Changing this creates a new volume.
- Blockstorage
Volume stringV2Id - Specifies a resource ID in UUID format.
- Cascade bool
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- Consistency
Group stringId - The consistency group to place the volume in. Changing this creates a new volume.
- Description string
- A description of the volume. Changing this updates the volume's description.
- Image
Id string - The image ID from which to create the volume. Changing this creates a new volume.
- Metadata map[string]string
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- Multiattach bool
- Specifies whether the EVS disk is shareable.
- Name string
- A unique name for the volume. Changing this updates the volume's name.
- Region string
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - Size float64
- The size of the volume to create (in gigabytes).
- Snapshot
Id string - The snapshot ID from which to create the volume. Changing this creates a new volume.
- Source
Replica string - The volume ID to replicate with. Changing this creates a new volume.
- Source
Vol stringId - The volume ID from which to create the volume. Changing this creates a new volume.
- map[string]string
- The key/value pairs to associate with the volume.
- Timeouts
Blockstorage
Volume V2Timeouts Args - Volume
Type string - The type of volume to create. Changing this creates a new volume.
- attachments
List<Blockstorage
Volume V2Attachment> - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- availability
Zone String - The availability zone for the volume. Changing this creates a new volume.
- blockstorage
Volume StringV2Id - Specifies a resource ID in UUID format.
- cascade Boolean
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency
Group StringId - The consistency group to place the volume in. Changing this creates a new volume.
- description String
- A description of the volume. Changing this updates the volume's description.
- image
Id String - The image ID from which to create the volume. Changing this creates a new volume.
- metadata Map<String,String>
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach Boolean
- Specifies whether the EVS disk is shareable.
- name String
- A unique name for the volume. Changing this updates the volume's name.
- region String
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - size Double
- The size of the volume to create (in gigabytes).
- snapshot
Id String - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source
Replica String - The volume ID to replicate with. Changing this creates a new volume.
- source
Vol StringId - The volume ID from which to create the volume. Changing this creates a new volume.
- Map<String,String>
- The key/value pairs to associate with the volume.
- timeouts
Blockstorage
Volume V2Timeouts - volume
Type String - The type of volume to create. Changing this creates a new volume.
- attachments
Blockstorage
Volume V2Attachment[] - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- availability
Zone string - The availability zone for the volume. Changing this creates a new volume.
- blockstorage
Volume stringV2Id - Specifies a resource ID in UUID format.
- cascade boolean
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency
Group stringId - The consistency group to place the volume in. Changing this creates a new volume.
- description string
- A description of the volume. Changing this updates the volume's description.
- image
Id string - The image ID from which to create the volume. Changing this creates a new volume.
- metadata {[key: string]: string}
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach boolean
- Specifies whether the EVS disk is shareable.
- name string
- A unique name for the volume. Changing this updates the volume's name.
- region string
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - size number
- The size of the volume to create (in gigabytes).
- snapshot
Id string - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source
Replica string - The volume ID to replicate with. Changing this creates a new volume.
- source
Vol stringId - The volume ID from which to create the volume. Changing this creates a new volume.
- {[key: string]: string}
- The key/value pairs to associate with the volume.
- timeouts
Blockstorage
Volume V2Timeouts - volume
Type string - The type of volume to create. Changing this creates a new volume.
- attachments
Sequence[Blockstorage
Volume V2Attachment Args] - If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- availability_
zone str - The availability zone for the volume. Changing this creates a new volume.
- blockstorage_
volume_ strv2_ id - Specifies a resource ID in UUID format.
- cascade bool
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency_
group_ strid - The consistency group to place the volume in. Changing this creates a new volume.
- description str
- A description of the volume. Changing this updates the volume's description.
- image_
id str - The image ID from which to create the volume. Changing this creates a new volume.
- metadata Mapping[str, str]
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach bool
- Specifies whether the EVS disk is shareable.
- name str
- A unique name for the volume. Changing this updates the volume's name.
- region str
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - size float
- The size of the volume to create (in gigabytes).
- snapshot_
id str - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source_
replica str - The volume ID to replicate with. Changing this creates a new volume.
- source_
vol_ strid - The volume ID from which to create the volume. Changing this creates a new volume.
- Mapping[str, str]
- The key/value pairs to associate with the volume.
- timeouts
Blockstorage
Volume V2Timeouts Args - volume_
type str - The type of volume to create. Changing this creates a new volume.
- attachments List<Property Map>
- If a volume is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it.
- availability
Zone String - The availability zone for the volume. Changing this creates a new volume.
- blockstorage
Volume StringV2Id - Specifies a resource ID in UUID format.
- cascade Boolean
- Specifies to delete all snapshots associated with the EVS disk, Defaults to false.
- consistency
Group StringId - The consistency group to place the volume in. Changing this creates a new volume.
- description String
- A description of the volume. Changing this updates the volume's description.
- image
Id String - The image ID from which to create the volume. Changing this creates a new volume.
- metadata Map<String>
Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.
The EVS encryption capability with KMS key can be set with the following parameters:
- multiattach Boolean
- Specifies whether the EVS disk is shareable.
- name String
- A unique name for the volume. Changing this updates the volume's name.
- region String
- The region in which to create the volume.
If omitted, the
region
argument of the provider is used. Changing this creates a new volume. - size Number
- The size of the volume to create (in gigabytes).
- snapshot
Id String - The snapshot ID from which to create the volume. Changing this creates a new volume.
- source
Replica String - The volume ID to replicate with. Changing this creates a new volume.
- source
Vol StringId - The volume ID from which to create the volume. Changing this creates a new volume.
- Map<String>
- The key/value pairs to associate with the volume.
- timeouts Property Map
- volume
Type String - The type of volume to create. Changing this creates a new volume.
Supporting Types
BlockstorageVolumeV2Attachment, BlockstorageVolumeV2AttachmentArgs
- Device string
- Id string
- Specifies a resource ID in UUID format.
- Instance
Id string
- Device string
- Id string
- Specifies a resource ID in UUID format.
- Instance
Id string
- device String
- id String
- Specifies a resource ID in UUID format.
- instance
Id String
- device string
- id string
- Specifies a resource ID in UUID format.
- instance
Id string
- device str
- id str
- Specifies a resource ID in UUID format.
- instance_
id str
- device String
- id String
- Specifies a resource ID in UUID format.
- instance
Id String
BlockstorageVolumeV2Timeouts, BlockstorageVolumeV2TimeoutsArgs
Import
Volumes can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/blockstorageVolumeV2:BlockstorageVolumeV2 volume_1 ea257959-eeb1-4c10-8d33-26f0409a755d
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.