2.1. Managing Tokens

2.1.1. vinfra node token show

Display the backend token:

usage: vinfra node token show

Example:

# vinfra node token show
+-------+---------------+
| Field | Value         |
+-------+---------------+
| host  | 10.37.130.101 |
| token | dc56d4d2      |
| ttl   | 86398         |
+-------+---------------+

This command shows the details of the current token.

2.1.2. vinfra node token create

Create the backend token:

usage: vinfra node token create [--ttl <ttl>]
--ttl <ttl>
Token TTL, in seconds

Example:

# vinfra node token create --ttl 86400
+-------+---------------+
| Field | Value         |
+-------+---------------+
| host  | 10.37.130.101 |
| token | dc56d4d2      |
| ttl   | 86398         |
+-------+---------------+

This command creates a new token with the time to live (TTL) of 86400 seconds.

2.1.3. vinfra node token validate

Validate the backend token:

usage: vinfra node token validate <token>
<token>
Token value

Example:

# vinfra node token validate dc56d4d2
+--------+-------+
| Field  | Value |
+--------+-------+
| status | valid |
+--------+-------+

This command validates the token dc56d4d2.