vault api get token from cli code example
Example 1: lookup token information in vault
#Vault renew token duration
vault token renew --increment=30m <TOKEN>
Example 2: lookup token information in vault
#Lookup for Token Information in vault
vault token lookup <TOKEN>
#By default Duration is 768h and it comes from where? check with below command
vault read sys/auth/token/tune