Vault Playground
About Vault Playground
Predix Vault service runs in a controlled environment where connectivity can only be established from Predix applications. The Vault Playground provides you an environment to test the Predix Vault features from applications running outside of Predix, for example, your local environment. Using the Vault Playground, you can locally host applications and test them against the Predix Vault APIs.
Create a Vault Token
API | /provision |
URL | US-WEST environments:
|
Description | Creates a Vault token that is valid for 32 days and returns the Vault URL. |
Method | POST |
Header | None |
Parameters | None |
Response | A 200 response is returned. |
Example |
|
Store a Secret
API | v1/cubbyhole/<path> |
URL |
US-WEST environments:
<path> is the root path to your Vault service instance. |
Description | Stores a secret at the specified location |
Method | POST/ PUT |
Request | Specify a key (in JSON format) name paired with an associated value to be stored at the given path.. You can specify multiple key/value pairs. |
Header | X-Vault-Token: <token>
Where, |
Parameters | None |
Response | A 204 (No Content) response is returned. |
Example |
|
Retrieve a Secret
API | v1/cubbyhole/<path> |
URL |
US-WEST environments:
Where, |
Description | Retrieve the secret at the specified location |
Method | GET |
Request | None |
Header | X-Vault-Token: <token> Where, |
Response | A 200 response is returned. |
Example |
|
Retrieve a List of Key Names
API | v1/cubbyhole/<path> |
URL |
US-WEST environments:
Where, |
Description | Returns a list of key names at the specified location. |
Method | LIST |
Request | None |
Header | X-Vault-Token: <token> Where, |
Response | A 200 response is returned. |
Example |
|
Delete a Secret
API | v1/cubbyhole/<path> |
URL |
US-WEST environments:
Where, <path> is the root path to your Vault instance. |
Description | Deletes a secret at the specified location. |
Method | Delete |
Request | None |
Header | X-Vault-Token: <token> Where, |
Parameter | None |
Response | A 204 (No Content) response is returned. |
Example |
|