tcb policy get
Retrieve authentication policy content (Rego format). By default, it retrieves the user-configured policy. Use --extension to retrieve the platform-configured policy for the environment.
Usage
tcb policy get [options]
Parameters
| Parameter | Description |
|---|---|
-e, --env-id <envId> | Environment ID |
--extension | Retrieve the platform-configured policy for the environment (default: user policy) |
--json | Output JSON |
Examples
# Retrieve user policy
tcb policy get -e my-env-id
# Retrieve platform extension policy
tcb policy get --extension -e my-env-id
# Output in JSON format
tcb policy get --json -e my-env-id