There is a code snippet in vault api doc:
$ curl \
--header "X-Vault-Token: ..." \
--request LIST \
http://127.0.0.1:8200/v1/ssh/roles
What is LIST method in http request? I have never heard about this http method before.
You've never heard of LIST before because it's a custom method.
curl's --request flag sets a custom request method but in name only.
--request
Specifies a custom request method to use when communicating with the HTTP server. ... Normally you don't need this option... [it] only changes the actual word used in the HTTP request...
https://man7.org/linux/man-pages/man1/curl.1.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With