.. _Managing Tokens: Managing Tokens --------------- .. _vinfra node token show: vinfra node token show ~~~~~~~~~~~~~~~~~~~~~~ Display the backend token: :: usage: vinfra node token show Example: This command shows the details of the current token. :: # vinfra node token show +-------+---------------+ | Field | Value | +-------+---------------+ | host | 10.37.130.101 | | token | dc56d4d2 | | ttl | 86398 | +-------+---------------+ .. _vinfra node token create: vinfra node token create ~~~~~~~~~~~~~~~~~~~~~~~~ Create the backend token: :: usage: vinfra node token create [--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. .. _vinfra node token validate: vinfra node token validate ~~~~~~~~~~~~~~~~~~~~~~~~~~ Validate the backend token: :: usage: vinfra node token validate ```` Token value Example: :: # vinfra node token validate dc56d4d2 +--------+-------+ | Field | Value | +--------+-------+ | status | valid | +--------+-------+ This command validates the token ``dc56d4d2``.