Fix curl commands (#3558)

Curl commands require HCL within JSON to work.
This commit is contained in:
James Soubry 2017-11-09 15:16:09 +00:00 committed by Jeff Mitchell
parent 660c9ab382
commit f2a98cc662
1 changed files with 2 additions and 2 deletions

View File

@ -485,7 +485,7 @@ or via the API:
$ curl \ $ curl \
--request POST \ --request POST \
--header "X-Vault-Token: ..." \ --header "X-Vault-Token: ..." \
--data 'path "..." {} \' --data '{"rules":"path \"...\" {...} "}' \
https://vault.hashicorp.rocks/v1/sys/policy/my-policy https://vault.hashicorp.rocks/v1/sys/policy/my-policy
``` ```
@ -509,7 +509,7 @@ or via the API:
$ curl \ $ curl \
--request POST \ --request POST \
--header "X-Vault-Token: ..." \ --header "X-Vault-Token: ..." \
--data 'path "..." {} \' --data '{"rules":"path \"...\" {...} "}' \
https://vault.hashicorp.rocks/v1/sys/policy/my-existing-policy https://vault.hashicorp.rocks/v1/sys/policy/my-existing-policy
``` ```