1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getIdentityAuthScopeV3
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.getIdentityAuthScopeV3

Explore with Pulumi AI

Use this data source to get authentication information about the current auth scope in use within OpenTelekomCloud. This can be used as self-discovery or introspection of the username or project name currently in use.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const scope = opentelekomcloud.getIdentityAuthScopeV3({
    name: "my_scope",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

scope = opentelekomcloud.get_identity_auth_scope_v3(name="my_scope")
Copy
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.GetIdentityAuthScopeV3(ctx, &opentelekomcloud.GetIdentityAuthScopeV3Args{
			Name: "my_scope",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var scope = Opentelekomcloud.GetIdentityAuthScopeV3.Invoke(new()
    {
        Name = "my_scope",
    });

});
Copy
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.GetIdentityAuthScopeV3Args;
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 scope = OpentelekomcloudFunctions.getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args.builder()
            .name("my_scope")
            .build());

    }
}
Copy
variables:
  scope:
    fn::invoke:
      function: opentelekomcloud:getIdentityAuthScopeV3
      arguments:
        name: my_scope
Copy

Using getIdentityAuthScopeV3

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 getIdentityAuthScopeV3(args: GetIdentityAuthScopeV3Args, opts?: InvokeOptions): Promise<GetIdentityAuthScopeV3Result>
function getIdentityAuthScopeV3Output(args: GetIdentityAuthScopeV3OutputArgs, opts?: InvokeOptions): Output<GetIdentityAuthScopeV3Result>
Copy
def get_identity_auth_scope_v3(id: Optional[str] = None,
                               name: Optional[str] = None,
                               region: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetIdentityAuthScopeV3Result
def get_identity_auth_scope_v3_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               region: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetIdentityAuthScopeV3Result]
Copy
func GetIdentityAuthScopeV3(ctx *Context, args *GetIdentityAuthScopeV3Args, opts ...InvokeOption) (*GetIdentityAuthScopeV3Result, error)
func GetIdentityAuthScopeV3Output(ctx *Context, args *GetIdentityAuthScopeV3OutputArgs, opts ...InvokeOption) GetIdentityAuthScopeV3ResultOutput
Copy

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

public static class GetIdentityAuthScopeV3 
{
    public static Task<GetIdentityAuthScopeV3Result> InvokeAsync(GetIdentityAuthScopeV3Args args, InvokeOptions? opts = null)
    public static Output<GetIdentityAuthScopeV3Result> Invoke(GetIdentityAuthScopeV3InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIdentityAuthScopeV3Result> getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args args, InvokeOptions options)
public static Output<GetIdentityAuthScopeV3Result> getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args args, InvokeOptions options)
Copy
fn::invoke:
  function: opentelekomcloud:index/getIdentityAuthScopeV3:getIdentityAuthScopeV3
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Id string
Region string
Name This property is required. string
Id string
Region string
name This property is required. String
id String
region String
name This property is required. string
id string
region string
name This property is required. str
id str
region str
name This property is required. String
id String
region String

getIdentityAuthScopeV3 Result

The following output properties are available:

DomainId string
DomainName string
Id string
Name string
ProjectDomainId string
The domain ID of the project.
ProjectDomainName string
The domain name of the project.
ProjectId string
The project ID of the scope.
ProjectName string
The project name of the scope.
Region string
Roles List<GetIdentityAuthScopeV3Role>
A list of roles in the current scope. See reference below.
UserDomainId string
The domain ID of the user.
UserDomainName string
The domain name of the user.
UserId string
The user ID the of the scope.
UserName string
The username of the scope.
DomainId string
DomainName string
Id string
Name string
ProjectDomainId string
The domain ID of the project.
ProjectDomainName string
The domain name of the project.
ProjectId string
The project ID of the scope.
ProjectName string
The project name of the scope.
Region string
Roles []GetIdentityAuthScopeV3Role
A list of roles in the current scope. See reference below.
UserDomainId string
The domain ID of the user.
UserDomainName string
The domain name of the user.
UserId string
The user ID the of the scope.
UserName string
The username of the scope.
domainId String
domainName String
id String
name String
projectDomainId String
The domain ID of the project.
projectDomainName String
The domain name of the project.
projectId String
The project ID of the scope.
projectName String
The project name of the scope.
region String
roles List<GetIdentityAuthScopeV3Role>
A list of roles in the current scope. See reference below.
userDomainId String
The domain ID of the user.
userDomainName String
The domain name of the user.
userId String
The user ID the of the scope.
userName String
The username of the scope.
domainId string
domainName string
id string
name string
projectDomainId string
The domain ID of the project.
projectDomainName string
The domain name of the project.
projectId string
The project ID of the scope.
projectName string
The project name of the scope.
region string
roles GetIdentityAuthScopeV3Role[]
A list of roles in the current scope. See reference below.
userDomainId string
The domain ID of the user.
userDomainName string
The domain name of the user.
userId string
The user ID the of the scope.
userName string
The username of the scope.
domain_id str
domain_name str
id str
name str
project_domain_id str
The domain ID of the project.
project_domain_name str
The domain name of the project.
project_id str
The project ID of the scope.
project_name str
The project name of the scope.
region str
roles Sequence[GetIdentityAuthScopeV3Role]
A list of roles in the current scope. See reference below.
user_domain_id str
The domain ID of the user.
user_domain_name str
The domain name of the user.
user_id str
The user ID the of the scope.
user_name str
The username of the scope.
domainId String
domainName String
id String
name String
projectDomainId String
The domain ID of the project.
projectDomainName String
The domain name of the project.
projectId String
The project ID of the scope.
projectName String
The project name of the scope.
region String
roles List<Property Map>
A list of roles in the current scope. See reference below.
userDomainId String
The domain ID of the user.
userDomainName String
The domain name of the user.
userId String
The user ID the of the scope.
userName String
The username of the scope.

Supporting Types

GetIdentityAuthScopeV3Role

RoleId This property is required. string
The ID of the role.
RoleName This property is required. string
The name of the role.
RoleId This property is required. string
The ID of the role.
RoleName This property is required. string
The name of the role.
roleId This property is required. String
The ID of the role.
roleName This property is required. String
The name of the role.
roleId This property is required. string
The ID of the role.
roleName This property is required. string
The name of the role.
role_id This property is required. str
The ID of the role.
role_name This property is required. str
The name of the role.
roleId This property is required. String
The ID of the role.
roleName This property is required. String
The name of the role.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.