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 LookupProject in the Go SDK.

public static class GetProject {
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

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 the project is located in.

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 the project is located in.

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 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 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 the project is located in.

GetProject Result

The following output properties are available:

Description string

The description of the project.

DomainId 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.

Tags List<string>

See Argument Reference above.

Enabled bool

See Argument Reference above.

IsDomain bool

See Argument Reference above.

Name string

See Argument Reference above.

ParentId string

See Argument Reference above.

Description string

The description of the project.

DomainId 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.

Tags []string

See Argument Reference above.

Enabled bool

See Argument Reference above.

IsDomain bool

See Argument Reference above.

Name string

See Argument Reference above.

ParentId string

See Argument Reference above.

description string

The description of the project.

domainId 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.

tags string[]

See Argument Reference above.

enabled boolean

See Argument Reference above.

isDomain boolean

See Argument Reference above.

name string

See Argument Reference above.

parentId 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.

tags 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 openstack Terraform Provider.