ByCloud Docs
GuidesCLIAPISDK

Get service account

bycloud iam service-accounts get --service_account_id <service_account_id> [flags]

Get details of a specific 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 get \
--service_account_id "abc-123"

Output

ID 550e8400-e29b-41d4-a716-446655440000
CRN crn::iam:service-account:550e8400-e29b-41d4-a716-446655440000
NAME ci-cd-pipeline
DISPLAY_NAME CI/CD Pipeline
DESCRIPTION Service account for automated deployments
ENABLED true
ROLES
[0]
ID 550e8400-e29b-41d4-a716-446655440000
NAME string
[1]
ID 550e8400-e29b-41d4-a716-446655440000
NAME string
GROUPS
[0]
ID 550e8400-e29b-41d4-a716-446655440000
NAME string
[1]
ID 550e8400-e29b-41d4-a716-446655440000
NAME string
CREATED_AT 2024-01-15T10:30:00Z
UPDATED_AT 2024-01-15T10:30:00Z