GetProject
Use this data source to get the ID of an OpenStack project.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var project1 = Output.Create(OpenStack.Identity.GetProject.InvokeAsync(new OpenStack.Identity.GetProjectArgs
{
Name = "demo",
}));
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
project1 = openstack.identity.get_project(name="demo")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const project1 = pulumi.output(openstack.identity.getProject({
name: "demo",
}, { async: true }));Using GetProject
function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>function get_project(domain_id=None, enabled=None, is_domain=None, name=None, parent_id=None, region=None, opts=None)func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)Note: This function is named
LookupProjectin the Go SDK.
public static class GetProject {
public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- 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 the project is located in.
- 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 the project is located in.
- 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 the project is located in.
- 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 the project is located in.
GetProject Result
The following output properties are available:
- Description string
The description of the project.
- Domain
Id string See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Region string
The region the project is located in.
- List<string>
See Argument Reference above.
- Enabled bool
See Argument Reference above.
- Is
Domain bool See Argument Reference above.
- Name string
See Argument Reference above.
- Parent
Id string See Argument Reference above.
- Description string
The description of the project.
- Domain
Id string See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Region string
The region the project is located in.
- []string
See Argument Reference above.
- Enabled bool
See Argument Reference above.
- Is
Domain bool See Argument Reference above.
- Name string
See Argument Reference above.
- Parent
Id string See Argument Reference above.
- description string
The description of the project.
- domain
Id string See Argument Reference above.
- id string
The provider-assigned unique ID for this managed resource.
- region string
The region the project is located in.
- string[]
See Argument Reference above.
- enabled boolean
See Argument Reference above.
- is
Domain boolean See Argument Reference above.
- name string
See Argument Reference above.
- parent
Id string See Argument Reference above.
- description str
The description of the project.
- domain_
id str See Argument Reference above.
- id str
The provider-assigned unique ID for this managed resource.
- region str
The region the project is located in.
- List[str]
See Argument Reference above.
- enabled bool
See Argument Reference above.
- is_
domain bool See Argument Reference above.
- name str
See Argument Reference above.
- parent_
id str See Argument Reference above.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.