Auth0
getTenant
Use this data source to access information about the tenant this provider is configured to access.
Example Usage
using Pulumi;
using Auth0 = Pulumi.Auth0;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Auth0.GetTenant.InvokeAsync());
}
}
package main
import (
"github.com/pulumi/pulumi-auth0/sdk/v2/go/auth0"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := auth0.LookupTenant(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = Output.of(Auth0Functions.getTenant());
}
}
import pulumi
import pulumi_auth0 as auth0
current = auth0.get_tenant()
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
const current = pulumi.output(auth0.getTenant());
variables:
current:
Fn::Invoke:
Function: auth0:getTenant
Arguments: {}
Using getTenant
function getTenant(opts?: InvokeOptions): Promise<GetTenantResult>
def get_tenant(opts: Optional[InvokeOptions] = None) -> GetTenantResult
func LookupTenant(ctx *Context, opts ...InvokeOption) (*LookupTenantResult, error)
> Note: This function is named LookupTenant
in the Go SDK.
public static class GetTenant
{
public static Task<GetTenantResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetTenantResult> getTenant(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: auth0:index/getTenant:getTenant
Arguments:
# Arguments dictionary
getTenant Result
The following output properties are available:
- Domain string
String. Your Auth0 domain name.
- Id string
The provider-assigned unique ID for this managed resource.
- Management
Api stringIdentifier String. The identifier value of the built-in Management API resource server, which can be used as an audience when configuring client grants.
- Domain string
String. Your Auth0 domain name.
- Id string
The provider-assigned unique ID for this managed resource.
- Management
Api stringIdentifier String. The identifier value of the built-in Management API resource server, which can be used as an audience when configuring client grants.
- domain String
String. Your Auth0 domain name.
- id String
The provider-assigned unique ID for this managed resource.
- management
Api StringIdentifier String. The identifier value of the built-in Management API resource server, which can be used as an audience when configuring client grants.
- domain string
String. Your Auth0 domain name.
- id string
The provider-assigned unique ID for this managed resource.
- management
Api stringIdentifier String. The identifier value of the built-in Management API resource server, which can be used as an audience when configuring client grants.
- domain str
String. Your Auth0 domain name.
- id str
The provider-assigned unique ID for this managed resource.
- management_
api_ stridentifier String. The identifier value of the built-in Management API resource server, which can be used as an audience when configuring client grants.
- domain String
String. Your Auth0 domain name.
- id String
The provider-assigned unique ID for this managed resource.
- management
Api StringIdentifier String. The identifier value of the built-in Management API resource server, which can be used as an audience when configuring client grants.
Package Details
- Repository
- https://github.com/pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
auth0
Terraform Provider.