Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Variable Store API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

Named values this deployment holds, for configuration to refer to instead of carrying inline.

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize

1 scopes
ScopeDescription
systemAccess to system management APIs

clientCredentials flow, token URL https://localhost:8090/oauth2/token

1 scopes
ScopeDescription
systemAccess to system management APIs

Variables​

Named values whose contents can be read back.

List variables​

GET /variables

Returns variables with their values, in ascending name order, paginated.

Narrow the result either by naming exactly what you want with names, or by matching with filter. Using both applies both.

Scopes: system

Parameters

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

namesqueryarray of EntryName

Return only these names, comma separated. For fetching a known set in one call rather than one request per name.

A name with nothing stored is simply absent from the result; asking for a name that does not exist is not an error, because the caller is asking which of these exist.

filterquerystring

Filter by name.

Supported operators: eq (equals), sw (starts with). Format: attribute operator "value". Filterable attributes: name.

The expression grammar is the one used across the APIs, but only a single clause is accepted here: there is one filterable attribute, so joining clauses with AND or OR would either contradict itself or repeat itself. Anything beyond one clause is rejected rather than partly applied.

sw is here because names in this store are conventionally prefixed by what owns them, so matching a prefix is how a caller asks for one thing's values.

Responses

CodeDescriptionSchema
200

List of variables

VariableListResponse
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
500

The store could not serve the request

Error

Add a variable​

POST /variables

Fails with 409 when a variable of that name already exists. Use PUT /variables/{name} to create or replace without caring which it is.

Scopes: system

Request body (required): application/json

Schema: VariableRequest

3 properties
NameTypeRequiredDescription
nameEntryNameYes

Letters, digits and underscores, not starting with a digit. Constrained because these names are substituted into configuration as template variables, where a name that needs escaping is a name that will eventually be got wrong.

valuestringYes
descriptionstring

Responses

CodeDescriptionSchema
201

Variable created

Variable
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
409

Something of that name already exists in this collection

Error
500

The store could not serve the request

Error

Get a variable​

GET /variables/{name}

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathEntryNameYes

The name of the variable or secret. Names are the identifier here: there is no separate id, because the whole purpose of the store is lookup by name.

Responses

CodeDescriptionSchema
200

The variable, with its value

Variable
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
404

Nothing of that name is stored

Error
500

The store could not serve the request

Error

Create or replace a variable​

PUT /variables/{name}

Idempotent: the same request twice leaves the same state. Creates when the name is unused, replaces the value and description when it is.

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathEntryNameYes

The name of the variable or secret. Names are the identifier here: there is no separate id, because the whole purpose of the store is lookup by name.

Request body (required): application/json

Schema: VariableUpdateRequest

2 properties
NameTypeRequiredDescription
valuestringYes
descriptionstring

Responses

CodeDescriptionSchema
200

Variable replaced

Variable
201

Variable created

Variable
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
500

The store could not serve the request

Error

Delete a variable​

DEL /variables/{name}

Succeeds whether or not the variable existed, so a caller cleaning up does not have to ask first. Configuration still referring to the name will fail to resolve it.

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathEntryNameYes

The name of the variable or secret. Names are the identifier here: there is no separate id, because the whole purpose of the store is lookup by name.

Responses

CodeDescriptionSchema
204

Variable deleted, or there was none

400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
500

The store could not serve the request

Error

Secrets​

Named credentials, encrypted at rest. A read reports only whether one is held.

List secrets​

GET /secrets

Returns the names this deployment holds a secret for, in ascending name order, paginated. No value is ever returned, by this or any other endpoint: a secret is written and referenced, never read back.

Narrow the result with names or filter, the same way as variables.

Scopes: system

Parameters

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

namesqueryarray of EntryName

Return only these names, comma separated. For fetching a known set in one call rather than one request per name.

A name with nothing stored is simply absent from the result; asking for a name that does not exist is not an error, because the caller is asking which of these exist.

filterquerystring

Filter by name.

Supported operators: eq (equals), sw (starts with). Format: attribute operator "value". Filterable attributes: name.

The expression grammar is the one used across the APIs, but only a single clause is accepted here: there is one filterable attribute, so joining clauses with AND or OR would either contradict itself or repeat itself. Anything beyond one clause is rejected rather than partly applied.

sw is here because names in this store are conventionally prefixed by what owns them, so matching a prefix is how a caller asks for one thing's values.

Responses

CodeDescriptionSchema
200

The secrets held. Every entry reports exists: true; a name with nothing stored is absent from the result rather than listed as not existing. The field states in the body what membership already implies, so a client reads one rather than inferring it.

SecretListResponse
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
500

The store could not serve the request

Error

Add a secret​

POST /secrets

The value is encrypted before it is stored and is not returned here or anywhere else. Fails with 409 when a secret of that name already exists; use PUT /secrets/{name} to set a value without caring whether one is already held.

Scopes: system

Request body (required): application/json

Schema: SecretRequest

