Skip to main content

astroctl organization service-account keys revoke

Revoke a service account's API key

Synopsis​

Revoke an API key of a service account. It stops authenticating at once; the record stays in the list, marked revoked. Find the ID with 'keys list'.

Terminal
astroctl organization service-account keys revoke <account> <key-id> [flags]

Examples​

Terminal

# Revoke (asks first; --yes skips the question)
astroctl org service-account keys revoke ci 1ffd91a0-70c2-4592-b2db-8d9910817e58

astroctl org service-account keys revoke ci 1ffd91a0-70c2-4592-b2db-8d9910817e58 --yes

Options​

Terminal
-h, --help help for revoke
-o, --output string Output format (table|wide|json|yaml) (default "table")
-y, --yes Revoke without asking

SEE ALSO​