accessor hashicorp vault code example
Example 1: 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
Example 2: lookup token information in vault
#Vault renew token duration
vault token renew --increment=30m <TOKEN>
Example 3: create orphan token in vault
#Create a Orphan Token
vault token create -orphan
#check if got created
vault token lookup <TOKEN>