Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.96 KB

stackit_service-account_key_update.md

File metadata and controls

51 lines (36 loc) · 1.96 KB

stackit service-account key update

Updates a service account key

Synopsis

Updates a service account key. You can temporarily activate or deactivate the key and/or update its date of expiration.

stackit service-account key update KEY_ID [flags]

Examples

  Temporarily deactivate a key with ID "xxx" of the service account with email "[email protected]"
  $ stackit service-account key update xxx --email [email protected] --deactivate

  Activate a key of the service account with email "[email protected]"
  $ stackit service-account key update xxx --email [email protected] --activate

  Update the expiration date of a key of the service account with email "[email protected]"
  $ stackit service-account key update xxx --email [email protected] --expires-in-days 30

Options

      --activate[=true|false]     If set, activates the service account key
      --deactivate[=true|false]   If set, temporarily deactivates the service account key
  -e, --email string              Service account email
      --expires-in-days int       Number of days until expiration
  -h, --help[=true|false]         Help for "stackit service-account key update"

Options inherited from parent commands

  -y, --assume-yes[=true|false]   If set, skips all confirmation prompts
      --async[=true|false]        If set, runs the command asynchronously
  -o, --output-format string      Output format, (one of: [json, pretty, none, yaml])
  -p, --project-id string         Project ID
      --region string             Target region for region-specific requests
      --verbosity string          Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")

SEE ALSO