ByCloud Docs
GuidesCLIAPISDK

List service account policies

bycloud iam service-accounts-policies list --service_account_id <service_account_id> [flags]

List all policies attached to a service account

Options

--service_account_id

stringrequired

Service Account ID

--output

(-o)

stringoptional

Output format: text, json, or yaml

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

Default: "text"

Command

bycloud iam service-accounts-policies list \
--service_account_id "abc-123"

Output

ID CRN NAME DESCRIPTION DOCUMENT.VERSION
550e8400-e29b-41d4-a716-446655 crn::iam:policy:550e8400-e29b- S3BucketAccess Allow read/write access to spe 2024-01-01
550e8400-e29b-41d4-a716-446655 crn::iam:policy:550e8400-e29b- S3BucketAccess Allow read/write access to spe 2024-01-01