opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud
opentelekomcloud.getIdentityAuthScopeV3
Explore with Pulumi AI
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:
getIdentityAuthScopeV3 Result
The following output properties are available:
- Domain
Id string - Domain
Name string - Id string
- Name string
- Project
Domain stringId - The domain ID of the project.
- Project
Domain stringName - 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<Get
Identity Auth Scope V3Role> - A list of roles in the current scope. See reference below.
- User
Domain stringId - The domain ID of the user.
- User
Domain stringName - The domain name of the user.
- User
Id string - The user ID the of the scope.
- User
Name string - The username of the scope.
- Domain
Id string - Domain
Name string - Id string
- Name string
- Project
Domain stringId - The domain ID of the project.
- Project
Domain stringName - 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
[]Get
Identity Auth Scope V3Role - A list of roles in the current scope. See reference below.
- User
Domain stringId - The domain ID of the user.
- User
Domain stringName - The domain name of the user.
- User
Id string - The user ID the of the scope.
- User
Name string - The username of the scope.
- domain
Id String - domain
Name String - id String
- name String
- project
Domain StringId - The domain ID of the project.
- project
Domain StringName - 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<Get
Identity Auth Scope V3Role> - A list of roles in the current scope. See reference below.
- user
Domain StringId - The domain ID of the user.
- user
Domain StringName - The domain name of the user.
- user
Id String - The user ID the of the scope.
- user
Name String - The username of the scope.
- domain
Id string - domain
Name string - id string
- name string
- project
Domain stringId - The domain ID of the project.
- project
Domain stringName - 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
Get
Identity Auth Scope V3Role[] - A list of roles in the current scope. See reference below.
- user
Domain stringId - The domain ID of the user.
- user
Domain stringName - The domain name of the user.
- user
Id string - The user ID the of the scope.
- user
Name string - The username of the scope.
- domain_
id str - domain_
name str - id str
- name str
- project_
domain_ strid - The domain ID of the project.
- project_
domain_ strname - 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[Get
Identity Auth Scope V3Role] - A list of roles in the current scope. See reference below.
- user_
domain_ strid - The domain ID of the user.
- user_
domain_ strname - The domain name of the user.
- user_
id str - The user ID the of the scope.
- user_
name str - The username of the scope.
- domain
Id String - domain
Name String - id String
- name String
- project
Domain StringId - The domain ID of the project.
- project
Domain StringName - 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<Property Map>
- A list of roles in the current scope. See reference below.
- user
Domain StringId - The domain ID of the user.
- user
Domain StringName - The domain name of the user.
- user
Id String - The user ID the of the scope.
- user
Name String - The username of the scope.
Supporting Types
GetIdentityAuthScopeV3Role
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