opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getIdentityProjectV3
Explore with Pulumi AI
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:
- Domain
Id string - The domain this project belongs to.
- Enabled bool
- Whether the project is enabled or disabled. Valid values are
true
andfalse
. - Id string
- Is
Domain bool - Whether this project is a domain. Valid values are
true
andfalse
. - Name string
- The name of the project.
- Parent
Id string - The parent of this project.
- Domain
Id string - The domain this project belongs to.
- Enabled bool
- Whether the project is enabled or disabled. Valid values are
true
andfalse
. - Id string
- Is
Domain bool - Whether this project is a domain. Valid values are
true
andfalse
. - Name string
- The name of the project.
- Parent
Id string - The parent of this project.
- domain
Id String - The domain this project belongs to.
- enabled Boolean
- Whether the project is enabled or disabled. Valid values are
true
andfalse
. - id String
- is
Domain Boolean - Whether this project is a domain. Valid values are
true
andfalse
. - name String
- The name of the project.
- parent
Id String - The parent of this project.
- domain
Id string - The domain this project belongs to.
- enabled boolean
- Whether the project is enabled or disabled. Valid values are
true
andfalse
. - id string
- is
Domain boolean - Whether this project is a domain. Valid values are
true
andfalse
. - name string
- The name of the project.
- parent
Id string - The parent of this project.
- domain
Id String - The domain this project belongs to.
- enabled Boolean
- Whether the project is enabled or disabled. Valid values are
true
andfalse
. - id String
- is
Domain Boolean - Whether this project is a domain. Valid values are
true
andfalse
. - name String
- The name of the project.
- parent
Id String - The parent of this project.
getIdentityProjectV3 Result
The following output properties are available:
- Description string
- The description of the project.
- Domain
Id string - ID of an enterprise account to which a project belongs.
- Enabled bool
- Whether a project is available.
- Id string
- Is
Domain 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.
- Parent
Id string - Parent ID of the project.
- Description string
- The description of the project.
- Domain
Id string - ID of an enterprise account to which a project belongs.
- Enabled bool
- Whether a project is available.
- Id string
- Is
Domain 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.
- Parent
Id string - Parent ID of the project.
- description String
- The description of the project.
- domain
Id String - ID of an enterprise account to which a project belongs.
- enabled Boolean
- Whether a project is available.
- id String
- is
Domain 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.
- parent
Id String - Parent ID of the project.
- description string
- The description of the project.
- domain
Id string - ID of an enterprise account to which a project belongs.
- enabled boolean
- Whether a project is available.
- id string
- is
Domain 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.
- parent
Id 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.
- domain
Id String - ID of an enterprise account to which a project belongs.
- enabled Boolean
- Whether a project is available.
- id String
- is
Domain 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.
- parent
Id 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 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud