OpenStack

Pulumi Official
Package maintained by Pulumi
v3.8.0 published on Monday, Feb 7, 2022 by Pulumi

VolumeTypeV3

Manages a V3 block storage volume type resource within OpenStack.

Note: This usually requires admin privileges.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var volumeType1 = new OpenStack.BlockStorage.VolumeTypeV3("volumeType1", new OpenStack.BlockStorage.VolumeTypeV3Args
        {
            Description = "Volume type 1",
            ExtraSpecs = 
            {
                { "capabilities", "gpu" },
                { "volume_backend_name", "ssd" },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/blockstorage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blockstorage.NewVolumeTypeV3(ctx, "volumeType1", &blockstorage.VolumeTypeV3Args{
			Description: pulumi.String("Volume type 1"),
			ExtraSpecs: pulumi.AnyMap{
				"capabilities":        pulumi.Any("gpu"),
				"volume_backend_name": pulumi.Any("ssd"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_openstack as openstack

volume_type1 = openstack.blockstorage.VolumeTypeV3("volumeType1",
    description="Volume type 1",
    extra_specs={
        "capabilities": "gpu",
        "volume_backend_name": "ssd",
    })
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const volumeType1 = new openstack.blockstorage.VolumeTypeV3("volume_type_1", {
    description: "Volume type 1",
    extraSpecs: {
        capabilities: "gpu",
        volume_backend_name: "ssd",
    },
});

Coming soon!

Create a VolumeTypeV3 Resource

new VolumeTypeV3(name: string, args?: VolumeTypeV3Args, opts?: CustomResourceOptions);
@overload
def VolumeTypeV3(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 extra_specs: Optional[Mapping[str, Any]] = None,
                 is_public: Optional[bool] = None,
                 name: Optional[str] = None,
                 region: Optional[str] = None)
@overload
def VolumeTypeV3(resource_name: str,
                 args: Optional[VolumeTypeV3Args] = None,
                 opts: Optional[ResourceOptions] = None)
func NewVolumeTypeV3(ctx *Context, name string, args *VolumeTypeV3Args, opts ...ResourceOption) (*VolumeTypeV3, error)
public VolumeTypeV3(string name, VolumeTypeV3Args? args = null, CustomResourceOptions? opts = null)
public VolumeTypeV3(String name, VolumeTypeV3Args args)
public VolumeTypeV3(String name, VolumeTypeV3Args args, CustomResourceOptions options)
type: openstack:blockstorage:VolumeTypeV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VolumeTypeV3Args
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 VolumeTypeV3Args
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 VolumeTypeV3Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VolumeTypeV3Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VolumeTypeV3Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VolumeTypeV3 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 VolumeTypeV3 resource accepts the following input properties:

Description string

Human-readable description of the port. Changing this updates the description of an existing volume type.

ExtraSpecs Dictionary<string, object>

Key/Value pairs of metadata for the volume type.

IsPublic bool

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

Name string

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

Description string

Human-readable description of the port. Changing this updates the description of an existing volume type.

ExtraSpecs map[string]interface{}

Key/Value pairs of metadata for the volume type.

IsPublic bool

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

Name string

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description String

Human-readable description of the port. Changing this updates the description of an existing volume type.

extraSpecs Map<String,Object>

Key/Value pairs of metadata for the volume type.

isPublic Boolean

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name String

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description string

Human-readable description of the port. Changing this updates the description of an existing volume type.

extraSpecs {[key: string]: any}

Key/Value pairs of metadata for the volume type.

isPublic boolean

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name string

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description str

Human-readable description of the port. Changing this updates the description of an existing volume type.

extra_specs Mapping[str, Any]

Key/Value pairs of metadata for the volume type.

is_public bool

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name str

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description String

Human-readable description of the port. Changing this updates the description of an existing volume type.

extraSpecs Map<Any>

Key/Value pairs of metadata for the volume type.

isPublic Boolean

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name String

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing VolumeTypeV3 Resource

Get an existing VolumeTypeV3 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?: VolumeTypeV3State, opts?: CustomResourceOptions): VolumeTypeV3
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        extra_specs: Optional[Mapping[str, Any]] = None,
        is_public: Optional[bool] = None,
        name: Optional[str] = None,
        region: Optional[str] = None) -> VolumeTypeV3
func GetVolumeTypeV3(ctx *Context, name string, id IDInput, state *VolumeTypeV3State, opts ...ResourceOption) (*VolumeTypeV3, error)
public static VolumeTypeV3 Get(string name, Input<string> id, VolumeTypeV3State? state, CustomResourceOptions? opts = null)
public static VolumeTypeV3 get(String name, Output<String> id, VolumeTypeV3State state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
The following state arguments are supported:
Description string

Human-readable description of the port. Changing this updates the description of an existing volume type.

ExtraSpecs Dictionary<string, object>

Key/Value pairs of metadata for the volume type.

IsPublic bool

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

Name string

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

Description string

Human-readable description of the port. Changing this updates the description of an existing volume type.

ExtraSpecs map[string]interface{}

Key/Value pairs of metadata for the volume type.

IsPublic bool

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

Name string

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description String

Human-readable description of the port. Changing this updates the description of an existing volume type.

extraSpecs Map<String,Object>

Key/Value pairs of metadata for the volume type.

isPublic Boolean

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name String

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description string

Human-readable description of the port. Changing this updates the description of an existing volume type.

extraSpecs {[key: string]: any}

Key/Value pairs of metadata for the volume type.

isPublic boolean

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name string

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description str

Human-readable description of the port. Changing this updates the description of an existing volume type.

extra_specs Mapping[str, Any]

Key/Value pairs of metadata for the volume type.

is_public bool

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name str

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

description String

Human-readable description of the port. Changing this updates the description of an existing volume type.

extraSpecs Map<Any>

Key/Value pairs of metadata for the volume type.

isPublic Boolean

Whether the volume type is public. Changing this updates the is_public of an existing volume type.

name String

Name of the volume type. Changing this updates the name of an existing volume type.

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 quotaset.

Import

Volume types can be imported using the volume_type_id, e.g.

 $ pulumi import openstack:blockstorage/volumeTypeV3:VolumeTypeV3 volume_type_1 941793f0-0a34-4bc4-b72e-a6326ae58283

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes

This Pulumi package is based on the openstack Terraform Provider.