BPC Core - all endpoints
This page lists all endpoints of the BPC base installation (BPC Core). General information on APIs, such as authentication and authorization, and a list of all API resources are described under BPC APIs.
Audit Log API
The audit log collects information on user activities within the application. These endpoints allow to post custom audit logs and to get a link to the monitor corresponding to the audit log.
| Method | Endpoint | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||
Description To create a new audit log entry, send a JSON message with the following structure:
Hint: 'externalReference' is optional and must be a JSON object when used. For calls from Iguasu the following HTTP headers are used and their values written to the following 'externalReference' object fields:
|
||||||||||
Returns HTTP Status Code
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Redirects the user to the monitor using the audit log OpenSearch index. All provided query params are used to build a monitor filter on fields of the 'externalReference' object. For Iguasu the following query parameters can be used to access the HTTP header values when the entry has been created.
|
||||||||||
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights Can be used without a user session. |
Authentication API
The Authentication API handles the processes of verifying a user’s identity and managing their session within the system.
| Method | Endpoint |
|---|---|
|
|
Description Check if the user session is valid. This function check the presence of an ssoToken. If a token was found, it is checked on the identity provider. If no token is found or the check was negative 401 "UNAUTHORIZED" will be sent back. If the token was confirmed by the provider 200 OK will be sent. |
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Destroys the current user session. |
|
Returns HTTP Status Code
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Destroy all user sessions. |
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Destroys a specific user session. |
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Form based login. Forwarding credentials to identity provider. If login was ok, the ssoToken will be placed as cookie in response and the information from provider will be forwarded as JSON. |
|
Consumes
|
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Form based update of an existing session with the given tenant name. |
|
Consumes
|
|
Form Parameters
|
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Set the provided language in the user session. When Keycloak is used as IdP, the language gets set in the Keycloak user profile (locale). |
|
Path Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Forwards the provided body to the user self service of the currently used identity provider. |
|
Consumes
|
|
Returns The response of the user self service HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Form based update of the users password. In case the IdP does not support updating user passwords, the user self Service is used. Form params to provide:
|
|
Consumes
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Impersonate a user. Works only when Keycloak is used as identity provider. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-users and impersonation) |
|
Path Parameters
|
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get user info by access token. Can only be used with an OpenID Connect provider. CURL example with 'bearer' as access token type
|
|
Consumes
|
|
Path Parameters
|
|
Form Parameters
|
|
Returns The requested user info as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
BOM API
The Bill-of-Materials (BOM) is an aggregation of all software dependencies the BPC modules/bundles have. These endpoints allow to list, retrieve, download and force-reload all available BOMs.
To get listed the modules/bundles must place their BOM to the file /META-INF/bom.json.
| Method | Endpoint |
|---|---|
|
|
Description Forces a re-load of the BOMs. |
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get the BOMs of all BPC bundles. |
|
Returns The requested BOMs. Example response:
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get just the symbolic names of BPC bundles with BOMs. |
|
Returns The requested list. Example response:
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get the BOM of a specific BPC bundle by its symbolic name. |
|
Path Parameters
|
|
Returns The content of the HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Download the BOM of a specific BPC bundle by its symbolic name. |
|
Path Parameters
|
|
Returns The content of the HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
Backups API
These endpoints allow to create, delete, restore and retrieve BPC backups.
| Method | Endpoint |
|---|---|
|
|
Description Get a list of all backups/snapshots as JSON. |
|
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Creates a backup/snapshot of the BPC configuration index |
|
Returns The backup/snapshot info as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Creates a backup/snapshot of the indices related to a backup job. |
|
Path Parameters
|
|
Returns The backup/snapshot info as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get the data of a specific backup/snapshot. |
|
Path Parameters
|
|
Returns The requested backup/snapshot data as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Delete a specific backup/snapshot. |
|
Path Parameters
|
|
Returns The info of the deleted backup/snapshot as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Restores and activates a specific backup/snapshot. |
|
Path Parameter
|
|
Returns Some infos about the restored and activated backup/snapshot as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Restores but does not activate a specific backup/snapshot. |
|
Path Parameters
|
|
Query Parameters
|
|
Returns Some infos about the restored backup/snapshot as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Download the content of a backup/snapshot. |
|
Path Parameters
|
|
Returns The requested data as JSON. Uses the HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Export the content of a |
|
Path Parameters
|
|
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
Configuration API
These endpoints allow to retrieve, delete and post configurations for BPC modules and module instances.
| Method | Endpoint |
|---|---|
|
|
Description Get a complete version of the BPC configuration. It will contain all modules, instances and their settings, but restricted to the rights the user has. Each module provides the default configuration of itself and for instances. Additionally, some metadata like the model version and infos about the used
|
|
Returns The requested data as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get a compact version of the BPC configuration. It will contain all modules, instances and their settings, but restricted to the rights the user has.
And it will return only the settings were the Additionally, the metadata about the model version is provided.
|
|
Returns The requested data as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get the base BPC configuration to initialize the frontend. |
|
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Generates unique IDs using "SHA-256". The result is a 256bit long UUID as HEX String. |
|
Query Parameters
|
|
Returns The requested UUIDs as JSON array. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Generates a unique API key using "SHA-256" (256bit long UUID as HEX String) and the ID of the API key. example response
|
|
Returns The requested data as JSON object. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get a new instance ID for the provided module and module type. |
|
Path Parameters
|
|
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get the configuration of a specific module. The result contains the settings of the module, but restricted to the rights the user has. Additionally, the default configuration of itself and for instances is provided. Contains a compact list of instances with the ID, type and name when it is an instantiable module.
|
|
Path Parameters
|
|
Returns The requested data as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get the configuration of a specific module instance. In case the configuration of an instance is requested, just the settings the user has access rights for are returned.
In case the configuration of a module is requested, it returns the same as the endpoint without the |
|
Path Parameters
|
|
Returns The requested data as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Set the module configuration provided in the body. |
|
Consumes
|
|
Path Parameters
|
|
Query Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Set the module instance configuration provided in the body. |
|
Consumes
|
|
Path Parameters
|
|
Query Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Delete a single setting from a module instance. If this instance has a default value for this setting, the default will be restored. |
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Delete a list of settings (provided in the body) from a module instance. |
|
Consumes
|
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Delete a specific module instance. |
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Performs a connection test on a specific module instance. Additional data to perform can be provided in the POST body as JSON object. |
|
Consumes
|
|
Path Parameters
|
|
Returns The error result as JSON, nothing when successful HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get the JSON schema to validate a JSON based module setting. |
|
Parameters Path
|
|
Returns The requested data as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get the JSON schema to validate a JSON based module instance setting. |
|
Parameters Path
|
|
Returns The requested data as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
Configuration File API
These endpoints allow to set properties in the BPC related Karaf properties file: etc/de.virtimo.bpc.core.cfg
| Method | Endpoint |
|---|---|
|
|
Description Sets a property in the local BPC related Karaf properties file: Required Role and Right:
|
|
Path Parameters
|
|
Query Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Sets a property in the remote BPC related Karaf properties file: |
|
Path Parameters
|
|
Query Parameters
|
|
Returns The response of the remote BPC. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
Data Lock API
The data lock endpoints are tightly tied to OpenSearch (responses). Please try to use the storage endpoints instead.
| Method | Endpoint |
|---|---|
|
|
Description Get data lock items from the OpenSearch index |
|
Query Parameters
|
|
Returns The requested items as JSON (1:1 OpenSearch response) HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get a specific data lock item from the OpenSearch index |
|
Path Parameters
|
|
Returns The requested item as JSON (1:1 OpenSearch response) HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Sets the provided data for a specific item. The body data is written to the OpenSearch index |
|
Consumes
|
|
Path Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Updates an item with the provided data in the body. The item gets updated in the OpenSearch index |
|
Consumes
|
|
Parameters Path
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Deletes a specific item from the OpenSearch index |
|
Consumes
|
|
Path Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
Deployment API
The deployment functionality allows to transfer configurations of one BPC instance to another.
| Method | Endpoint |
|---|---|
|
|
Description Get a list of all deployment systems (= backend connections of type 'deployment_system'). |
|
Returns The requested data as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get the diff of a source deployment system or snapshot and a target deployment system. |
|
Query Parameters
|
|
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get the diff of deployment source and target settings provided in the body content. Body:
|
|
Returns The diff as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Deploys the body content to the target system. |
|
Consumes
|
|
Query Parameters
|
|
Returns The deployment processing instructions as JSON file to download when the HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Processes the deployment instructions provided by the body content. |
|
Consumes
|
|
Query Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description To download specific bundles (JAR/WAR files) by their IDs as mime multipart data. Body:
|
|
Consumes
|
|
Returns The bundles as mime multipart data HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description To download a specific bundle (JAR/WAR files) by its ID. |
|
Path Parameters
|
|
Returns The bundle as data stream HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Imports the bundles provided by multipart form data. curl example
|
|
Consumes
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Special endpoint to import a single bundle from ExtJS by using multipart form data. |
|
Consumes
|
|
Returns ExtJS conform status info with the filename HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Deployment diffs can only be done when both systems use the same model version. This endpoint converts the model configurations provided in the content body to the model version of this installation. |
|
Consumes
|
|
Returns The migrated module configurations as JSON HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Copy an index from one deployment system to another. |
|
Path Parameters
|
|
Query Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get a list of OpenSearch indices. |
|
Returns the index infos HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get some infos of an index to deploy. |
|
Path Parameters
|
|
Returns the index info with its settings and mapping HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Downloads the first block of data from the given index. |
|
Path Parameters
|
|
Query Parameters
|
|
Returns the requested data HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Downloads the subsequent block of data from the given index. |
|
Path Parameters
|
|
Returns the requested data HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description To release a no longer used scroll identifier. This helps OpenSearch to release resources much faster. |
|
Path Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Prepares an index for upload. Creates it with the given settings and mapping. Body:
|
|
Consumes
|
|
Path Parameters
|
|
Query Parameters
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Feed an index with the uploaded data. Body:
|
|
Consumes
|
|
Parameters Path
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
Event API
BPC has an event system to inform clients of certain events to trigger corresponding actions. This API allows to post events that can be received by targeted BPC users.
| Method | Endpoint |
|---|---|
|
|
Description To send a new event, send a JSON message with the following structure:
Fields
|
|
Consumes
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
Flow API
Flow is a special case of HTTP proxy functionality used for the connection with the process engines IGUASU and INUBIT.
This API provides endpoints to make GET, POST, PUT and DELETE requests using these specialized proxies.
| Method | Endpoint |
|---|---|
|
|
Description Perform an HTTP GET on the given flow instance. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called Flow system |
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP POST on the given flow instance. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called Flow system |
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP PUT on the given flow instance. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called Flow system |
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP DELETE on the given flow instance. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called Flow system |
|
Required Access Rights A logged in user or API Key is required. |
Frontend Logging API
The aim of the Frontend Log Service is to make client-side logging (e.g. JavaScript console outputs) accessible within the backend. This API provides an endpoint to post these logs.
| Method | Endpoint |
|---|---|
|
|
Description Saves the logs provided in the body to the OpenSearch index |
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
Global Search API
These are the endpoints for the global search frontend.
| Method | Endpoint |
|---|---|
|
|
Description Performs a search over multiple indices and modules. |
|
Path Parameters
|
|
Query Parameters
|
|
Returns The response for the global search. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
Http Proxy API
The BPC allows to setup HTTP proxy connections to make calls through the applications,
e.g. to reach external resources which need authentication or can only be reached via a proxy.
These endpoints allow to make calls using the defined HTTP proxies.
The API supports the following HTTP methods: GET, POST, PUT, DELETE, PATCH and OPTIONS.
| Method | Endpoint |
|---|---|
|
|
Description Perform an HTTP GET on the 'http proxy' backend connection. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called backend connection HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP POST on the 'http proxy' backend connection. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called backend connection HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP PUT on the 'http proxy' backend connection. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called backend connection HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP DELETE on the 'http proxy' backend connection. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called backend connection HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP OPTIONS on the 'http proxy' backend connection. Note: As OPTIONS requests are always proxied, an introspection of this endpoint using OPTIONS is not possible. |
|
Path Parameters
|
|
Query Parameters
|
|
Returns The response of the called backend connection HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Perform an HTTP PATCH on the 'http proxy' backend connection. |
|
Parameters Path
|
|
Query Parameters
|
|
Returns The response of the called backend connection HTTP Status Code
|
|
Required Access Rights A logged in user or API Key is required. |
Identity Management API
These endpoints allow to interact with the configured identity provider.
Please note, that not all functions are supported by all identity providers. In case a function is not supported, an UnsupportedOperationException gets thrown. All calls - except the GET methods - are logged in the audit log.
| Method | Endpoint |
|---|---|
|
|
Description Get a list of all users as JSON. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, query-users |
|
Returns The requested data as JSON. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Add a user by providing the data as JSON in the body. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users Example body
|
|
Consumes
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Update a user by providing the data as JSON in the body. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users Example body
|
|
Consumes
|
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Update the password of a user. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users Example form
|
|
Path Parameters
|
|
Form Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Delete a user. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users |
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get all organizations as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, view-users, query-groups |
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get all roles as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-realm, view-realm, query-clients, query-users, query-groups, query-realms, manage-clients, view-clients |
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get all rights as a JSON array. |
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Get the organizations of a user as JSON an array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, (view-users AND query-users) |
|
Path Parameters
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Add an organization to a user by providing the data as JSON in the body. Example body
|
|
Consumes
|
|
Parameters Path
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Delete the organization of a user. |
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get the roles of a user as a JSON array. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, (view-users AND query-users) |
|
Path Parameters
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Add a role to a user by providing the data as JSON in the body. Example body
|
|
Consumes
|
|
Parameters Path
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Delete the role of a user. |
|
Consumes
|
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get the rights of a user as a JSON array. |
|
Parameters Path
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Add a right to a user by providing the data as JSON in the body. Example body
|
|
Consumes
|
|
Parameters Path
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Delete the right of a user. |
|
Consumes
|
|
Path Parameters
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get the data of a user. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, manage-users, (query-users and view-users) |
|
Path Parameters
|
|
Returns The requested data. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
Internationalization API
These endpoints allow to retrieve available languages and translations.
| Method | Endpoint |
|---|---|
|
|
Description Get the languages used by the translations. |
|
Query Parameters
|
|
Returns The languages as JSON. Example response when
Example response when only_keys=true
HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Get all supported languages. |
|
Query Parameters
|
|
Returns The languages as JSON. Example response when
Example response when only_keys=true
HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Forces a re-load of the translations. |
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get all translations for a specific language. This is a collection of the translations found in all
modules/bundles and the ones from our custom translations setting |
|
Path Parameters
|
|
Query Parameters
|
|
Returns JSON object with the translations. The keys are sorted in ascending order. HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Checks if the provided language is known to the backend. Returns the default/fallback language if not. |
|
Path Parameters
|
|
Returns The given language when valid, otherwise the default language. Example response
HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
Log Service API
The log service allows to store data in OpenSearch indices and databases. After configuring log service instances, these endpoints can be used to create, update and delete log entries.
| Method | Endpoint | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||
Description Get a compact overview of the available log service instances. Only the following data is returned for each instance:
|
||||||||||
Returns The log service instances as JSON. HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Get the current configuration of the log service instance. |
||||||||||
Parameters Path
|
||||||||||
Returns The requested config as JSON. HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Gets the data of a log service instance. |
||||||||||
Parameters Path
|
||||||||||
Query Parameters
|
||||||||||
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Get the data of a log service entry with its child entries. |
||||||||||
Path Parameter
|
||||||||||
Query Parameter
|
||||||||||
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Get the data of a log service child entry. |
||||||||||
Path Parameter
|
||||||||||
Returns The requested data as JSON. HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Writes the data provided in the body to OpenSearch and/or the database. For calls from Iguasu the following HTTP headers are used and their values written to the following 'externalReference' object fields of all 'parent' related documents:
|
||||||||||
Consumes
|
||||||||||
Path Parameter
|
||||||||||
Query Parameter
|
||||||||||
Returns HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Deletes log service entries and their child entries from OpenSearch and the database. Attention: When you use 'childQuery' and/or 'childFilter' only those children get deleted, not the parent itself. |
||||||||||
Path Parameter
|
||||||||||
Query Parameter
|
||||||||||
Returns HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Deletes log service child entries from OpenSearch and the database. |
||||||||||
Path Parameter
|
||||||||||
Returns HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Deletes log service entries and their child entries from OpenSearch by query. Deletion from database is not supported. |
||||||||||
Consumes
|
||||||||||
Path Parameter
|
||||||||||
Query Parameter
|
||||||||||
Returns HTTP Status Code
Content-Type
|
||||||||||
Required Access Rights The logged in user or API Key must have either the following role or right.
|
||||||||||
|
||||||||||
Description Deletes only log service child entries from OpenSearch by query. Deletion from database is not supported. |
||||||||||
Consumes
|
||||||||||
Path Parameter
|
||||||||||
Query Parameter
|
|Method |Endpoint
1+a|Description
Get all configured loggers with their currently set log level.
1+a|Returns
The requested data as JSON
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
LOGGERS_ADMIN -
Right :
LOGGERS_LIST_ALL
1+a|Description
Get a list of valid log levels.
1+a|Returns
The requested data as JSON
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
LOGGERS_ADMIN -
Right :
LOGGERS_LIST_VALID_LEVELS
1+a|Description
Set the log level of a specific logger.
1+a|Form Parameters
logger-
the name of the logger to set the log level for
level-
the log level to set. Like INFO, WARN, ERROR, …
1+a|Returns
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
LOGGERS_ADMIN -
Right :
LOGGERS_SET_LEVEL
[#lookup_joins_api] == Lookup Joins API Lookup joins are used in the replication process to replicate data from Databases, where the replicated data lies in multiple tables. [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
Refresh the lookup joins data of all replication jobs and log Services related indices.
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
LOOKUP_JOINS_ADMIN -
Right :
LOOKUP_JOINS_REFRESH_ALL
1+a|Description
Refresh the lookup joins data of a replication job related index.
1+a|Path Parameters
replicationJobId-
the ID of the replication job
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
LOOKUP_JOINS_ADMIN -
Right :
LOOKUP_JOINS_REFRESH
1+a|Description
Refresh the lookup joins data of a log service related index.
1+a|Path Parameters
logServiceId-
the ID of the log service
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
LOOKUP_JOINS_ADMIN -
Right :
LOOKUP_JOINS_REFRESH
1+a|Description
Clears the internally used lookup joins caches.
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
LOOKUP_JOINS_ADMIN -
Right :
LOOKUP_JOINS_CLEAR_CACHE
[#notification_api] == Notification API The BPC has a notification functionality to inform users. This API contains endpoints to use this notification system, e.g. to send, update, delete and retrieve notifications. [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
To add a notification, send a JSON message with the following structure:
{
"subject": "Replication problem",
"message": "The database 'postgresql' is not reachable",
"recipients": [ "bpcadmin" ],
"recipientsType": "role"
}
{
"priority": 10,
"subject": "API expires soon",
"message": "API Key API-39e889a expires soon. Please contact your administrator.",
"recipients": [ "bpcadmin" ],
"recipientsType": "role",
"icon": "fa-file-certificate",
"type": "link",
"typeSpecificData": {
"targetModule": "_core",
"route" : ["_core", "apiKeys", "api", "API-39e889a"]
}
}
Fields
id(optional)-
ID of the notification. A random UUID gets set when not given.
priority(optional)-
Delivery priority of the notification. Can be one of the following values: 0 (Silent), 5 (Toast), 10 (Popup). 5 gets used when not given.
subject(required)-
The subject of the notification.
message(optional)-
The message of the notification.
recipients(required)-
The recipients of the notification. Depends on the used
recipientsType. recipientsType(required)-
The recipients type of the notification. Can be one of the following values:
user,roleororganisation. originator(optional)-
The originator of the notification. The login name of the user session gets used when not given.
icon(optional)-
The Font Awesome icon which should be used when showing the notification.
type(optional)-
The type of the notification. The type 'info' gets used when not given. Other possibility are 'warn', 'error', 'link', etc. Depending on the type, the notification is displayed accordingly in the GUI (see also Notification types and display in the interface).
typeSpecificData(optional)-
The additional type specific data of the notification.
1+a|Consumes
-
application/json
1+a|Returns
The added notification as JSON. Contains additionally the 'date' and 'version' fields which get automatically set/updated.
HTTP Status Code
-
200: OK -
404: Required service was not found -
500: Unexpected backend error -
503: Maintenance mode is active
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
NOTIFICATION_ADMIN -
Right :
NOTIFICATION_ADD
1+a|Description
To update a notification, send a JSON message with the following structure:
{
"subject": "Replication problem",
"message": "The database 'postgresql' is not reachable",
"recipients": [ "bpcadmin" ],
"recipientsType": "role"
}
{
"priority": 10,
"subject": "API expires soon",
"message": "API Key API-39e889a expires soon. Please contact your administrator.",
"recipients": [ "bpcadmin" ],
"recipientsType": "role",
"icon": "fa-file-certificate",
"type": "link",
"typeSpecificData": {
"targetModule": "_core",
"route" : ["_core", "apiKeys", "api", "API-39e889a"]
}
}
Fields
priority(optional)-
Delivery priority of the notification. Can be one of the following values: 0 (Silent), 5 (Toast), 10 (Popup). 5 gets used when not given.
subject(required)-
The subject of the notification.
message(optional)-
The message of the notification.
recipients(required)-
The recipients of the notification. Depends on the used
recipientsType. recipientsType(required)-
The recipients type of the notification. Can be one of the following values:
user,roleororganisation. originator(optional)-
The originator of the notification. The login name of the user session gets used when not given.
icon(optional)-
The Font Awesome icon which should be used when showing the notification.
type(optional)-
The type of the notification. The type 'info' gets used when not given. Other possibility are 'warn', 'error', 'link', etc. Depending on the type, the notification is displayed accordingly in the GUI (see also Notification types and display in the interface).
typeSpecificData(optional)-
The additional type specific data of the notification.
1+a|Consumes
-
application/json
1+a|Path Parameters
notificationId-
the ID of the notification to update
1+a|Returns
The updated notification as JSON. Contains additionally the 'date' and 'version' fields which get automatically set/updated.
HTTP Status Code
-
200: OK -
404: Required service was not found -
500: Unexpected backend error -
503: Maintenance mode is active
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
NOTIFICATION_ADMIN -
Right :
NOTIFICATION_UPDATE
1+a|Description
Delete a specific notification.
1+a|Path Parameters
notificationId-
the ID of the notification to delete
1+a|Returns
The deleted notification as JSON.
HTTP Status Code
-
200: OK -
404: Missing resource:-
Required service was not found
-
Requested notification was not found
-
-
500: Unexpected backend error -
503: Maintenance mode is active
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
NOTIFICATION_ADMIN -
Right :
NOTIFICATION_DELETE
1+a|Description
Get the data of a notification.
1+a|Path Parameters
notificationId-
the ID of the notification to get the data for
1+a|Returns
The data of the requested notification as JSON.
HTTP Status Code
-
200: OK -
404: Missing resource:-
Required service was not found
-
Requested notification was not found or no access rights
-
-
500: Unexpected backend error -
503: Maintenance mode is active
Content-Type
-
application/json
1+a|Required Access Rights
A logged in user or API Key is required.
1+a|Description
Get the notification of the requesting user.
1+a|Query Parameters
- `start`parameters
-
paging start parameter. Default is
0. limit-
number of notifications to get. Default is
1000.
1+a|Returns
The requested notifications of the user as JSON.
HTTP Status Code
-
200: OK -
404: Required service was not found -
500: Unexpected backend error -
503: Maintenance mode is active
Content-Type
-
application/json
1+a|Required Access Rights
A logged in user or API Key is required.
[#opensearch_api] == OpenSearch API These endpoints allow to list, delete and reindex OpenSearch indices as well as to receive index mappings. [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
Get a list of all OpenSearch indices.
1+a|Returns
The requested data as JSON
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
OPENSEARCH_ADMIN -
Right :
OPENSEARCH_LIST_INDICES
1+a|Description
Get a compact list of OpenSearch indices. Can be used for example in a combo box.
1+a|Returns
The requested data as JSON
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
A logged in user or API Key is required.
1+a|Description
Get the settings and mappings of an OpenSearch index.
1+a|Path Parameters
indexName-
the name of the index
1+a|Returns
The requested data as JSON
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
OPENSEARCH_ADMIN -
Right :
OPENSEARCH_GET_MAPPING
1+a|Description
Delete an OpenSearch index.
1+a|Path Parameters
indexName-
the name of the index to delete
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
OPENSEARCH_ADMIN -
Right :
OPENSEARCH_DELETE_INDEX
1+a|Description
Get the information what a reindex action would do with the index settings and mappings.
1+a|Parameters Path
indexName-
the name of the index
1+a|Query Parameters
copyIndexMapping-
trueto copy the index mapping, otherwisefalse. Default istrue. copyMetaData-
trueto copy the meta data, otherwisefalse. Default istrue.
1+a|Returns
The old and new index settings and mappings as JSON
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
OPENSEARCH_ADMIN -
Right :
OPENSEARCH_REINDEX
1+a|Description
Perform a reindex action.
1+a|Path Parameters
indexName-
the name of the index to reindex
1+a|Query Parameters
copyIndexMapping-
trueto copy the index mapping, otherwisefalse. Default istrue. copyMetaData-
trueto copy the meta data, otherwisefalse. Default istrue. deleteSourceIndexAfterwards-
trueto delete the source index afterwards,falseto close it instead. Default isfalse.
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
OPENSEARCH_ADMIN -
Right :
OPENSEARCH_REINDEX
[#performance_measurement_api] == Performance Measurement API The BPC performs performance monitoring to record runtimes in the BPC frontend. Measurements can be transmitted using this endpoint. [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
Saves the measurements provided in the body to the OpenSearch index bpc-performance.
1+a|Path Parameters
sessionId-
the id of the session
1+a|Returns
HTTP Status Code
-
204: No content
1+a|Required Access Rights
A logged in user or API Key is required.
[#replication_api] == Replication API These endpoints allow to control the replication from a Database to OpenSearch. [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
Get the replication jobs with runtime stats indexing into the given OpenSearch index. The response will be compact and used by the BPC monitor frontend.
This endpoint has no access rights check currently, because it gets called from the frontend monitor.
1+a|Path Parameters
dataIndex-
the name of the OpenSearch index
1+a|Returns
The requested data as JSON
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Restarts a replication job.
1+a|Path Parameters
replicationJobId-
the ID of the replication job
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
REPLICATION_ADMIN -
Right :
REPLICATION_JOB_RESTART
1+a|Description
Forced start of a replication job.
1+a|Path Parameters
replicationJobId-
the ID of the replication job
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
REPLICATION_ADMIN -
Right :
REPLICATION_JOB_FORCED_START
1+a|Description
Manual start of a tail sync job.
1+a|Path Parameters
replicationJobId-
the ID of the replication job
1+a|Returns
HTTP Status Code
-
200: OK
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
REPLICATION_ADMIN -
Right :
REPLICATION_JOB_TAILSYNC_START
[#server_api] == Server API These endpoints allow to list all BPC instances in a cluster and to retrieve information about a specific instance. Please be sure that every BPC server in the cluster uses a unique UUID.
This is done by the setting [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
Get the UUIDs of the BPC servers in the cluster.
1+a|Returns
The requested data as JSON.
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
SERVER_ADMIN -
Right :
SERVER_GET_UUIDS
1+a|Description
Get detailed info of a BPC server in the cluster.
1+a|Path Parameters
uuid-
the UUID of the BPC server to get the infos for
1+a|Returns
The requested data as JSON.
HTTP Status Code
-
200: OK -
404: Requested server not found
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Role :
SERVER_ADMIN -
Right :
SERVER_GET_INFO
[#status_api] == Status API The Status API allows to retrieve certain status information (e.g. availability, healthiness) of the BPC. [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
Get the status of the local BPC server.
1+a|Returns
Depending on the user session more or less data is returned as JSON.
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get the status of a remote BPC server.
1+a|Path Parameters
serverUUID-
the UUID of the BPC server to get the status for
1+a|Returns
The requested data as JSON.
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get the following health infos in one call:
-
status of loaded bundles
-
maintenance mode status
-
license status
-
OpenSearch status
-
Identity-Provider status (if endpoint is configured)
1+a|Returns
HTTP Status Code
-
200: All health status are fine -
503: At least one health status is not fine
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get the status of all loaded BPC modules/bundles.
1+a|Returns
HTTP Status Code
-
200: Karaf is running and all BPC modules are not in state 'Resolved' and not in state 'Failure` -
503: At least one BPC module is in state 'Resolved' or 'Failure'
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get the maintenance mode status.
1+a|Returns
HTTP Status Code
-
200: BPC is not in maintenance mode -
503: BPC is in maintenance mode
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get the health status of the identity provider.
The idp health endpoint can be configured by the setting identityProvider_healthEndpoint.
If the setting is not configured, this endpoint signals success.
1+a|Returns
HTTP Status Code
-
200: The identity provider is healthy (or the idp health endpoint is not configured) -
503: The identity provider is not healthy
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get the license status.
1+a|Returns
HTTP Status Code
-
200: BPC license is valid -
503: BPC license is invalid
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get the OpenSearch status.
1+a|Returns
HTTP Status Code
-
200: OK -
503: The OpenSearch Service is not healthy due to one of the following reasons:-
No connection to OpenSearch
-
No nodes available
-
Cluster health status is 'red'
-
1+a|Required Access Rights
Can be used without a user session.
1+a|Description
Get a list of all sessions.
1+a|Returns
The requested data as JSON.
HTTP Status Code
-
200: OK
Content-Type
-
application/json
1+a|Required Access Rights
The logged in user or API Key must have either the following role or right.
-
Right :
getSessionStatus
1+a|Description
To check if this is the BPC master server.
1+a|Returns
HTTP Status Code
-
200: BPC is the master server -
503: BPC is not the master server
1+a|Required Access Rights
Can be used without a user session.
[#storage_api] == Storage API Modules can use the Storage API to store custom data in specific storage indices. This API provides additional filtering and read and write restrictions with respect to users, roles and organizations. [cols="10a,90a"] |
|Method |Endpoint
1+a|Description
Get store items from the OpenSearch index bpc-store-<storeId>.
Returns an empty response when the store does not exist.
1+a|Path Parameters
storeId-
the ID of the store to get the items from
1+a|Query Parameters
timezoneOffset-
timezone offset like
GMT+2(optional). Is used if a date field is accessed in thefilterwith a range operator like "gt", "gte", "lt", "lte", ">", ">=", "<", "<=". UTC is the default.timezoneNameis used beforetimezoneOffsetif both are set. timezoneName-
timezone name like
Europe/Berlin(optional). Is used if a date field is accessed in thefilterwith a range operator like "gt", "gte", "lt", "lte", ">", ">=", "<", "<=". UTC is the default. <INLINE_CODE_12/> is used before <INLINE_CODE_13/> if both are set.<NL/><INLINE_CODE_14/>:: first record to be read (optional, default = 0). Default is <INLINE_CODE_15/>.<NL/><INLINE_CODE_16/>:: number of records to read (optional, default = 1000, max. 10,000). Default is <INLINE_CODE_17/>.<NL/><INLINE_CODE_18/>:: simple search (optional). Example <INLINE_CODE_19/>. Additional information of the <URL_0>Lucene Query String Syntax</URL_0>.<NL/><INLINE_CODE_20/>:: complex filter format like done from the monitor endpoint (optional). Example: <INLINE_CODE_21/><NL/><INLINE_CODE_22/>:: determination by which field the entries should be sorted (optional). Format: fieldname\<PIPE/>[ASC\<PIPE/>DESC]. Example: <INLINE_CODE_23/>. Multiple sorting instructions can be specified comma separated.<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Returns</BOLD></BOLD><NL/><NL/>The requested store items as JSON<NL/><NL/>HTTP Status Code<NL/><NL/>- <INLINE_CODE_24/> : OK<NL/>- <INLINE_CODE_25/> : OpenSearch service not found<NL/>- <INLINE_CODE_26/> : Failure due to one of the following reasons:<NL/><NL/><BP_0/>Given JSON could not be parsed<NL/><BP_1/>Something went wrong while accessing OpenSearch<NL/><NL/><NL/>Content-Type<NL/><NL/>- <INLINE_CODE_27/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Required Access Rights</BOLD></BOLD><NL/><NL/><INCLUDE_0/><NL/><NL/><NL/>// ================================================================================================<NL/><NL/><BLOCK_TITLE/>5+<PIPE/> <ADMONITION_1> <INLINE_CODE_28/></ADMONITION_1><PIPE/> <INLINE_CODE_29/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Description</BOLD></BOLD><NL/><NL/>Get a specific store item from the OpenSearch index <INLINE_CODE_30/>.<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Path Parameters</BOLD></BOLD><NL/><NL/><INLINE_CODE_31/>:: the ID of the store to get the data from<NL/><INLINE_CODE_32/>:: the ID of the item<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Returns</BOLD></BOLD><NL/><NL/>The requested store item as JSON<NL/><NL/>HTTP Status Code<NL/><NL/>- <INLINE_CODE_33/> : OK<NL/>- <INLINE_CODE_34/> : No access rights<NL/>- <INLINE_CODE_35/> : Missing resource:<NL/><NL/><BP_2/>OpenSearch service not found<NL/><BP_3/>Store not found<NL/><BP_4/>Store item not found<NL/><NL/>- <INLINE_CODE_36/> : Something went wrong while accessing OpenSearch<NL/><NL/>Content-Type<NL/><NL/>- <INLINE_CODE_37/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Required Access Rights</BOLD></BOLD><NL/><NL/><INCLUDE_1/><NL/><NL/><NL/>// ================================================================================================<NL/><NL/><BLOCK_TITLE/>6+<PIPE/> <ADMONITION_2> <INLINE_CODE_38/></ADMONITION_2><PIPE/> <INLINE_CODE_39/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Description</BOLD></BOLD><NL/><NL/>Creates a new store item.<NL/>Writes the provided store item data to the OpenSearch index <INLINE_CODE_40/>.<NL/>It uses a new ID for the store item and sets this also in the given store item data.<NL/>Not well known elements on root level are automatically saved to the field 'customFields' to avoid OpenSearch mapping problems.<NL/><NL/><BLOCK_TITLE/>all fields example<NL/><SOURCE_BLOCK_0/><NL/><NL/><BOLD><BOLD>Fields</BOLD></BOLD><NL/><NL/><INLINE_CODE_41/> (irrelevant) :: ID of the store item. A new random UUID gets set instead.<NL/><INLINE_CODE_42/> (optional) :: The ID of the module the store item belongs to. Can be used as a filter value while getting items.<NL/><INLINE_CODE_43/> (optional) :: The ID of the module instance the store item belongs to. Can be used as a filter value while getting items.<NL/><INLINE_CODE_44/> (optional) :: The name of the store item (be creative). Can be used as a filter value while getting items.<NL/><INLINE_CODE_45/> (required) :: The actual value/content/data of the store item.<NL/><INLINE_CODE_46/> (optional) :: To flag the store item as a favorite. Defaults to false.<NL/><INLINE_CODE_47/> (required) :: The read restrictions. Define who can read this item. At least one of the sub elements should be set.<NL/><INLINE_CODE_48/> (optional) :: Only this username has read access to this store item. When set the other fields 'organizations', 'roles' and 'rights' are not saved.<NL/><INLINE_CODE_49/> (optional) :: Anyone with one of these organizations has read access to this store item.<NL/><INLINE_CODE_50/> (optional) :: Anyone with one of these roles has read access to this store item.<NL/><INLINE_CODE_51/> (optional) :: Anyone with one of these rights has read access to this store item.<NL/><INLINE_CODE_52/> (required) :: The write restrictions. Define who can update and delete this item. At least one of the sub elements should be set.<NL/><INLINE_CODE_53/> (optional) :: Only this username has write access to this store item. When set the other fields 'organizations', 'roles' and 'rights' are not saved.<NL/><INLINE_CODE_54/> (optional) :: Anyone with one of these organizations has write access to this store item.<NL/><INLINE_CODE_55/> (optional) :: Anyone with one of these roles has write access to this store item.<NL/><INLINE_CODE_56/> (optional) :: Anyone with one of these rights has write access to this store item.<NL/><INLINE_CODE_57/> (optional) :: Values that do not fit into the 'value' field.<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Consumes</BOLD></BOLD><NL/><NL/>- <INLINE_CODE_58/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Path Parameter</BOLD></BOLD><NL/><NL/><INLINE_CODE_59/>:: the ID of the store<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Returns</BOLD></BOLD><NL/><NL/>The ID of the created store item<NL/><NL/>HTTP Status Code<NL/><NL/>- <INLINE_CODE_60/> : OK<NL/>- <INLINE_CODE_61/> : Missing resource:<NL/><NL/><BP_5/>OpenSearch service not found<NL/><BP_6/>Store not found<NL/><NL/>- <INLINE_CODE_62/> : Mandatory fields missing<NL/>- <INLINE_CODE_63/> : Failure due to one of the following reasons:<NL/><NL/><BP_7/>Store could not be created<NL/><BP_8/>Problem with the given JSON<NL/><BP_9/>Something went wrong while accessing OpenSearch<NL/><NL/><NL/>Content-Type<NL/><NL/>- <INLINE_CODE_64/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Required Access Rights</BOLD></BOLD><NL/><NL/><INCLUDE_2/><NL/><NL/><NL/>// ================================================================================================<NL/><NL/><BLOCK_TITLE/>6+<PIPE/> <ADMONITION_3> <INLINE_CODE_65/></ADMONITION_3><PIPE/> <INLINE_CODE_66/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Description</BOLD></BOLD><NL/><NL/>Creates or updates a store item.<NL/>Writes the provided store item data in the body to the OpenSearch index <INLINE_CODE_67/>.<NL/>An existing store item gets updated and a not existing one gets created.<NL/>Not well known elements on root level are automatically saved to the field 'customFields' to avoid OpenSearch mapping problems.<NL/><NL/><BLOCK_TITLE/>all fields example<NL/><SOURCE_BLOCK_1/><NL/><NL/><BOLD><BOLD>Fields</BOLD></BOLD><NL/><NL/><INLINE_CODE_68/> (irrelevant) :: ID of the store item. The path parameter get set in the given document instead.<NL/><INLINE_CODE_69/> (optional) :: The ID of the module the store item belongs to. Can be used as a filter value while getting items.<NL/><INLINE_CODE_70/> (optional) :: The ID of the module instance the store item belongs to. Can be used as a filter value while getting items.<NL/><INLINE_CODE_71/> (optional) :: The name of the store item (be creative). Can be used as a filter value while getting items.<NL/><INLINE_CODE_72/> (required) :: The actual value/content/data of the store item.<NL/><INLINE_CODE_73/> (optional) :: To flag the store item as a favorite. Defaults to false.<NL/><INLINE_CODE_74/> (required) :: The read restrictions. Define who can read this item. At least one of the sub elements should be set.<NL/><INLINE_CODE_75/> (optional) :: Only this username has read access to this store item. When set the other fields 'organizations', 'roles' and 'rights' are not saved.<NL/><INLINE_CODE_76/> (optional) :: Anyone with one of these organizations has read access to this store item.<NL/><INLINE_CODE_77/> (optional) :: Anyone with one of these roles has read access to this store item.<NL/><INLINE_CODE_78/> (optional) :: Anyone with one of these rights has read access to this store item.<NL/><INLINE_CODE_79/> (required) :: The write restrictions. Define who can update and delete this item. At least one of the sub elements should be set.<NL/><INLINE_CODE_80/> (optional) :: Only this username has write access to this store item. When set the other fields 'organizations', 'roles' and 'rights' are not saved.<NL/><INLINE_CODE_81/> (optional) :: Anyone with one of these organizations has write access to this store item.<NL/><INLINE_CODE_82/> (optional) :: Anyone with one of these roles has write access to this store item.<NL/><INLINE_CODE_83/> (optional) :: Anyone with one of these rights has write access to this store item.<NL/><INLINE_CODE_84/> (optional) :: Values that do not fit into the 'value' field.<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Consumes</BOLD></BOLD><NL/><NL/>- <INLINE_CODE_85/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Path Parameter</BOLD></BOLD><NL/><NL/><INLINE_CODE_86/>:: the ID of the store<NL/><INLINE_CODE_87/>:: the ID of the item<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Returns</BOLD></BOLD><NL/><NL/>HTTP Status Code<NL/><NL/>- <INLINE_CODE_88/> : OK<NL/>- <INLINE_CODE_89/> : Access rights not sufficient to update the store item<NL/>- <INLINE_CODE_90/> : Missing resource:<NL/><NL/><BP_10/>OpenSearch service not found<NL/><BP_11/>Store not found<NL/><NL/>- <INLINE_CODE_91/> : Mandatory fields missing<NL/>- <INLINE_CODE_92/> : Failure due to one of the following reasons:<NL/><NL/><BP_12/>Store could not be created<NL/><BP_13/>Problem with the given JSON<NL/><BP_14/>Something went wrong while accessing OpenSearch<NL/><NL/><NL/>Content-Type<NL/><NL/>- <INLINE_CODE_93/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Required Access Rights</BOLD></BOLD><NL/><NL/><INCLUDE_3/><NL/><NL/><NL/>// ================================================================================================<NL/><NL/><BLOCK_TITLE/>5+<PIPE/> <ADMONITION_4> <INLINE_CODE_94/></ADMONITION_4><PIPE/> <INLINE_CODE_95/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Description</BOLD></BOLD><NL/><NL/>Deletes a specific store item from the OpenSearch index <INLINE_CODE_96/>.<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Path Parameters</BOLD></BOLD><NL/><NL/><INLINE_CODE_97/>:: the ID of the store<NL/><INLINE_CODE_98/>:: the ID of the item to delete<NL/><NL/>1+a<PIPE/><BOLD><BOLD>Returns</BOLD></BOLD><NL/><NL/>HTTP Status Code<NL/><NL/>- <INLINE_CODE_99/> : OK<NL/>- <INLINE_CODE_100/> : Access rights not sufficient to delete the store item<NL/>- <INLINE_CODE_101/> : Missing resource:<NL/><NL/><BP_15/>OpenSearch service not found<NL/><BP_16/>Store not found<NL/><BP_17/>Store item not found<NL/><NL/>- <INLINE_CODE_102/> : Something went wrong while accessing OpenSearch<NL/><NL/>Content-Type<NL/><NL/>- <INLINE_CODE_103/><NL/><NL/>1+a<PIPE/><BOLD><BOLD>Required Access Rights</BOLD></BOLD><NL/><NL/><INCLUDE_4/><NL/><NL/><NL/><TABLE/><NL/><NL/>