GetAuthScope

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

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var scope = Output.Create(OpenStack.Identity.GetAuthScope.InvokeAsync(new OpenStack.Identity.GetAuthScopeArgs
        {
            Name = "my_scope",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

scope = openstack.identity.get_auth_scope(name="my_scope")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const scope = pulumi.output(openstack.identity.getAuthScope({
    name: "my_scope",
}, { async: true }));

Using GetAuthScope

function getAuthScope(args: GetAuthScopeArgs, opts?: InvokeOptions): Promise<GetAuthScopeResult>
function  get_auth_scope(name=None, region=None, opts=None)
func GetAuthScope(ctx *Context, args *GetAuthScopeArgs, opts ...InvokeOption) (*GetAuthScopeResult, error)
public static class GetAuthScope {
    public static Task<GetAuthScopeResult> InvokeAsync(GetAuthScopeArgs args, InvokeOptions? opts = null)
}

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.

Region string

The region in which to obtain the V3 Identity client. A Identity client is needed to retrieve tokens IDs. If omitted, the region argument of the provider is used.

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.

Region string

The region in which to obtain the V3 Identity client. A Identity client is needed to retrieve tokens IDs. If omitted, the region argument of the provider is used.

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.

region string

The region in which to obtain the V3 Identity client. A Identity client is needed to retrieve tokens IDs. If omitted, the region argument of the provider is used.

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.

region str

The region in which to obtain the V3 Identity client. A Identity client is needed to retrieve tokens IDs. If omitted, the region argument of the provider is used.

GetAuthScope Result

The following output properties are available:

DomainId string

The domain ID of the scope.

DomainName string

The domain name of the scope.

Id string

The provider-assigned unique ID for this managed resource.

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<Pulumi.OpenStack.Identity.Outputs.GetAuthScopeRole>

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.

DomainName string

The domain name of the scope.

Id string

The provider-assigned unique ID for this managed resource.

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 []GetAuthScopeRole

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.

domainName string

The domain name of the scope.

id string

The provider-assigned unique ID for this managed resource.

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 GetAuthScopeRole[]

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.

domain_name str

The domain name of the scope.

id str

The provider-assigned unique ID for this managed resource.

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 List[GetAuthScopeRole]

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.

Supporting Types

GetAuthScopeRole

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

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.

roleName str

The name of the role.

role_id str

The ID of the role.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.