Correct gcp api doc

This commit is contained in:
Kamol Hasan 2019-04-08 18:45:53 +06:00
parent 5b26b699db
commit 307cc20712

View file

@ -265,7 +265,7 @@ $ curl \
| Method | Path | | Method | Path |
| :----------------------------- | :------------------------ | | :----------------------------- | :------------------------ |
| `GET` | `POST` | `/gcp/token/:roleset` | | `GET` / `POST` | `/gcp/token/:roleset` |
Generates an OAuth2 token with the scopes defined on the roleset. This OAuth access token can Generates an OAuth2 token with the scopes defined on the roleset. This OAuth access token can
be used in GCP API calls, e.g. `curl -H "Authorization: Bearer $TOKEN" ...` be used in GCP API calls, e.g. `curl -H "Authorization: Bearer $TOKEN" ...`
@ -284,7 +284,7 @@ do not apply.
$ curl \ $ curl \
--header "X-Vault-Token: ..." \ --header "X-Vault-Token: ..." \
--request GET \ --request GET \
https://127.0.0.1:8200/v1/consul/gcp/roleset/my-token-roleset https://127.0.0.1:8200/v1/gcp/token/my-token-roleset
``` ```
### Sample Response ### Sample Response
@ -308,7 +308,7 @@ $ curl \
| Method | Path | | Method | Path |
| :----------------------------- | :------------------------ | | :----------------------------- | :------------------------ |
| `GET` | `POST` | `/gcp/key/:roleset` | | `GET` / `POST` | `/gcp/key/:roleset` |
If using `GET` ('read'), the optional parameters will be set to their defaults. Use `POST` if you If using `GET` ('read'), the optional parameters will be set to their defaults. Use `POST` if you
want to specify different values for these params. want to specify different values for these params.
@ -340,7 +340,7 @@ or the system default if config was not defined.
$ curl \ $ curl \
--header "X-Vault-Token: ..." \ --header "X-Vault-Token: ..." \
--request GET \ --request GET \
https://127.0.0.1:8200/v1/gcp/roleset/my-token-roleset https://127.0.0.1:8200/v1/gcp/key/my-key-roleset
``` ```
```sh ```sh
@ -348,7 +348,7 @@ $ curl \
--header "X-Vault-Token: ..." \ --header "X-Vault-Token: ..." \
--request POST \ --request POST \
--data @payload.json \ --data @payload.json \
https://127.0.0.1:8200/v1/gcp/roleset/my-token-roleset https://127.0.0.1:8200/v1/gcp/key/my-key-roleset
``` ```
### Sample Response ### Sample Response