From fa592624a362ab9831a949fa267a81174296be70 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Wed, 7 Jun 2017 11:11:17 +0100 Subject: [PATCH 1/2] Fix passing payload.json file to curl --- website/source/api/system/capabilities-accessor.html.md | 2 +- website/source/api/system/capabilities-self.html.md | 2 +- website/source/api/system/config-auditing.html.md | 2 +- website/source/api/system/generate-root.html.md | 4 ++-- website/source/api/system/init.html.md | 2 +- website/source/api/system/mounts.html.md | 4 ++-- website/source/api/system/policy.html.md | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/website/source/api/system/capabilities-accessor.html.md b/website/source/api/system/capabilities-accessor.html.md index 70b44942fd45..06a2bf350453 100644 --- a/website/source/api/system/capabilities-accessor.html.md +++ b/website/source/api/system/capabilities-accessor.html.md @@ -44,7 +44,7 @@ for the given path. $ curl \ --header "X-Vault-Token: ..." \ --request POST \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/capabilities-accessor ``` diff --git a/website/source/api/system/capabilities-self.html.md b/website/source/api/system/capabilities-self.html.md index 175c2b3ce9d2..4adfb96cd0dc 100644 --- a/website/source/api/system/capabilities-self.html.md +++ b/website/source/api/system/capabilities-self.html.md @@ -41,7 +41,7 @@ client token is the Vault token with which this API call is made. $ curl \ --header "X-Vault-Token: ..." \ --request POST \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/capabilities-self ``` diff --git a/website/source/api/system/config-auditing.html.md b/website/source/api/system/config-auditing.html.md index 62a0fbf31a57..d424fab31041 100644 --- a/website/source/api/system/config-auditing.html.md +++ b/website/source/api/system/config-auditing.html.md @@ -105,7 +105,7 @@ This endpoint enables auditing of a header. $ curl \ --header "X-Vault-Token: ..." \ --request PUT \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/config/auditing/request-headers/my-header ``` diff --git a/website/source/api/system/generate-root.html.md b/website/source/api/system/generate-root.html.md index e6d71f3970d0..42b12b5d6d09 100644 --- a/website/source/api/system/generate-root.html.md +++ b/website/source/api/system/generate-root.html.md @@ -81,7 +81,7 @@ generation attempt can take place at a time. One (and only one) of `otp` or ``` $ curl \ --request PUT \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/generate-root/attempt ``` @@ -148,7 +148,7 @@ nonce must be provided with each call. ``` $ curl \ --request PUT \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/generate-root/update ``` diff --git a/website/source/api/system/init.html.md b/website/source/api/system/init.html.md index e9de30ac7f28..ad3b7e61ebb3 100644 --- a/website/source/api/system/init.html.md +++ b/website/source/api/system/init.html.md @@ -94,7 +94,7 @@ Additionally, the following options are only supported on Vault Pro/Enterprise: ``` $ curl \ --request PUT \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/init ``` diff --git a/website/source/api/system/mounts.html.md b/website/source/api/system/mounts.html.md index 8b485f5ee996..653bf58e3cb1 100644 --- a/website/source/api/system/mounts.html.md +++ b/website/source/api/system/mounts.html.md @@ -108,7 +108,7 @@ relevant functionality is only supported in Vault Enterprise: $ curl \ --header "X-Vault-Token: ..." \ --request POST \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/mounts/my-mount ``` @@ -190,6 +190,6 @@ This endpoint tunes configuration parameters for a given mount point. $ curl \ --header "X-Vault-Token: ..." \ --request POST \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/mounts/my-mount/tune ``` diff --git a/website/source/api/system/policy.html.md b/website/source/api/system/policy.html.md index 7f82fee56cf8..e4a372373f76 100644 --- a/website/source/api/system/policy.html.md +++ b/website/source/api/system/policy.html.md @@ -93,7 +93,7 @@ updated, it takes effect immediately to all associated users. $ curl \ --header "X-Vault-Token: ..." \ --request PUT \ - --data payload.json \ + --data @payload.json \ https://vault.rocks/v1/sys/policy/my-policy ``` From 1ebe430969844e6f3f4bf9a5f39e0c08c87326b5 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Wed, 7 Jun 2017 14:55:15 +0100 Subject: [PATCH 2/2] Correct API endpoint --- website/source/api/system/unseal.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/api/system/unseal.html.md b/website/source/api/system/unseal.html.md index 9ba369e92605..3fd7d43a3690 100644 --- a/website/source/api/system/unseal.html.md +++ b/website/source/api/system/unseal.html.md @@ -1,9 +1,9 @@ --- layout: "api" -page_title: "/sys/seal-unseal - HTTP API" +page_title: "/sys/unseal - HTTP API" sidebar_current: "docs-http-system-unseal" description: |- - The `/sys/seal-unseal` endpoint is used to unseal the Vault. + The `/sys/unseal` endpoint is used to unseal the Vault. --- # `/sys/unseal`