ByCloud Docs
GuidesCLIAPISDK

List API keys

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

List all API keys for 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-keys list \
--service_account_id "abc-123"

Output

ID CRN NAME ACCESS_KEY_ID LAST_USED_AT
550e8400-e29b-41d4-a716-446655 crn::iam:api-key:550e8400-e29b production-key AKIA550E8400E29B41D4 2024-01-15T10:30:00Z
550e8400-e29b-41d4-a716-446655 crn::iam:api-key:550e8400-e29b production-key AKIA550E8400E29B41D4 2024-01-15T10:30:00Z