3 properties
NameTypeRequiredDescription
nameEntryNameYes

Letters, digits and underscores, not starting with a digit. Constrained because these names are substituted into configuration as template variables, where a name that needs escaping is a name that will eventually be got wrong.

valuestringYes

Encrypted before it is stored, and never returned.

descriptionstring

Responses

CodeDescriptionSchema
201

Secret stored. The response reports that it is held, not what it is.

Secret
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
409

Something of that name already exists in this collection

Error
500

The store could not serve the request

Error

Check whether a secret is held​

GET /secrets/{name}

Reports whether this deployment holds a secret of that name. The value is never returned.

A name with no secret is a 404 rather than exists: false, so that "is it there?" is answered the same way as for every other resource in this API.

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathEntryNameYes

The name of the variable or secret. Names are the identifier here: there is no separate id, because the whole purpose of the store is lookup by name.

Responses

CodeDescriptionSchema
200

A secret of that name is held

Secret
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
404

Nothing of that name is stored

Error
500

The store could not serve the request

Error

Set or replace a secret​

PUT /secrets/{name}

Idempotent. Creates when no secret of that name is held, replaces the value when one is. Replacing is how a credential is rotated; the previous value is not recoverable.

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathEntryNameYes

The name of the variable or secret. Names are the identifier here: there is no separate id, because the whole purpose of the store is lookup by name.

Request body (required): application/json

Schema: SecretUpdateRequest

2 properties
NameTypeRequiredDescription
valuestringYes
descriptionstring

Responses

CodeDescriptionSchema
200

Secret replaced

Secret
201

Secret stored

Secret
400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
500

The store could not serve the request

Error

Delete a secret​

DEL /secrets/{name}

Succeeds whether or not a secret of that name was held. Configuration still referring to the name will fail to resolve it.

Scopes: system

Parameters

NameInTypeRequiredDescription
namepathEntryNameYes

The name of the variable or secret. Names are the identifier here: there is no separate id, because the whole purpose of the store is lookup by name.

Responses

CodeDescriptionSchema
204

Secret deleted, or there was none

400

The request was malformed, or a name or value failed validation

Error
401

No valid credentials were presented

Error
403

The caller is authenticated but not permitted

Error
500

The store could not serve the request

Error

Schemas​

EntryName​

Type: string

Letters, digits and underscores, not starting with a digit. Constrained because these names are substituted into configuration as template variables, where a name that needs escaping is a name that will eventually be got wrong.

Variable​

Type: object

5 properties
NameTypeRequiredDescription
nameEntryNameYes

Letters, digits and underscores, not starting with a digit. Constrained because these names are substituted into configuration as template variables, where a name that needs escaping is a name that will eventually be got wrong.

valuestringYes

The value. Returned in full, which is what makes this a variable and not a secret.

descriptionstring

What this value is for, for whoever reads the list later.

createdAtstring (date-time)
updatedAtstring (date-time)

VariableRequest​

Type: object

3 properties
NameTypeRequiredDescription
nameEntryNameYes

Letters, digits and underscores, not starting with a digit. Constrained because these names are substituted into configuration as template variables, where a name that needs escaping is a name that will eventually be got wrong.

valuestringYes
descriptionstring

VariableUpdateRequest​

Type: object

2 properties
NameTypeRequiredDescription
valuestringYes
descriptionstring

Secret​

Type: object

5 properties
NameTypeRequiredDescription
nameEntryNameYes

Letters, digits and underscores, not starting with a digit. Constrained because these names are substituted into configuration as template variables, where a name that needs escaping is a name that will eventually be got wrong.

existsbooleanYes

Whether a secret of this name is held. There is deliberately no value field anywhere in this schema: the value leaves the client once, on the way in, and never comes back.

descriptionstring
createdAtstring (date-time)
updatedAtstring (date-time)

When the value was last set, which is how a caller tells a rotation happened.

SecretRequest​

Type: object

3 properties
NameTypeRequiredDescription
nameEntryNameYes

Letters, digits and underscores, not starting with a digit. Constrained because these names are substituted into configuration as template variables, where a name that needs escaping is a name that will eventually be got wrong.

valuestringYes

Encrypted before it is stored, and never returned.

descriptionstring

SecretUpdateRequest​

Type: object

2 properties
NameTypeRequiredDescription
valuestringYes
descriptionstring

VariableListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsintegerYes
startIndexintegerYes
countintegerYes
variablesarray of VariableYes
linksarray of Link

SecretListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsintegerYes
startIndexintegerYes
countintegerYes
secretsarray of SecretYes
linksarray of Link

Type: object

2 properties
NameTypeRequiredDescription
hrefstring
relstring

I18nMessage​

Type: object

2 properties
NameTypeRequiredDescription
keystringYes
defaultValuestringYes

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code. The prefix identifies the service that produced the error; VAR for the variable store.

messageI18nMessageYes
descriptionI18nMessage

Was this page helpful?