ByCloud Docs
GuidesCLIAPISDK

Get role

bycloud iam roles get --role_id <role_id> [flags]

Get details of a specific role

Options

--role_id

stringrequired

Role ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

Values: "text", "json", "yaml"

Default: "text"

Command

bycloud iam roles get \
--role_id "abc-123"

Output

ID 550e8400-e29b-41d4-a716-446655440000
CRN crn::iam:role:550e8400-e29b-41d4-a716-446655440000
NAME S3ReadOnly
DESCRIPTION Read-only access to S3 buckets
TRUST_POLICY
PRINCIPALS crn:spo1:compute:instance:*
POLICY_IDS 550e8400-e29b-41d4-a716-446655440000, 550e8400-e29b-41d4-a716-446655440000
CREATED_AT 2024-01-15T10:30:00Z
UPDATED_AT 2024-01-15T10:30:00Z