Vault curl
Jump to navigation
Jump to search
https://www.ge.com/digital/documentation/predix-platforms/vault-service-managing-paths-secrets.html
https://developer.hashicorp.com/vault/api-docs/auth/token
curl -sS --fail -X POST -d '{"increment": "24h"}' -H "X-Vault-Token: $VAULT_TOKEN" ${VAULT_ADDR}/v1/auth/ token/renew-self
curl -sS -H "X-Vault-Token: $VAULT_TOKEN" https://vault.example.com:8200/v1/auth/token/lookup-self curl -sS --fail -X POST -d '{"increment": "145h"}' -H "X-Vault-Token: $VAULT_TOKEN" https://vault.example.com:8200/v1/auth/token/renew-self curl --request POST -d '{"token": "$VAULT_TOKEN"}' -H "X-Vault-Token: $VAULT_TOKEN" https://vault.example.com:8200/v1/auth/token/renew