OpenStack

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

VolumeTypeAccessV3

Manages a V3 block storage volume type access resource within OpenStack.

Note: This usually requires admin privileges.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var project1 = new OpenStack.Identity.Project("project1", new OpenStack.Identity.ProjectArgs
        {
        });
        var volumeType1 = new OpenStack.BlockStorage.VolumeTypeV3("volumeType1", new OpenStack.BlockStorage.VolumeTypeV3Args
        {
            IsPublic = false,
        });
        var volumeTypeAccess = new OpenStack.BlockStorage.VolumeTypeAccessV3("volumeTypeAccess", new OpenStack.BlockStorage.VolumeTypeAccessV3Args
        {
            ProjectId = project1.Id,
            VolumeTypeId = volumeType1.Id,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		project1, err := identity.NewProject(ctx, "project1", nil)
		if err != nil {
			return err
		}
		volumeType1, err := blockstorage.NewVolumeTypeV3(ctx, "volumeType1", &blockstorage.VolumeTypeV3Args{
			IsPublic: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = blockstorage.NewVolumeTypeAccessV3(ctx, "volumeTypeAccess", &blockstorage.VolumeTypeAccessV3Args{
			ProjectId:    project1.ID(),
			VolumeTypeId: volumeType1.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_openstack as openstack

project1 = openstack.identity.Project("project1")
volume_type1 = openstack.blockstorage.VolumeTypeV3("volumeType1", is_public=False)
volume_type_access = openstack.blockstorage.VolumeTypeAccessV3("volumeTypeAccess",
    project_id=project1.id,
    volume_type_id=volume_type1.id)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const project1 = new openstack.identity.Project("project_1", {});
const volumeType1 = new openstack.blockstorage.VolumeTypeV3("volume_type_1", {
    isPublic: false,
});
const volumeTypeAccess = new openstack.blockstorage.VolumeTypeAccessV3("volume_type_access", {
    projectId: project1.id,
    volumeTypeId: volumeType1.id,
});

Coming soon!

Create a VolumeTypeAccessV3 Resource

new VolumeTypeAccessV3(name: string, args: VolumeTypeAccessV3Args, opts?: CustomResourceOptions);
@overload
def VolumeTypeAccessV3(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       project_id: Optional[str] = None,
                       region: Optional[str] = None,
                       volume_type_id: Optional[str] = None)
@overload
def VolumeTypeAccessV3(resource_name: str,
                       args: VolumeTypeAccessV3Args,
                       opts: Optional[ResourceOptions] = None)
func NewVolumeTypeAccessV3(ctx *Context, name string, args VolumeTypeAccessV3Args, opts ...ResourceOption) (*VolumeTypeAccessV3, error)
public VolumeTypeAccessV3(string name, VolumeTypeAccessV3Args args, CustomResourceOptions? opts = null)
public VolumeTypeAccessV3(String name, VolumeTypeAccessV3Args args)
public VolumeTypeAccessV3(String name, VolumeTypeAccessV3Args args, CustomResourceOptions options)
type: openstack:blockstorage:VolumeTypeAccessV3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

ProjectId string

ID of the project to give access to. Changing this creates a new resource.

VolumeTypeId string

ID of the volume type to give access to. Changing this creates a new resource.

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.

ProjectId string

ID of the project to give access to. Changing this creates a new resource.

VolumeTypeId string

ID of the volume type to give access to. Changing this creates a new resource.

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.

projectId String

ID of the project to give access to. Changing this creates a new resource.

volumeTypeId String

ID of the volume type to give access to. Changing this creates a new resource.

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.

projectId string

ID of the project to give access to. Changing this creates a new resource.

volumeTypeId string

ID of the volume type to give access to. Changing this creates a new resource.

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.

project_id str

ID of the project to give access to. Changing this creates a new resource.

volume_type_id str

ID of the volume type to give access to. Changing this creates a new resource.

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.

projectId String

ID of the project to give access to. Changing this creates a new resource.

volumeTypeId String

ID of the volume type to give access to. Changing this creates a new resource.

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 VolumeTypeAccessV3 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 VolumeTypeAccessV3 Resource

Get an existing VolumeTypeAccessV3 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?: VolumeTypeAccessV3State, opts?: CustomResourceOptions): VolumeTypeAccessV3
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        volume_type_id: Optional[str] = None) -> VolumeTypeAccessV3
func GetVolumeTypeAccessV3(ctx *Context, name string, id IDInput, state *VolumeTypeAccessV3State, opts ...ResourceOption) (*VolumeTypeAccessV3, error)
public static VolumeTypeAccessV3 Get(string name, Input<string> id, VolumeTypeAccessV3State? state, CustomResourceOptions? opts = null)
public static VolumeTypeAccessV3 get(String name, Output<String> id, VolumeTypeAccessV3State 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:
ProjectId string

ID of the project to give access to. Changing this creates a new resource.

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.

VolumeTypeId string

ID of the volume type to give access to. Changing this creates a new resource.

ProjectId string

ID of the project to give access to. Changing this creates a new resource.

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.

VolumeTypeId string

ID of the volume type to give access to. Changing this creates a new resource.

projectId String

ID of the project to give access to. Changing this creates a new resource.

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.

volumeTypeId String

ID of the volume type to give access to. Changing this creates a new resource.

projectId string

ID of the project to give access to. Changing this creates a new resource.

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.

volumeTypeId string

ID of the volume type to give access to. Changing this creates a new resource.

project_id str

ID of the project to give access to. Changing this creates a new resource.

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.

volume_type_id str

ID of the volume type to give access to. Changing this creates a new resource.

projectId String

ID of the project to give access to. Changing this creates a new resource.

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.

volumeTypeId String

ID of the volume type to give access to. Changing this creates a new resource.

Import

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

 $ pulumi import openstack:blockstorage/volumeTypeAccessV3:VolumeTypeAccessV3 volume_type_access 941793f0-0a34-4bc4-b72e-a6326ae58283/ed498e81f0cc448bae0ad4f8f21bf67f

Package Details

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

This Pulumi package is based on the openstack Terraform Provider.