FlavorAccess

Manages a project access for flavor V2 resource within OpenStack.

Note: You must have admin privileges in your OpenStack cloud to use this resource.


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 flavor1 = new OpenStack.Compute.Flavor("flavor1", new OpenStack.Compute.FlavorArgs
        {
            Disk = 20,
            IsPublic = false,
            Ram = 8096,
            Vcpus = 2,
        });
        var access1 = new OpenStack.Compute.FlavorAccess("access1", new OpenStack.Compute.FlavorAccessArgs
        {
            FlavorId = flavor1.Id,
            TenantId = project1.Id,
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

project1 = openstack.identity.Project("project1")
flavor1 = openstack.compute.Flavor("flavor1",
    disk="20",
    is_public=False,
    ram="8096",
    vcpus="2")
access1 = openstack.compute.FlavorAccess("access1",
    flavor_id=flavor1.id,
    tenant_id=project1.id)
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const project1 = new openstack.identity.Project("project_1", {});
const flavor1 = new openstack.compute.Flavor("flavor_1", {
    disk: 20,
    isPublic: false,
    ram: 8096,
    vcpus: 2,
});
const access1 = new openstack.compute.FlavorAccess("access_1", {
    flavorId: flavor1.id,
    tenantId: project1.id,
});

Create a FlavorAccess Resource

def FlavorAccess(resource_name, opts=None, flavor_id=None, region=None, tenant_id=None, __props__=None);
func NewFlavorAccess(ctx *Context, name string, args FlavorAccessArgs, opts ...ResourceOption) (*FlavorAccess, error)
name string
The unique name of the resource.
args FlavorAccessArgs
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 FlavorAccessArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FlavorAccessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

FlavorAccess Resource Properties

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

Inputs

The FlavorAccess resource accepts the following input properties:

FlavorId string

The UUID of flavor to use. Changing this creates a new flavor access.

TenantId string

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

Region string

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

FlavorId string

The UUID of flavor to use. Changing this creates a new flavor access.

TenantId string

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

Region string

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

flavorId string

The UUID of flavor to use. Changing this creates a new flavor access.

tenantId string

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

region string

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

flavor_id str

The UUID of flavor to use. Changing this creates a new flavor access.

tenant_id str

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

region str

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

Outputs

All input properties are implicitly available as output properties. Additionally, the FlavorAccess 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing FlavorAccess Resource

Get an existing FlavorAccess 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?: FlavorAccessState, opts?: CustomResourceOptions): FlavorAccess
static get(resource_name, id, opts=None, flavor_id=None, region=None, tenant_id=None, __props__=None);
func GetFlavorAccess(ctx *Context, name string, id IDInput, state *FlavorAccessState, opts ...ResourceOption) (*FlavorAccess, error)
public static FlavorAccess Get(string name, Input<string> id, FlavorAccessState? 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:

FlavorId string

The UUID of flavor to use. Changing this creates a new flavor access.

Region string

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

TenantId string

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

FlavorId string

The UUID of flavor to use. Changing this creates a new flavor access.

Region string

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

TenantId string

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

flavorId string

The UUID of flavor to use. Changing this creates a new flavor access.

region string

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

tenantId string

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

flavor_id str

The UUID of flavor to use. Changing this creates a new flavor access.

region str

The region in which to obtain the V2 Compute client. If omitted, the region argument of the provider is used. Changing this creates a new flavor access.

tenant_id str

The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.

Package Details

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