ByCloud Docs
GuidesCLIAPISDK

List roles

bycloud iam roles list [flags]

List all roles in the current organization

Options

--limit

integeroptional

Maximum number of items to return

Default: 20

--marker

stringoptional

ID of the last item from the previous page (for pagination)

--name

stringoptional

Filter by name (exact match or prefix with *)

--output

(-o)

stringoptional

Output format: text, json, or yaml

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

Default: "text"

Command

bycloud iam roles list

Output

ID CRN NAME DESCRIPTION TRUST_POLICY.PRINCIPALS
550e8400-e29b-41d4-a716-446655 crn::iam:role:550e8400-e29b-41 S3ReadOnly Read-only access to S3 buckets crn:spo1:compute:instance:*
550e8400-e29b-41d4-a716-446655 crn::iam:role:550e8400-e29b-41 S3ReadOnly Read-only access to S3 buckets crn:spo1:compute:instance:*