Tailor Resource Name (TRN)

This page documents the Tailor Resource Name (TRN) format, which uniquely identifies resources within a Workspace in the Tailor Platform.

Overview

A TRN (Tailor Resource Name) is a standardized identifier format used to uniquely reference resources across the Tailor Platform. TRNs provide a consistent way to identify and reference various platform resources such as TailorDB instances, Pipeline resolvers, Auth configurations, and more.

TRN Format

The TRN format follows a hierarchical structure with colon-separated components:

trn:v1:workspace:<workspace_id>:<resource_type>:<resource_name>[:<sub_resource_type>:<sub_resource_name>]...

Components

ComponentDescription
trnFixed prefix indicating this is a Tailor Resource Name
v1Version identifier for the TRN format
workspaceFixed identifier indicating the resource belongs to a workspace
<workspace_id>UUID of the workspace containing the resource
<resource_type>Type of the resource (e.g., tailordb, pipeline, auth)
<resource_name>Name or identifier of the specific resource
<sub_resource_type>Optional sub-resource type for nested resources
<sub_resource_name>Optional name of the sub-resource

Supported Resource Types

The following table lists all supported resource types and their TRN formats:

Workspace

Resource TypeTRN FormatDescription
Workspacetrn:v1:workspace:<workspace_id>The workspace itself

Application

Resource TypeTRN FormatDescription
Applicationtrn:v1:workspace:<workspace_id>:application:<app_name>An application within the workspace

TailorDB

Resource TypeTRN FormatDescription
TailorDBtrn:v1:workspace:<workspace_id>:tailordb:<namespace>A TailorDB namespace
TailorDB Typetrn:v1:workspace:<workspace_id>:tailordb:<namespace>:type:<type_name>A Type within a TailorDB namespace
TailorDB GQL Permissiontrn:v1:workspace:<workspace_id>:tailordb:<namespace>:type:<type_name>:gql_permissionGraphQL permission configuration for a Type

Pipeline

Resource TypeTRN FormatDescription
Pipelinetrn:v1:workspace:<workspace_id>:pipeline:<pipeline_name>A Pipeline service instance
Pipeline Resolvertrn:v1:workspace:<workspace_id>:pipeline:<pipeline_name>:resolver:<resolver_name>A resolver within a Pipeline

Auth

Resource TypeTRN FormatDescription
Authtrn:v1:workspace:<workspace_id>:auth:<auth_name>An Auth service instance
Machine Usertrn:v1:workspace:<workspace_id>:auth:<auth_name>:machine_user:<user_name>A machine user for service-to-service authentication
OAuth2 Clienttrn:v1:workspace:<workspace_id>:auth:<auth_name>:oauth2_client:<client_name>An OAuth2 client configuration
SCIM Configtrn:v1:workspace:<workspace_id>:auth:<auth_name>:scim_configSCIM provisioning configuration
SCIM Resourcetrn:v1:workspace:<workspace_id>:auth:<auth_name>:scim_resource:<resource_name>A SCIM resource
User Profiletrn:v1:workspace:<workspace_id>:auth:<auth_name>:user_profileUser profile configuration
IdP Configtrn:v1:workspace:<workspace_id>:auth:<auth_name>:idp_config:<config_name>Identity Provider configuration

IdP

Resource TypeTRN FormatDescription
IdPtrn:v1:workspace:<workspace_id>:idp:<idp_name>A Built-in Identity Provider instance
IdP Clienttrn:v1:workspace:<workspace_id>:idp:<idp_name>:client:<client_name>A client within the Built-in IdP

Vault

Resource TypeTRN FormatDescription
Vaulttrn:v1:workspace:<workspace_id>:vault:<vault_name>A Vault (Secret Manager) instance
Vault Secrettrn:v1:workspace:<workspace_id>:vault:<vault_name>:secret:<secret_name>A secret within a Vault

Executor

Resource TypeTRN FormatDescription
Executortrn:v1:workspace:<workspace_id>:executor:<executor_name>An Executor service instance

Workflow

Resource TypeTRN FormatDescription
Workflowtrn:v1:workspace:<workspace_id>:workflow:<workflow_name>A Workflow definition
Workflow Job Functiontrn:v1:workspace:<workspace_id>:workflow_job_function:<function_name>A job function used in workflows

StateFlow

Resource TypeTRN FormatDescription
StateFlowtrn:v1:workspace:<workspace_id>:stateflow:<stateflow_name>A StateFlow definition (deprecated)

Static Website

Resource TypeTRN FormatDescription
Static Websitetrn:v1:workspace:<workspace_id>:staticwebsite:<website_name>A static website hosting configuration

Examples

TailorDB TRN

trn:v1:workspace:17838a28-8563-4b79-8305-7df3ba730af6:tailordb:my-namespace

This TRN identifies a TailorDB namespace called my-namespace in the workspace with ID 17838a28-8563-4b79-8305-7df3ba730af6.

TailorDB Type TRN

trn:v1:workspace:17838a28-8563-4b79-8305-7df3ba730af6:tailordb:my-namespace:type:User

This TRN identifies a Type called User within the my-namespace TailorDB namespace.

Pipeline Resolver TRN

trn:v1:workspace:17838a28-8563-4b79-8305-7df3ba730af6:pipeline:my-pipeline:resolver:createUser

This TRN identifies a resolver called createUser within the my-pipeline Pipeline.

Vault Secret TRN

trn:v1:workspace:6085f287-9d47-4671-a530-d03c423c32bf:vault:my-vault:secret:api-key

This TRN identifies a secret called api-key within the my-vault Vault.

OAuth2 Client TRN

trn:v1:workspace:17838a28-8563-4b79-8305-7df3ba730af6:auth:my-auth:oauth2_client:web-app

This TRN identifies an OAuth2 client called web-app within the my-auth Auth service.

Workflow TRN

trn:v1:workspace:17838a28-8563-4b79-8305-7df3ba730af6:workflow:order-processing

This TRN identifies a Workflow called order-processing.