Class 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,
});
}
}
Inherited Members
Namespace: Pulumi.OpenStack.Compute
Assembly: Pulumi.OpenStack.dll
Syntax
public class FlavorAccess : CustomResource
Constructors
View SourceFlavorAccess(String, FlavorAccessArgs, CustomResourceOptions)
Create a FlavorAccess resource with the given unique name, arguments, and options.
Declaration
public FlavorAccess(string name, FlavorAccessArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FlavorAccessArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceFlavorId
The UUID of flavor to use. Changing this creates a new flavor access.
Declaration
public Output<string> FlavorId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
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.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TenantId
The UUID of tenant which is allowed to use the flavor. Changing this creates a new flavor access.
Declaration
public Output<string> TenantId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, FlavorAccessState, CustomResourceOptions)
Get an existing FlavorAccess resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FlavorAccess Get(string name, Input<string> id, FlavorAccessState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FlavorAccessState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FlavorAccess |