Fix curl commands (#3558)
Curl commands require HCL within JSON to work.
This commit is contained in:
parent
660c9ab382
commit
f2a98cc662
|
@ -485,7 +485,7 @@ or via the API:
|
|||
$ curl \
|
||||
--request POST \
|
||||
--header "X-Vault-Token: ..." \
|
||||
--data 'path "..." {} \'
|
||||
--data '{"rules":"path \"...\" {...} "}' \
|
||||
https://vault.hashicorp.rocks/v1/sys/policy/my-policy
|
||||
```
|
||||
|
||||
|
@ -509,7 +509,7 @@ or via the API:
|
|||
$ curl \
|
||||
--request POST \
|
||||
--header "X-Vault-Token: ..." \
|
||||
--data 'path "..." {} \'
|
||||
--data '{"rules":"path \"...\" {...} "}' \
|
||||
https://vault.hashicorp.rocks/v1/sys/policy/my-existing-policy
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue