Create Secret
Create a new SecretRequest
POST /vault_secretsExample Request
Parameters
Name | Type | Description |
---|---|---|
name | string | Name of secret |
value | string | Value of secret |
metadata | string | Arbitrary user-defined metadata for this Secret |
description | string | description of Secret |
vault_id | string | unique identifier of the referenced vault |
Response
Returns a 201 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
id | string | identifier for Secret |
uri | string | URI of this Secret API resource |
created_at | string | Timestamp when the Secret was created (RFC 3339 format) |
updated_at | string | Timestamp when the Secret was last updated (RFC 3339 format) |
name | string | Name of secret |
description | string | description of Secret |
metadata | string | Arbitrary user-defined metadata for this Secret |
created_by | Ref | Reference to who created this Secret |
last_updated_by | Ref | Reference to who created this Secret |
vault | Ref | Reference to the vault the secret is stored in |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
Update Secret
Update an existing Secret by IDRequest
PATCH /vault_secrets/{id}Example Request
Parameters
Name | Type | Description |
---|---|---|
id | string | identifier for Secret |
name | string | Name of secret |
value | string | Value of secret |
metadata | string | Arbitrary user-defined metadata for this Secret |
description | string | description of Secret |
Response
Returns a 200 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
id | string | identifier for Secret |
uri | string | URI of this Secret API resource |
created_at | string | Timestamp when the Secret was created (RFC 3339 format) |
updated_at | string | Timestamp when the Secret was last updated (RFC 3339 format) |
name | string | Name of secret |
description | string | description of Secret |
metadata | string | Arbitrary user-defined metadata for this Secret |
created_by | Ref | Reference to who created this Secret |
last_updated_by | Ref | Reference to who created this Secret |
vault | Ref | Reference to the vault the secret is stored in |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
Delete Secret
Delete a SecretRequest
DELETE /vault_secrets/{id}Example Request
Response
Returns a 204 response with no body on successGet Secret
Get a Secret by IDRequest
GET /vault_secrets/{id}Example Request
Response
Returns a 200 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
id | string | identifier for Secret |
uri | string | URI of this Secret API resource |
created_at | string | Timestamp when the Secret was created (RFC 3339 format) |
updated_at | string | Timestamp when the Secret was last updated (RFC 3339 format) |
name | string | Name of secret |
description | string | description of Secret |
metadata | string | Arbitrary user-defined metadata for this Secret |
created_by | Ref | Reference to who created this Secret |
last_updated_by | Ref | Reference to who created this Secret |
vault | Ref | Reference to the vault the secret is stored in |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |
List Secrets
List all Secrets owned by accountRequest
GET /vault_secretsExample Request
Response
Returns a 200 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
secrets | Secret | The list of Secrets for this account |
uri | string | |
next_page_uri | string | URI of the next page of results, or null if there is no next page |
Secret fields
Name | Type | Description |
---|---|---|
id | string | identifier for Secret |
uri | string | URI of this Secret API resource |
created_at | string | Timestamp when the Secret was created (RFC 3339 format) |
updated_at | string | Timestamp when the Secret was last updated (RFC 3339 format) |
name | string | Name of secret |
description | string | description of Secret |
metadata | string | Arbitrary user-defined metadata for this Secret |
created_by | Ref | Reference to who created this Secret |
last_updated_by | Ref | Reference to who created this Secret |
vault | Ref | Reference to the vault the secret is stored in |
Ref fields
Name | Type | Description |
---|---|---|
id | string | a resource identifier |
uri | string | a uri for locating a resource |