Skip to main content
Manage service accounts For a detailed overview, please visit the service account’s reference page.

serviceaccount access-report

Show the access report for the referenced service account Usage
Common Options Reference

serviceaccount add-key

Add a key to the reference service account Usage
Common Options Reference
The ‘key’ property returned from the add-key command will only be displayed once. There is no way to retrieve the key in the future.

serviceaccount audit

Retrieve audit trail events for the referenced service account Usage
Common Options Reference

serviceaccount clone

Create a clone of the referenced service account; this will only duplicate its spec. Usage
Common Options Reference

serviceaccount create

Create a new service account Usage
Common Options Reference

serviceaccount delete

Delete one or more referenced service accounts Usage
Deleting a service account will remove all associated keys
Common Options Reference

serviceaccount edit

Edit the referenced service account, as YAML, within an editor Usage
The default editor can be set by using the EDITOR environment variable.
Common Options Reference

serviceaccount eventlog

Show the event log of the referenced service account Usage
Common Options Reference

serviceaccount get

Retrieve one or more referenced service accounts Usage
An empty reference will return all references
Common Options Reference
  • Get all service accounts
  • Get one service account
  • Get multiple service accounts

serviceaccount patch

Update the referenced service account’s metadata using an input file Usage
Running this command with the option --file - sets the input to stdin. The input is required to be a valid JSON or YAML string (e.g., {"description": "My new description"} or description: My new description). To complete the update, press Control-D (or Control-Z if you are using Windows).
Common Options Reference

serviceaccount permissions

Show the grantable permissions for a service account object type Usage
Common Options Reference

serviceaccount query

Find all the service accounts based on the given query Usage
Common Options Reference
Use the --match option to display all, none, or any of the results based on a given property or tag
  • Search for a service account based on the name property
  • Search for a service account based on the description property
  • Search for a service account based on a tag
  • Search for a service account based on a property and tag

serviceaccount remove-key

Remove a key from the reference service account Usage
Common Options Reference
  • For the example below, the created service account key is:
  • Remove key

serviceaccount tag

Manage the tags belonging to one or more referenced service accounts Usage
Built-in tags, which begin with cpln/*, can’t be modified.
Common Options Reference
  • Add a tag to a service account
  • Update same tag (after running the example above)
  • Remove tag (after running the example above)
  • Add same tag to multiple service accounts
  • Update same tag on multiple service accounts (after running the example above)
  • Remove same tag from multiple service accounts (after running the example above)