1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getIdentityProjectV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getIdentityProjectV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for IAM project you can get at documentation portal

    Use this data source to get the ID of an OpenTelekomCloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const project1 = opentelekomcloud.getIdentityProjectV3({
        name: "demo",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    project1 = opentelekomcloud.get_identity_project_v3(name="demo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.LookupIdentityProjectV3(ctx, &opentelekomcloud.LookupIdentityProjectV3Args{
    			Name: pulumi.StringRef("demo"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var project1 = Opentelekomcloud.GetIdentityProjectV3.Invoke(new()
        {
            Name = "demo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetIdentityProjectV3Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var project1 = OpentelekomcloudFunctions.getIdentityProjectV3(GetIdentityProjectV3Args.builder()
                .name("demo")
                .build());
    
        }
    }
    
    variables:
      project1:
        fn::invoke:
          function: opentelekomcloud:getIdentityProjectV3
          arguments:
            name: demo
    

    Query Current Project details

    If name or domain_id are not provided, data source gets info about current project.

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const project1 = opentelekomcloud.getIdentityProjectV3({});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    project1 = opentelekomcloud.get_identity_project_v3()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.LookupIdentityProjectV3(ctx, &opentelekomcloud.LookupIdentityProjectV3Args{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var project1 = Opentelekomcloud.GetIdentityProjectV3.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetIdentityProjectV3Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var project1 = OpentelekomcloudFunctions.getIdentityProjectV3();
    
        }
    }
    
    variables:
      project1:
        fn::invoke:
          function: opentelekomcloud:getIdentityProjectV3
          arguments: {}
    

    Using getIdentityProjectV3

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getIdentityProjectV3(args: GetIdentityProjectV3Args, opts?: InvokeOptions): Promise<GetIdentityProjectV3Result>
    function getIdentityProjectV3Output(args: GetIdentityProjectV3OutputArgs, opts?: InvokeOptions): Output<GetIdentityProjectV3Result>
    def get_identity_project_v3(domain_id: Optional[str] = None,
                                enabled: Optional[bool] = None,
                                id: Optional[str] = None,
                                is_domain: Optional[bool] = None,
                                name: Optional[str] = None,
                                parent_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIdentityProjectV3Result
    def get_identity_project_v3_output(domain_id: Optional[pulumi.Input[str]] = None,
                                enabled: Optional[pulumi.Input[bool]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                is_domain: Optional[pulumi.Input[bool]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                parent_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIdentityProjectV3Result]
    func LookupIdentityProjectV3(ctx *Context, args *LookupIdentityProjectV3Args, opts ...InvokeOption) (*LookupIdentityProjectV3Result, error)
    func LookupIdentityProjectV3Output(ctx *Context, args *LookupIdentityProjectV3OutputArgs, opts ...InvokeOption) LookupIdentityProjectV3ResultOutput

    > Note: This function is named LookupIdentityProjectV3 in the Go SDK.

    public static class GetIdentityProjectV3 
    {
        public static Task<GetIdentityProjectV3Result> InvokeAsync(GetIdentityProjectV3Args args, InvokeOptions? opts = null)
        public static Output<GetIdentityProjectV3Result> Invoke(GetIdentityProjectV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIdentityProjectV3Result> getIdentityProjectV3(GetIdentityProjectV3Args args, InvokeOptions options)
    public static Output<GetIdentityProjectV3Result> getIdentityProjectV3(GetIdentityProjectV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getIdentityProjectV3:getIdentityProjectV3
      arguments:
        # arguments dictionary

    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.
    Id string
    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.
    DomainId string
    The domain this project belongs to.
    Enabled bool
    Whether the project is enabled or disabled. Valid values are true and false.
    Id string
    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.
    domainId String
    The domain this project belongs to.
    enabled Boolean
    Whether the project is enabled or disabled. Valid values are true and false.
    id String
    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.
    domainId string
    The domain this project belongs to.
    enabled boolean
    Whether the project is enabled or disabled. Valid values are true and false.
    id string
    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.
    domain_id str
    The domain this project belongs to.
    enabled bool
    Whether the project is enabled or disabled. Valid values are true and false.
    id str
    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.
    domainId String
    The domain this project belongs to.
    enabled Boolean
    Whether the project is enabled or disabled. Valid values are true and false.
    id String
    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.

    getIdentityProjectV3 Result

    The following output properties are available:

    Description string
    The description of the project.
    DomainId string
    ID of an enterprise account to which a project belongs.
    Enabled bool
    Whether a project is available.
    Id string
    IsDomain bool
    Indicates whether the user calling the API is a tenant.
    Region string
    Indicates the region where the project is present.
    Name string
    Project name.
    ParentId string
    Parent ID of the project.
    Description string
    The description of the project.
    DomainId string
    ID of an enterprise account to which a project belongs.
    Enabled bool
    Whether a project is available.
    Id string
    IsDomain bool
    Indicates whether the user calling the API is a tenant.
    Region string
    Indicates the region where the project is present.
    Name string
    Project name.
    ParentId string
    Parent ID of the project.
    description String
    The description of the project.
    domainId String
    ID of an enterprise account to which a project belongs.
    enabled Boolean
    Whether a project is available.
    id String
    isDomain Boolean
    Indicates whether the user calling the API is a tenant.
    region String
    Indicates the region where the project is present.
    name String
    Project name.
    parentId String
    Parent ID of the project.
    description string
    The description of the project.
    domainId string
    ID of an enterprise account to which a project belongs.
    enabled boolean
    Whether a project is available.
    id string
    isDomain boolean
    Indicates whether the user calling the API is a tenant.
    region string
    Indicates the region where the project is present.
    name string
    Project name.
    parentId string
    Parent ID of the project.
    description str
    The description of the project.
    domain_id str
    ID of an enterprise account to which a project belongs.
    enabled bool
    Whether a project is available.
    id str
    is_domain bool
    Indicates whether the user calling the API is a tenant.
    region str
    Indicates the region where the project is present.
    name str
    Project name.
    parent_id str
    Parent ID of the project.
    description String
    The description of the project.
    domainId String
    ID of an enterprise account to which a project belongs.
    enabled Boolean
    Whether a project is available.
    id String
    isDomain Boolean
    Indicates whether the user calling the API is a tenant.
    region String
    Indicates the region where the project is present.
    name String
    Project name.
    parentId String
    Parent ID of the project.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud