Project

Manages a V3 Project resource within OpenStack Keystone.

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
        {
            Description = "A project",
        });
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

project1 = openstack.identity.Project("project1", description="A project")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const project1 = new openstack.identity.Project("project_1", {
    description: "A project",
});

Create a Project Resource

new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
def Project(resource_name, opts=None, description=None, domain_id=None, enabled=None, is_domain=None, name=None, parent_id=None, region=None, tags=None, __props__=None);
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ProjectArgs
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 ProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Project Resource Properties

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

Inputs

The Project resource accepts the following input properties:

Description string

A description of the project.

DomainId string

The domain this project belongs to.

Enabled bool

Whether the project is enabled or disabled. Valid values are true and false.

IsDomain bool

Whether this project is a domain. Valid values are true and false.

Name string

The name of the project.

ParentId string

The parent of this project.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

Tags List<string>

Tags for the project. Changing this updates the existing project.

Description string

A description of the project.

DomainId string

The domain this project belongs to.

Enabled bool

Whether the project is enabled or disabled. Valid values are true and false.

IsDomain bool

Whether this project is a domain. Valid values are true and false.

Name string

The name of the project.

ParentId string

The parent of this project.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

Tags []string

Tags for the project. Changing this updates the existing project.

description string

A description of the project.

domainId string

The domain this project belongs to.

enabled boolean

Whether the project is enabled or disabled. Valid values are true and false.

isDomain boolean

Whether this project is a domain. Valid values are true and false.

name string

The name of the project.

parentId string

The parent of this project.

region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

tags string[]

Tags for the project. Changing this updates the existing project.

description str

A description of the project.

domain_id str

The domain this project belongs to.

enabled bool

Whether the project is enabled or disabled. Valid values are true and false.

is_domain bool

Whether this project is a domain. Valid values are true and false.

name str

The name of the project.

parent_id str

The parent of this project.

region str

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

tags List[str]

Tags for the project. Changing this updates the existing project.

Outputs

All input properties are implicitly available as output properties. Additionally, the Project 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 Project Resource

Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
static get(resource_name, id, opts=None, description=None, domain_id=None, enabled=None, is_domain=None, name=None, parent_id=None, region=None, tags=None, __props__=None);
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? 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:

Description string

A description of the project.

DomainId string

The domain this project belongs to.

Enabled bool

Whether the project is enabled or disabled. Valid values are true and false.

IsDomain bool

Whether this project is a domain. Valid values are true and false.

Name string

The name of the project.

ParentId string

The parent of this project.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

Tags List<string>

Tags for the project. Changing this updates the existing project.

Description string

A description of the project.

DomainId string

The domain this project belongs to.

Enabled bool

Whether the project is enabled or disabled. Valid values are true and false.

IsDomain bool

Whether this project is a domain. Valid values are true and false.

Name string

The name of the project.

ParentId string

The parent of this project.

Region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

Tags []string

Tags for the project. Changing this updates the existing project.

description string

A description of the project.

domainId string

The domain this project belongs to.

enabled boolean

Whether the project is enabled or disabled. Valid values are true and false.

isDomain boolean

Whether this project is a domain. Valid values are true and false.

name string

The name of the project.

parentId string

The parent of this project.

region string

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

tags string[]

Tags for the project. Changing this updates the existing project.

description str

A description of the project.

domain_id str

The domain this project belongs to.

enabled bool

Whether the project is enabled or disabled. Valid values are true and false.

is_domain bool

Whether this project is a domain. Valid values are true and false.

name str

The name of the project.

parent_id str

The parent of this project.

region str

The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new project.

tags List[str]

Tags for the project. Changing this updates the existing project.

Package Details

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