From 307cc20712a28e004e326078d149ac0eb9c90bea Mon Sep 17 00:00:00 2001 From: Kamol Hasan Date: Mon, 8 Apr 2019 18:45:53 +0600 Subject: [PATCH] Correct gcp api doc --- website/source/api/secret/gcp/index.html.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/source/api/secret/gcp/index.html.md b/website/source/api/secret/gcp/index.html.md index a34341e97..475e81c34 100644 --- a/website/source/api/secret/gcp/index.html.md +++ b/website/source/api/secret/gcp/index.html.md @@ -265,7 +265,7 @@ $ curl \ | 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 be used in GCP API calls, e.g. `curl -H "Authorization: Bearer $TOKEN" ...` @@ -284,7 +284,7 @@ do not apply. $ curl \ --header "X-Vault-Token: ..." \ --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 @@ -308,7 +308,7 @@ $ curl \ | 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 want to specify different values for these params. @@ -340,7 +340,7 @@ or the system default if config was not defined. $ curl \ --header "X-Vault-Token: ..." \ --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 @@ -348,7 +348,7 @@ $ curl \ --header "X-Vault-Token: ..." \ --request POST \ --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