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.
- Domain
Id string The domain this project belongs to.
- Enabled bool
Whether the project is enabled or disabled. Valid values are
trueandfalse.- Is
Domain bool Whether this project is a domain. Valid values are
trueandfalse.- Name string
The name of the project.
- Parent
Id string The parent of this project.
- Region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used. Changing this creates a new project.- List<string>
Tags for the project. Changing this updates the existing project.
- Description string
A description of the project.
- Domain
Id string The domain this project belongs to.
- Enabled bool
Whether the project is enabled or disabled. Valid values are
trueandfalse.- Is
Domain bool Whether this project is a domain. Valid values are
trueandfalse.- Name string
The name of the project.
- Parent
Id string The parent of this project.
- Region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used. Changing this creates a new project.- []string
Tags for the project. Changing this updates the existing project.
- description string
A description of the project.
- domain
Id string The domain this project belongs to.
- enabled boolean
Whether the project is enabled or disabled. Valid values are
trueandfalse.- is
Domain boolean Whether this project is a domain. Valid values are
trueandfalse.- name string
The name of the project.
- parent
Id string The parent of this project.
- region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used. Changing this creates a new project.- 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
trueandfalse.- is_
domain bool Whether this project is a domain. Valid values are
trueandfalse.- 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
regionargument of the provider is used. Changing this creates a new project.- 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:
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): Projectstatic 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.
- Domain
Id string The domain this project belongs to.
- Enabled bool
Whether the project is enabled or disabled. Valid values are
trueandfalse.- Is
Domain bool Whether this project is a domain. Valid values are
trueandfalse.- Name string
The name of the project.
- Parent
Id string The parent of this project.
- Region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used. Changing this creates a new project.- List<string>
Tags for the project. Changing this updates the existing project.
- Description string
A description of the project.
- Domain
Id string The domain this project belongs to.
- Enabled bool
Whether the project is enabled or disabled. Valid values are
trueandfalse.- Is
Domain bool Whether this project is a domain. Valid values are
trueandfalse.- Name string
The name of the project.
- Parent
Id string The parent of this project.
- Region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used. Changing this creates a new project.- []string
Tags for the project. Changing this updates the existing project.
- description string
A description of the project.
- domain
Id string The domain this project belongs to.
- enabled boolean
Whether the project is enabled or disabled. Valid values are
trueandfalse.- is
Domain boolean Whether this project is a domain. Valid values are
trueandfalse.- name string
The name of the project.
- parent
Id string The parent of this project.
- region string
The region in which to obtain the V3 Keystone client. If omitted, the
regionargument of the provider is used. Changing this creates a new project.- 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
trueandfalse.- is_
domain bool Whether this project is a domain. Valid values are
trueandfalse.- 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
regionargument of the provider is used. Changing this creates a new project.- 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
openstackTerraform Provider.