Skip to main content

tcb role get

v3.0.0+

The tcb role command has been available since v3.0.0.

Query the details of the specified role.

Usage​

tcb role get --id <roleId> [options]
tcb role get --identity <identity> [options]
tcb role get --name <name> [options]

Parameters​

Select one of the three query methods (required):

ParameterDescription
--id <roleId>Exact match by role ID
--identity <identity>Exact match by role identifier
--name <name>Fuzzy match by role name
--detailDisplay members and policy details
-e, --env-id <envId>Environment ID

Examples​

# Query by ID
tcb role get --id 2032299359962361858 -e my-env-id

# Query by identifier (including details)
tcb role get --identity administrator --detail -e my-env-id