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

opentelekomcloud.getIdentityAuthScopeV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 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
    

    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>
    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]
    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 CompletableFuture<GetIdentityAuthScopeV3Result> getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args args, InvokeOptions options)
    public static Output<GetIdentityAuthScopeV3Result> getIdentityAuthScopeV3(GetIdentityAuthScopeV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getIdentityAuthScopeV3:getIdentityAuthScopeV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Id string
    Region string
    Name string
    Id string
    Region string
    name String
    id String
    region String
    name string
    id string
    region string
    name str
    id str
    region str
    name 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 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.
    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud