OpenStack v3.12.1, Mar 23 23
OpenStack v3.12.1, Mar 23 23
openstack.identity.getAuthScope
Explore with Pulumi AI
Example Usage
Simple
using System.Collections.Generic;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var scope = OpenStack.Identity.GetAuthScope.Invoke(new()
{
Name = "my_scope",
});
});
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identity.GetAuthScope(ctx, &identity.GetAuthScopeArgs{
Name: "my_scope",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.identity.IdentityFunctions;
import com.pulumi.openstack.identity.inputs.GetAuthScopeArgs;
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 = IdentityFunctions.getAuthScope(GetAuthScopeArgs.builder()
.name("my_scope")
.build());
}
}
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 = openstack.identity.getAuthScope({
name: "my_scope",
});
variables:
scope:
fn::invoke:
Function: openstack:identity:getAuthScope
Arguments:
name: my_scope
service catalog
Coming soon!
Coming soon!
Coming soon!
import pulumi
object_store_service = [entry for entry in data["openstack_identity_auth_scope_v3"]["scope"]["service_catalog"] if entry["type"] == "object-store"][0]
object_store_endpoint = [endpoint for endpoint in object_store_service["endpoints"] if endpoint["interface"] == "public" and endpoint["region"] == "region1"][0]
object_store_public_url = object_store_endpoint["url"]
import * as pulumi from "@pulumi/pulumi";
const objectStoreService = .filter(entry => entry.type == "object-store").map(entry => entry)[0];
const objectStoreEndpoint = .filter(endpoint => endpoint["interface"] == "public" && endpoint.region == "region1").map(endpoint => endpoint)[0];
const objectStorePublicUrl = objectStoreEndpoint.url;
Coming soon!
Using getAuthScope
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 getAuthScope(args: GetAuthScopeArgs, opts?: InvokeOptions): Promise<GetAuthScopeResult>
function getAuthScopeOutput(args: GetAuthScopeOutputArgs, opts?: InvokeOptions): Output<GetAuthScopeResult>
def get_auth_scope(name: Optional[str] = None,
region: Optional[str] = None,
set_token_id: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetAuthScopeResult
def get_auth_scope_output(name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
set_token_id: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAuthScopeResult]
func GetAuthScope(ctx *Context, args *GetAuthScopeArgs, opts ...InvokeOption) (*GetAuthScopeResult, error)
func GetAuthScopeOutput(ctx *Context, args *GetAuthScopeOutputArgs, opts ...InvokeOption) GetAuthScopeResultOutput
> Note: This function is named GetAuthScope
in the Go SDK.
public static class GetAuthScope
{
public static Task<GetAuthScopeResult> InvokeAsync(GetAuthScopeArgs args, InvokeOptions? opts = null)
public static Output<GetAuthScopeResult> Invoke(GetAuthScopeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAuthScopeResult> getAuthScope(GetAuthScopeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: openstack:identity/getAuthScope:getAuthScope
arguments:
# arguments dictionary
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.- Set
Token boolId A boolean argument that determines whether to export the current auth scope token ID. When set to
true
, thetoken_id
attribute will contain an unencrypted token that can be used for further API calls. Warning: please note that the leaked token may allow unauthorized access to other OpenStack services within the current auth scope, so use this option with caution.
- 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.- Set
Token boolId A boolean argument that determines whether to export the current auth scope token ID. When set to
true
, thetoken_id
attribute will contain an unencrypted token that can be used for further API calls. Warning: please note that the leaked token may allow unauthorized access to other OpenStack services within the current auth scope, so use this option with caution.
- 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.- set
Token BooleanId A boolean argument that determines whether to export the current auth scope token ID. When set to
true
, thetoken_id
attribute will contain an unencrypted token that can be used for further API calls. Warning: please note that the leaked token may allow unauthorized access to other OpenStack services within the current auth scope, so use this option with caution.
- 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.- set
Token booleanId A boolean argument that determines whether to export the current auth scope token ID. When set to
true
, thetoken_id
attribute will contain an unencrypted token that can be used for further API calls. Warning: please note that the leaked token may allow unauthorized access to other OpenStack services within the current auth scope, so use this option with caution.
- 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.- set_
token_ boolid A boolean argument that determines whether to export the current auth scope token ID. When set to
true
, thetoken_id
attribute will contain an unencrypted token that can be used for further API calls. Warning: please note that the leaked token may allow unauthorized access to other OpenStack services within the current auth scope, so use this option with caution.
- 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.- set
Token BooleanId A boolean argument that determines whether to export the current auth scope token ID. When set to
true
, thetoken_id
attribute will contain an unencrypted token that can be used for further API calls. Warning: please note that the leaked token may allow unauthorized access to other OpenStack services within the current auth scope, so use this option with caution.
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
The name of the service.
- 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
The region of the endpoint.
- Roles
List<Pulumi.
Open Stack. Identity. Outputs. Get Auth Scope Role> A list of roles in the current scope. See reference below.
- Service
Catalogs List<Pulumi.Open Stack. Identity. Outputs. Get Auth Scope Service Catalog> A list of service catalog entries returned with the token.
- Token
Id string The token ID of the scope.
- 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.
- Set
Token boolId
- 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
The name of the service.
- 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
The region of the endpoint.
- Roles
[]Get
Auth Scope Role A list of roles in the current scope. See reference below.
- Service
Catalogs []GetAuth Scope Service Catalog A list of service catalog entries returned with the token.
- Token
Id string The token ID of the scope.
- 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.
- Set
Token boolId
- 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
The name of the service.
- 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
The region of the endpoint.
- roles
List<Get
Auth Scope Role> A list of roles in the current scope. See reference below.
- service
Catalogs List<GetAuth Scope Service Catalog> A list of service catalog entries returned with the token.
- token
Id String The token ID of the scope.
- 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.
- set
Token BooleanId
- 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
The name of the service.
- 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
The region of the endpoint.
- roles
Get
Auth Scope Role[] A list of roles in the current scope. See reference below.
- service
Catalogs GetAuth Scope Service Catalog[] A list of service catalog entries returned with the token.
- token
Id string The token ID of the scope.
- 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.
- set
Token booleanId
- 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
The name of the service.
- 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
The region of the endpoint.
- roles
Sequence[Get
Auth Scope Role] A list of roles in the current scope. See reference below.
- service_
catalogs Sequence[GetAuth Scope Service Catalog] A list of service catalog entries returned with the token.
- token_
id str The token ID of the scope.
- 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.
- set_
token_ boolid
- 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
The name of the service.
- 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
The region of the endpoint.
- roles List<Property Map>
A list of roles in the current scope. See reference below.
- service
Catalogs List<Property Map> A list of service catalog entries returned with the token.
- token
Id String The token ID of the scope.
- 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.
- set
Token BooleanId
Supporting Types
GetAuthScopeRole
GetAuthScopeServiceCatalog
- Endpoints
List<Pulumi.
Open Stack. Identity. Inputs. Get Auth Scope Service Catalog Endpoint> A list of endpoints for the service.
- Id string
The ID of the endpoint.
- 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.
- Type string
The type of the service.
- Endpoints
[]Get
Auth Scope Service Catalog Endpoint A list of endpoints for the service.
- Id string
The ID of the endpoint.
- 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.
- Type string
The type of the service.
- endpoints
List<Get
Auth Scope Service Catalog Endpoint> A list of endpoints for the service.
- id String
The ID of the endpoint.
- 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.
- type String
The type of the service.
- endpoints
Get
Auth Scope Service Catalog Endpoint[] A list of endpoints for the service.
- id string
The ID of the endpoint.
- 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.
- type string
The type of the service.
- endpoints
Sequence[Get
Auth Scope Service Catalog Endpoint] A list of endpoints for the service.
- id str
The ID of the endpoint.
- 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.
- type str
The type of the service.
- endpoints List<Property Map>
A list of endpoints for the service.
- id String
The ID of the endpoint.
- 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.
- type String
The type of the service.
GetAuthScopeServiceCatalogEndpoint
- Id string
The ID of the endpoint.
- Interface string
The interface of the endpoint.
- 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.- Region
Id string The region ID of the endpoint.
- Url string
The URL of the endpoint.
- Id string
The ID of the endpoint.
- Interface string
The interface of the endpoint.
- 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.- Region
Id string The region ID of the endpoint.
- Url string
The URL of the endpoint.
- id String
The ID of the endpoint.
- interface_ String
The interface of the endpoint.
- 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.- region
Id String The region ID of the endpoint.
- url String
The URL of the endpoint.
- id string
The ID of the endpoint.
- interface string
The interface of the endpoint.
- 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.- region
Id string The region ID of the endpoint.
- url string
The URL of the endpoint.
- id str
The ID of the endpoint.
- interface str
The interface of the endpoint.
- 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.- region_
id str The region ID of the endpoint.
- url str
The URL of the endpoint.
- id String
The ID of the endpoint.
- interface String
The interface of the endpoint.
- 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.- region
Id String The region ID of the endpoint.
- url String
The URL of the endpoint.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
openstack
Terraform Provider.