token

POST /gateway/v2/token

Generally Available

Create a new token for given service account and a given virtual cluster.

If the vcluster is not provided, the token will be created for the passthrough virtual cluster.

Request

Request body

vClusterstring

The name of the virtual cluster to create the token for. "passthrough if omitted"

usernamestring required

The username of the local service account to create the token for.

lifeTimeSecondsinteger required

The life time of the token in seconds.

Response

tokenstring required

The token created for the given username on the given virtual cluster.

Changes

No recorded changes to this operation across all 1 revision of this API.