VolumeV1

Manages a V1 volume resource within OpenStack.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var volume1 = new OpenStack.BlockStorage.VolumeV1("volume1", new OpenStack.BlockStorage.VolumeV1Args
        {
            Description = "first test volume",
            Region = "RegionOne",
            Size = 3,
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

volume1 = openstack.blockstorage.VolumeV1("volume1",
    description="first test volume",
    region="RegionOne",
    size=3)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const volume1 = new openstack.blockstorage.VolumeV1("volume_1", {
    description: "first test volume",
    region: "RegionOne",
    size: 3,
});

Create a VolumeV1 Resource

def VolumeV1(resource_name, opts=None, availability_zone=None, description=None, image_id=None, metadata=None, name=None, region=None, size=None, snapshot_id=None, source_vol_id=None, volume_type=None, __props__=None);
func NewVolumeV1(ctx *Context, name string, args VolumeV1Args, opts ...ResourceOption) (*VolumeV1, error)
public VolumeV1(string name, VolumeV1Args args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args VolumeV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args VolumeV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VolumeV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

VolumeV1 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The VolumeV1 resource accepts the following input properties:

Size int

The size of the volume to create (in gigabytes). Changing this creates a new volume.

AvailabilityZone string

The availability zone for the volume. Changing this creates a new volume.

Description string

A description of the volume. Changing this updates the volume’s description.

ImageId string

The image ID from which to create the volume. Changing this creates a new volume.

Metadata Dictionary<string, object>

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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.

SnapshotId string

The snapshot ID from which to create the volume. Changing this creates a new volume.

SourceVolId string

The volume ID from which to create the volume. Changing this creates a new volume.

VolumeType string

The type of volume to create. Changing this creates a new volume.

Size int

The size of the volume to create (in gigabytes). Changing this creates a new volume.

AvailabilityZone string

The availability zone for the volume. Changing this creates a new volume.

Description string

A description of the volume. Changing this updates the volume’s description.

ImageId string

The image ID from which to create the volume. Changing this creates a new volume.

Metadata map[string]interface{}

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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.

SnapshotId string

The snapshot ID from which to create the volume. Changing this creates a new volume.

SourceVolId string

The volume ID from which to create the volume. Changing this creates a new volume.

VolumeType string

The type of volume to create. Changing this creates a new volume.

size number

The size of the volume to create (in gigabytes). Changing this creates a new volume.

availabilityZone string

The availability zone for the volume. Changing this creates a new volume.

description string

A description of the volume. Changing this updates the volume’s description.

imageId string

The image ID from which to create the volume. Changing this creates a new volume.

metadata {[key: string]: any}

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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.

snapshotId string

The snapshot ID from which to create the volume. Changing this creates a new volume.

sourceVolId string

The volume ID from which to create the volume. Changing this creates a new volume.

volumeType string

The type of volume to create. Changing this creates a new volume.

size float

The size of the volume to create (in gigabytes). Changing this creates a new volume.

availability_zone str

The availability zone for the volume. 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 Dict[str, Any]

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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_vol_id str

The volume ID from which to create the volume. Changing this creates a new volume.

volume_type str

The type of volume to create. Changing this creates a new volume.

Outputs

All input properties are implicitly available as output properties. Additionally, the VolumeV1 resource produces the following output properties:

Attachments List<Pulumi.OpenStack.BlockStorage.Outputs.VolumeV1Attachment>

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 []VolumeV1Attachment

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 VolumeV1Attachment[]

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[VolumeV1Attachment]

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.

Look up an Existing VolumeV1 Resource

Get an existing VolumeV1 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?: VolumeV1State, opts?: CustomResourceOptions): VolumeV1
static get(resource_name, id, opts=None, attachments=None, availability_zone=None, description=None, image_id=None, metadata=None, name=None, region=None, size=None, snapshot_id=None, source_vol_id=None, volume_type=None, __props__=None);
func GetVolumeV1(ctx *Context, name string, id IDInput, state *VolumeV1State, opts ...ResourceOption) (*VolumeV1, error)
public static VolumeV1 Get(string name, Input<string> id, VolumeV1State? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Attachments List<Pulumi.OpenStack.BlockStorage.Inputs.VolumeV1AttachmentArgs>

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.

AvailabilityZone string

The availability zone for the volume. Changing this creates a new volume.

Description string

A description of the volume. Changing this updates the volume’s description.

ImageId string

The image ID from which to create the volume. Changing this creates a new volume.

Metadata Dictionary<string, object>

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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 int

The size of the volume to create (in gigabytes). Changing this creates a new volume.

SnapshotId string

The snapshot ID from which to create the volume. Changing this creates a new volume.

SourceVolId string

The volume ID from which to create the volume. Changing this creates a new volume.

VolumeType string

The type of volume to create. Changing this creates a new volume.

Attachments []VolumeV1Attachment

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.

AvailabilityZone string

The availability zone for the volume. Changing this creates a new volume.

Description string

A description of the volume. Changing this updates the volume’s description.

ImageId string

The image ID from which to create the volume. Changing this creates a new volume.

Metadata map[string]interface{}

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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 int

The size of the volume to create (in gigabytes). Changing this creates a new volume.

SnapshotId string

The snapshot ID from which to create the volume. Changing this creates a new volume.

SourceVolId string

The volume ID from which to create the volume. Changing this creates a new volume.

VolumeType string

The type of volume to create. Changing this creates a new volume.

attachments VolumeV1Attachment[]

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.

availabilityZone string

The availability zone for the volume. Changing this creates a new volume.

description string

A description of the volume. Changing this updates the volume’s description.

imageId string

The image ID from which to create the volume. Changing this creates a new volume.

metadata {[key: string]: any}

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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). Changing this creates a new volume.

snapshotId string

The snapshot ID from which to create the volume. Changing this creates a new volume.

sourceVolId string

The volume ID from which to create the volume. Changing this creates a new volume.

volumeType string

The type of volume to create. Changing this creates a new volume.

attachments List[VolumeV1Attachment]

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.

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 Dict[str, Any]

Metadata key/value pairs to associate with the volume. Changing this updates the existing volume metadata.

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). 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_vol_id str

The volume ID from which to create the volume. Changing this creates a new volume.

volume_type str

The type of volume to create. Changing this creates a new volume.

Supporting Types

VolumeV1Attachment

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Device string
Id string
InstanceId string
Device string
Id string
InstanceId string
device string
id string
instanceId string
device str
id str
instance_id str

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.