Skip to main content

tcb policy get

Retrieve Rego authentication policy content. By default, it retrieves the user-defined policy. Use --extension to retrieve the platform-injected policy.

Usage​

tcb policy get [options]

Parameters​

ParameterDescription
-e, --env-id <envId>Environment ID
--extensionRetrieve the platform-injected policy (read-only extension rules); defaults to the user-defined policy
--jsonOutput JSON

Examples​

# Retrieve the user-defined policy
tcb policy get -e my-env-id

# Retrieve the platform-injected policy
tcb policy get --extension -e my-env-id

# Output in JSON format
tcb policy get --json -e my-env-id