tctl service-account
tctl service-account
Commands to manage TSB service accounts
Options
-h, --help help for service-account
Options inherited from parent commands
-c, --config string Path to the config file to use. Can also be
specified via TCTL_CONFIG env variable. This flag
takes precedence over the env variable.
--debug Print debug messages for all requests and responses
--disable-tctl-version-warn If set, disable the outdated tctl version warning. Can also be
specified via TCTL_DISABLE_VERSION_WARN env variable.
-p, --profile string Use specific profile (default "default")
tctl service-account create
Creates a new service account
Synopsis
Creates a new service account
This command creates a new service account with a new key pair and prints the generated private key to the standard output.
The private key should be stored securely, as it cannot be retrieved again and it is required if you want to generate authentication tokens for the service account.
tctl service-account create <name> [flags]
Options
-h, --help help for create
Options inherited from parent commands
-c, --config string Path to the config file to use. Can also be
specified via TCTL_CONFIG env variable. This flag
takes precedence over the env variable.
--debug Print debug messages for all requests and responses
--disable-tctl-version-warn If set, disable the outdated tctl version warning. Can also be
specified via TCTL_DISABLE_VERSION_WARN env variable.
-p, --profile string Use specific profile (default "default")
tctl service-account delete
Deletes a service account
Synopsis
Deletes a service account and all its keys
tctl service-account delete <name> [flags]
Options
-h, --help help for delete
Options inherited from parent commands
-c, --config string Path to the config file to use. Can also be
specified via TCTL_CONFIG env variable. This flag
takes precedence over the env variable.
--debug Print debug messages for all requests and responses
--disable-tctl-version-warn If set, disable the outdated tctl version warning. Can also be
specified via TCTL_DISABLE_VERSION_WARN env variable.
-p, --profile string Use specific profile (default "default")
tctl service-account gen-key
Generate a new key pair for the given service account
Synopsis
Generate a new key pair for the given service account
This command generates a new key pair for the service account and prints the generated private key to the standard output.
The key private key should be stored securely, as it cannot be retrieved again and it is required if you want to generate authentication tokens for the service account.
tctl service-account gen-key <name> [flags]
Options
-h, --help help for gen-key
Options inherited from parent commands
-c, --config string Path to the config file to use. Can also be
specified via TCTL_CONFIG env variable. This flag
takes precedence over the env variable.
--debug Print debug messages for all requests and responses
--disable-tctl-version-warn If set, disable the outdated tctl version warning. Can also be
specified via TCTL_DISABLE_VERSION_WARN env variable.
-p, --profile string Use specific profile (default "default")
tctl service-account get
Get one or multiple service accounts
tctl service-account get [<name>] [flags]
Options
-h, --help help for get
-o, --output-type string Response output type: table, yaml, json (default "table")
Options inherited from parent commands
-c, --config string Path to the config file to use. Can also be
specified via TCTL_CONFIG env variable. This flag
takes precedence over the env variable.
--debug Print debug messages for all requests and responses
--disable-tctl-version-warn If set, disable the outdated tctl version warning. Can also be
specified via TCTL_DISABLE_VERSION_WARN env variable.
-p, --profile string Use specific profile (default "default")
tctl service-account revoke-key
Revoke a given key pair for the given service account
tctl service-account revoke-key <name> --id <key id> [flags]
Options
-h, --help help for revoke-key
--id string ID of the key to revoke
Options inherited from parent commands
-c, --config string Path to the config file to use. Can also be
specified via TCTL_CONFIG env variable. This flag
takes precedence over the env variable.
--debug Print debug messages for all requests and responses
--disable-tctl-version-warn If set, disable the outdated tctl version warning. Can also be
specified via TCTL_DISABLE_VERSION_WARN env variable.
-p, --profile string Use specific profile (default "default")
tctl service-account token
Generate a new token that can be used to authenticate to TSB
Synopsis
Generate a new token that can be used to authenticate to TSB
This command generates a new token to authenticate to TSB as the service account. The command reads the private key from the specified file and uses it to sign the token. You can generate a new private key using the gen-key command.
tctl service-account token <name> --key-path <key file> [--expiration <expiration>] [flags]
Options
--expiration duration Expiration for the token (default 30m0s)
-h, --help help for token
--key-path string Path to the file that contains the private key to use to generate the token
Options inherited from parent commands
-c, --config string Path to the config file to use. Can also be
specified via TCTL_CONFIG env variable. This flag
takes precedence over the env variable.
--debug Print debug messages for all requests and responses
--disable-tctl-version-warn If set, disable the outdated tctl version warning. Can also be
specified via TCTL_DISABLE_VERSION_WARN env variable.
-p, --profile string Use specific profile (default "default")