astroctl organization service-account keys
Issue, list and revoke a service account's API keys
Synopsis
Issue, list and revoke the API keys of a service account.
Keys authenticate as the service account, with its role. A key's secret is shown once, when it is issued.
Terminal
astroctl organization service-account keys [flags]
Examples
Terminal
# Issue a key valid for 30 days
astroctl org service-account keys create ci --duration 720h
# List a service account's keys
astroctl org service-account keys list ci
# Revoke one
astroctl org service-account keys revoke ci 1ffd91a0-70c2-4592-b2db-8d9910817e58
Options
Terminal
-h, --help help for keys
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl organization service-account - Manage the service accounts of the active organization
- astroctl organization service-account keys create - Issue an API key to a service account
- astroctl organization service-account keys list - List a service account's API keys
- astroctl organization service-account keys revoke - Revoke a service account's API key