Creating Service Accounts using the VGS CLI
CLI Authentication with Service Accounts
VGS_CLIENT_ID=<SERVICE_ACCOUNT_CLIENT_ID>
VGS_CLIENT_SECRET=<SERVICE_ACCOUNT_CLIENT_SECRET>Creating Service Accounts
vgs generate service-account -t vgs-cli > service_account.yamlapiVersion: 1.0.0
kind: ServiceAccount
data:
# Maximum amount of time before an access token expires, in seconds. (Defaults to
# 5 minutes.)
accessTokenLifespan: 300
# List of vaults which service account should have access to.
vaults:
- tntcs7thayd
# Non-unique name of the Service Account.
name: vgs-cli
# Scopes allow a Service Account to perform specific CLI commands.
scopes:
- name: access-logs:read
- name: organizations:read
- name: routes:write
- name: vaults:write
# An access token will not contain optional scopes unless the user requests them
# explicitly.
- name: financial-instruments:write
optional: true
- name: transfers:write
optional: true
- name: orders:write
optional: trueName
Deleting Service Accounts
Last updated

