Skip to main content

Secrets

Create Secret

Create a new Secret

Request

POST /vault_secrets

Example Request

Loading…

Parameters

NameTypeDescription
namestringName of secret
valuestringValue of secret
metadatastringArbitrary user-defined metadata for this Secret
descriptionstringdescription of Secret
vault_idstringunique identifier of the referenced vault

Response

Returns a 201 response on success

Example Response

Loading…

Fields

NameTypeDescription
idstringidentifier for Secret
uristringURI of this Secret API resource
created_atstringTimestamp when the Secret was created (RFC 3339 format)
updated_atstringTimestamp when the Secret was last updated (RFC 3339 format)
namestringName of secret
descriptionstringdescription of Secret
metadatastringArbitrary user-defined metadata for this Secret
created_byRefReference to who created this Secret
last_updated_byRefReference to who created this Secret
vaultRefReference to the vault the secret is stored in

Ref fields

NameTypeDescription
idstringa resource identifier
uristringa uri for locating a resource

Update Secret

Update an existing Secret by ID

Request

PATCH /vault_secrets/{id}

Example Request

Loading…

Parameters

NameTypeDescription
idstringidentifier for Secret
namestringName of secret
valuestringValue of secret
metadatastringArbitrary user-defined metadata for this Secret
descriptionstringdescription of Secret

Response

Returns a 200 response on success

Example Response

Loading…

Fields

NameTypeDescription
idstringidentifier for Secret
uristringURI of this Secret API resource
created_atstringTimestamp when the Secret was created (RFC 3339 format)
updated_atstringTimestamp when the Secret was last updated (RFC 3339 format)
namestringName of secret
descriptionstringdescription of Secret
metadatastringArbitrary user-defined metadata for this Secret
created_byRefReference to who created this Secret
last_updated_byRefReference to who created this Secret
vaultRefReference to the vault the secret is stored in

Ref fields

NameTypeDescription
idstringa resource identifier
uristringa uri for locating a resource

Delete Secret

Delete a Secret

Request

DELETE /vault_secrets/{id}

Example Request

Loading…

Response

Returns a 204 response with no body on success

Get Secret

Get a Secret by ID

Request

GET /vault_secrets/{id}

Example Request

Loading…

Response

Returns a 200 response on success

Example Response

Loading…

Fields

NameTypeDescription
idstringidentifier for Secret
uristringURI of this Secret API resource
created_atstringTimestamp when the Secret was created (RFC 3339 format)
updated_atstringTimestamp when the Secret was last updated (RFC 3339 format)
namestringName of secret
descriptionstringdescription of Secret
metadatastringArbitrary user-defined metadata for this Secret
created_byRefReference to who created this Secret
last_updated_byRefReference to who created this Secret
vaultRefReference to the vault the secret is stored in

Ref fields

NameTypeDescription
idstringa resource identifier
uristringa uri for locating a resource

List Secrets

List all Secrets owned by account

Request

GET /vault_secrets

Example Request

Loading…

Response

Returns a 200 response on success

Example Response

Loading…

Fields

NameTypeDescription
secretsSecretThe list of Secrets for this account
uristring
next_page_uristringURI of the next page of results, or null if there is no next page

Secret fields

NameTypeDescription
idstringidentifier for Secret
uristringURI of this Secret API resource
created_atstringTimestamp when the Secret was created (RFC 3339 format)
updated_atstringTimestamp when the Secret was last updated (RFC 3339 format)
namestringName of secret
descriptionstringdescription of Secret
metadatastringArbitrary user-defined metadata for this Secret
created_byRefReference to who created this Secret
last_updated_byRefReference to who created this Secret
vaultRefReference to the vault the secret is stored in

Ref fields

NameTypeDescription
idstringa resource identifier
uristringa uri for locating a resource