25 lines
572 B
Markdown
25 lines
572 B
Markdown
# General Vault Links and Commands
|
|
|
|
## Useful commands
|
|
|
|
Display the `curl` equivalent of a Vault CLI command:
|
|
|
|
```bash
|
|
vault <any_command> -output-curl-string
|
|
```
|
|
|
|
The following are equivalent:
|
|
|
|
```bash
|
|
curl -s -H "X-Vault-Request: true" -H "X-Vault-Token: $VAULT_TOKEN" "https://vault.koszewscy.waw.pl/v1/auth/userpass/users?list=true"
|
|
```
|
|
|
|
and
|
|
|
|
```bash
|
|
curl -s -X LIST -H "X-Vault-Request: true" -H "X-Vault-Token: $VAULT_TOKEN" https://vault.koszewscy.waw.pl/v1/auth/userpass/users
|
|
```
|
|
|
|
because the Vault uses non-standard HTTP method `LIST` for listing resources.
|
|
|
|
--- |