1. Registry
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. getIdentityAuthScopeV3
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.37.8
published on Thursday, Sep 10, 2026 by opentelekomcloud

    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",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    scope = opentelekomcloud.get_identity_auth_scope_v3(name="my_scope")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      scope:
        fn::invoke:
          function: opentelekomcloud:getIdentityAuthScopeV3
          arguments:
            name: my_scope
    
    Example coming soon!
    

    Authentication

    The data source supports token, username/password, and permanent AK/SK authentication.

    With token or username/password authentication, the attributes are populated from the token representing the current authentication scope. Project attributes are empty for a domain-scoped token, and domain attributes are empty for a project-scoped token.

    With AK/SK authentication, no token is issued. The current user is resolved from the configured access_key, while the project and user domain attributes are obtained from the provider authentication context. The roles, domain_id, and domain_name attributes are empty because AK/SK authentication is project-scoped.

    Temporary AK/SK credentials configured with security_token are not supported.

    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?: InvokeOutputOptions): Output<GetIdentityAuthScopeV3Result>
    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: pulumi.Input[Optional[str]] = None,
                                   name: pulumi.Input[Optional[str]] = None,
                                   region: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetIdentityAuthScopeV3Result]
    func GetIdentityAuthScopeV3(ctx *Context, args *GetIdentityAuthScopeV3Args, opts ...InvokeOption) (*GetIdentityAuthScopeV3Result, error)
    func GetIdentityAuthScopeV3Output(ctx *Context, args *GetIdentityAuthScopeV3OutputArgs, opts ...InvokeOption) GetIdentityAuthScopeV3ResultOutput

    > 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)
        public static Output<GetIdentityAuthScopeV3Result> Invoke(GetIdentityAuthScopeV3InvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetIdentityAuthScopeV3Result> getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args args, InvokeOptions options)
    public static Output<GetIdentityAuthScopeV3Result> getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args args, InvokeOptions options)
    public static Output<GetIdentityAuthScopeV3Result> getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args args, InvokeOutputOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getIdentityAuthScopeV3:getIdentityAuthScopeV3
      arguments:
        # arguments dictionary
    data "opentelekomcloud_get_identity_auth_scope_v3" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The name of the scope. This is an arbitrary name which is only used as a unique identifier so an actual token isn't used as the ID.
    Id string
    Region string
    Name string
    The name of the scope. This is an arbitrary name which is only used as a unique identifier so an actual token isn't used as the ID.
    Id string
    Region string
    name string
    The name of the scope. This is an arbitrary name which is only used as a unique identifier so an actual token isn't used as the ID.
    id string
    region string
    name String
    The name of the scope. This is an arbitrary name which is only used as a unique identifier so an actual token isn't used as the ID.
    id String
    region String
    name string
    The name of the scope. This is an arbitrary name which is only used as a unique identifier so an actual token isn't used as the ID.
    id string
    region string
    name str
    The name of the scope. This is an arbitrary name which is only used as a unique identifier so an actual token isn't used as the ID.
    id str
    region str
    name String
    The name of the scope. This is an arbitrary name which is only used as a unique identifier so an actual token isn't used as the ID.
    id String
    region String

    getIdentityAuthScopeV3 Result

    The following output properties are available:

    DomainId string
    The domain ID of the scope. Only set for a domain-scoped token, empty otherwise.
    DomainName string
    The domain name of the scope. Only set for a domain-scoped token, empty otherwise.
    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
    The domain ID of the scope. Only set for a domain-scoped token, empty otherwise.
    DomainName string
    The domain name of the scope. Only set for a domain-scoped token, empty otherwise.
    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 string
    The domain ID of the scope. Only set for a domain-scoped token, empty otherwise.
    domain_name string
    The domain name of the scope. Only set for a domain-scoped token, empty otherwise.
    id string
    name string
    project_domain_id string
    The domain ID of the project.
    project_domain_name string
    The domain name of the project.
    project_id string
    The project ID of the scope.
    project_name string
    The project name of the scope.
    region string
    roles list(object)
    A list of roles in the current scope. See reference below.
    user_domain_id string
    The domain ID of the user.
    user_domain_name string
    The domain name of the user.
    user_id string
    The user ID the of the scope.
    user_name string
    The username of the scope.
    domainId String
    The domain ID of the scope. Only set for a domain-scoped token, empty otherwise.
    domainName String
    The domain name of the scope. Only set for a domain-scoped token, empty otherwise.
    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
    The domain ID of the scope. Only set for a domain-scoped token, empty otherwise.
    domainName string
    The domain name of the scope. Only set for a domain-scoped token, empty otherwise.
    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
    The domain ID of the scope. Only set for a domain-scoped token, empty otherwise.
    domain_name str
    The domain name of the scope. Only set for a domain-scoped token, empty otherwise.
    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
    The domain ID of the scope. Only set for a domain-scoped token, empty otherwise.
    domainName String
    The domain name of the scope. Only set for a domain-scoped token, empty otherwise.
    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 string
    The ID of the role.
    RoleName string
    The name of the role.
    RoleId string
    The ID of the role.
    RoleName string
    The name of the role.
    role_id string
    The ID of the role.
    role_name string
    The name of the role.
    roleId String
    The ID of the role.
    roleName String
    The name of the role.
    roleId string
    The ID of the role.
    roleName string
    The name of the role.
    role_id str
    The ID of the role.
    role_name str
    The name of the role.
    roleId String
    The ID of the role.
    roleName 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.
    Viewing docs for opentelekomcloud 1.37.8
    published on Thursday, Sep 10, 2026 by opentelekomcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial