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
regionargument 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
regionargument 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
regionargument 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
regionargument of the provider is used.
GetAuthScope Result
The following output properties are available:
- Domain
Id string The domain ID of the scope.
- Domain
Name string The domain name of the scope.
- Id string
The provider-assigned unique ID for this managed resource.
- 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<Pulumi.
Open Stack. Identity. Outputs. Get Auth Scope Role> 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 The domain ID of the scope.
- Domain
Name string The domain name of the scope.
- Id string
The provider-assigned unique ID for this managed resource.
- 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
Auth Scope Role 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 The domain ID of the scope.
- domain
Name string The domain name of the scope.
- id string
The provider-assigned unique ID for this managed resource.
- 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
Auth Scope Role[] 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 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_ 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
List[Get
Auth Scope Role] 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.
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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.