Secrets

List Secrets

get

Gets a list of secrets.

Args: secret_filter_model: Filter model used for pagination, sorting, filtering. hydrate: Flag deciding whether to hydrate the output model(s) by including metadata fields in the response.

Returns: List of secret objects.

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
hydratebooleanOptionalDefault: false
sort_bystringOptionalDefault: created
logical_operatorstring · enumOptional

Logical Ops to use to combine filters on list methods.

Default: andPossible values:
pageinteger · min: 1OptionalDefault: 1
sizeinteger · min: 1 · max: 10000OptionalDefault: 20
idany ofOptional
string · uuidOptional
or
stringOptional
or
nullOptional
createdany ofOptional
string · date-timeOptional
or
stringOptional
or
nullOptional
updatedany ofOptional
string · date-timeOptional
or
stringOptional
or
nullOptional
scope_userany ofOptional
string · uuidOptional
or
nullOptional
userany ofOptional
string · uuidOptional
or
stringOptional
or
nullOptional
nameany ofOptional
stringOptional
or
nullOptional
privateany ofOptional
booleanOptional
or
nullOptional
Responses
200

Successful Response

application/json
get
/api/v1/secrets

Get Secret

get

Gets a specific secret using its unique id.

Args: secret_id: ID of the secret to get. hydrate: Flag deciding whether to hydrate the output model(s) by including metadata fields in the response.

Returns: A specific secret object.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
secret_idstring · uuidRequired
Query parameters
hydratebooleanOptionalDefault: true
Responses
200

Successful Response

application/json
get
/api/v1/secrets/{secret_id}

Update Secret

put

Updates the attribute on a specific secret using its unique id.

Args: secret_id: ID of the secret to get. secret_update: the model containing the attributes to update. patch_values: Whether to patch the secret values or replace them.

Returns: The updated secret object.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
secret_idstring · uuidRequired
Query parameters
patch_valuesany ofOptionalDefault: false
booleanOptional
or
nullOptional
Body

Update model for secrets.

nameany ofOptional
string · max: 255Optional
or
nullOptional
privateany ofOptional
booleanOptional
or
nullOptional
valuesany ofOptional
or
nullOptional
Responses
200

Successful Response

application/json
put
/api/v1/secrets/{secret_id}

Delete Secret

delete

Deletes a specific secret using its unique id.

Args: secret_id: ID of the secret to delete.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
secret_idstring · uuidRequired
Responses
200

Successful Response

application/json
Responseany
delete
/api/v1/secrets/{secret_id}

No content

Last updated

Was this helpful?