1. Packages
  2. Auth0 Provider
  3. API Docs
  4. getTokenExchangeProfile
Auth0 v3.17.0 published on Wednesday, Apr 9, 2025 by Pulumi

auth0.getTokenExchangeProfile

Explore with Pulumi AI

Auth0 v3.17.0 published on Wednesday, Apr 9, 2025 by Pulumi

Data source to retrieve a specific Auth0 Token Exchange Profile by id

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";

// An Auth0 Token Exchange Profile loaded using its ID.
const myProfile = auth0.getTokenExchangeProfile({
    id: "tep_Tnvl88SKv98TkMmr",
});
Copy
import pulumi
import pulumi_auth0 as auth0

# An Auth0 Token Exchange Profile loaded using its ID.
my_profile = auth0.get_token_exchange_profile(id="tep_Tnvl88SKv98TkMmr")
Copy
package main

import (
	"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// An Auth0 Token Exchange Profile loaded using its ID.
		_, err := auth0.LookupTokenExchangeProfile(ctx, &auth0.LookupTokenExchangeProfileArgs{
			Id: "tep_Tnvl88SKv98TkMmr",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;

return await Deployment.RunAsync(() => 
{
    // An Auth0 Token Exchange Profile loaded using its ID.
    var myProfile = Auth0.GetTokenExchangeProfile.Invoke(new()
    {
        Id = "tep_Tnvl88SKv98TkMmr",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.Auth0Functions;
import com.pulumi.auth0.inputs.GetTokenExchangeProfileArgs;
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) {
        // An Auth0 Token Exchange Profile loaded using its ID.
        final var myProfile = Auth0Functions.getTokenExchangeProfile(GetTokenExchangeProfileArgs.builder()
            .id("tep_Tnvl88SKv98TkMmr")
            .build());

    }
}
Copy
variables:
  # An Auth0 Token Exchange Profile loaded using its ID.
  myProfile:
    fn::invoke:
      function: auth0:getTokenExchangeProfile
      arguments:
        id: tep_Tnvl88SKv98TkMmr
Copy

Using getTokenExchangeProfile

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 getTokenExchangeProfile(args: GetTokenExchangeProfileArgs, opts?: InvokeOptions): Promise<GetTokenExchangeProfileResult>
function getTokenExchangeProfileOutput(args: GetTokenExchangeProfileOutputArgs, opts?: InvokeOptions): Output<GetTokenExchangeProfileResult>
Copy
def get_token_exchange_profile(id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetTokenExchangeProfileResult
def get_token_exchange_profile_output(id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetTokenExchangeProfileResult]
Copy
func LookupTokenExchangeProfile(ctx *Context, args *LookupTokenExchangeProfileArgs, opts ...InvokeOption) (*LookupTokenExchangeProfileResult, error)
func LookupTokenExchangeProfileOutput(ctx *Context, args *LookupTokenExchangeProfileOutputArgs, opts ...InvokeOption) LookupTokenExchangeProfileResultOutput
Copy

> Note: This function is named LookupTokenExchangeProfile in the Go SDK.

public static class GetTokenExchangeProfile 
{
    public static Task<GetTokenExchangeProfileResult> InvokeAsync(GetTokenExchangeProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetTokenExchangeProfileResult> Invoke(GetTokenExchangeProfileInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTokenExchangeProfileResult> getTokenExchangeProfile(GetTokenExchangeProfileArgs args, InvokeOptions options)
public static Output<GetTokenExchangeProfileResult> getTokenExchangeProfile(GetTokenExchangeProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: auth0:index/getTokenExchangeProfile:getTokenExchangeProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The id of the Token Exchange Profile
Id This property is required. string
The id of the Token Exchange Profile
id This property is required. String
The id of the Token Exchange Profile
id This property is required. string
The id of the Token Exchange Profile
id This property is required. str
The id of the Token Exchange Profile
id This property is required. String
The id of the Token Exchange Profile

getTokenExchangeProfile Result

The following output properties are available:

ActionId string
Unique identifier of the Action
CreatedAt string
The ISO 8601 formatted date the credential was created.
Id string
The id of the Token Exchange Profile
Name string
Name of the token exchange profile.
SubjectTokenType string
Type of the subject token
Type string
Type of the token exchange profile
UpdatedAt string
The ISO 8601 formatted date the credential was updated.
ActionId string
Unique identifier of the Action
CreatedAt string
The ISO 8601 formatted date the credential was created.
Id string
The id of the Token Exchange Profile
Name string
Name of the token exchange profile.
SubjectTokenType string
Type of the subject token
Type string
Type of the token exchange profile
UpdatedAt string
The ISO 8601 formatted date the credential was updated.
actionId String
Unique identifier of the Action
createdAt String
The ISO 8601 formatted date the credential was created.
id String
The id of the Token Exchange Profile
name String
Name of the token exchange profile.
subjectTokenType String
Type of the subject token
type String
Type of the token exchange profile
updatedAt String
The ISO 8601 formatted date the credential was updated.
actionId string
Unique identifier of the Action
createdAt string
The ISO 8601 formatted date the credential was created.
id string
The id of the Token Exchange Profile
name string
Name of the token exchange profile.
subjectTokenType string
Type of the subject token
type string
Type of the token exchange profile
updatedAt string
The ISO 8601 formatted date the credential was updated.
action_id str
Unique identifier of the Action
created_at str
The ISO 8601 formatted date the credential was created.
id str
The id of the Token Exchange Profile
name str
Name of the token exchange profile.
subject_token_type str
Type of the subject token
type str
Type of the token exchange profile
updated_at str
The ISO 8601 formatted date the credential was updated.
actionId String
Unique identifier of the Action
createdAt String
The ISO 8601 formatted date the credential was created.
id String
The id of the Token Exchange Profile
name String
Name of the token exchange profile.
subjectTokenType String
Type of the subject token
type String
Type of the token exchange profile
updatedAt String
The ISO 8601 formatted date the credential was updated.

Package Details

Repository
Auth0 pulumi/pulumi-auth0
License
Apache-2.0
Notes
This Pulumi package is based on the auth0 Terraform Provider.
Auth0 v3.17.0 published on Wednesday, Apr 9, 2025 by Pulumi