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
| Parameter | Description |
|---|---|
-e, --env-id <envId> | Environment ID |
--extension | Retrieve the platform-injected policy (read-only extension rules); defaults to the user-defined policy |
--json | Output 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