Server 5

Administative Sophora Server HTTP API

List and description of all administrative Sophora Server HTTP APIs.

Administrative APIs mostly handle operational tasks such as cluster switches. They do not provide access to Sophora documents. This use case is covered by the Sophora Content API.

All enpoints prefixed with v1 require basic authentication. Here is an example using curl to initiate a cluster switch:

curl --request POST --data '{"serverId": "3f97b113-8a71-31e2-a4f3-2d8d48772eaf"}' -u admin:admin -H 'Content-Type: application/json' 'http://localhost:1196/v1/management/switchPrimary'
Sophora Server APIs
NamePathFormatMethodDescription
Thread Dump/threaddumpPlain TextGETCreates a thread dump and returns the result as unstructured text. It uses the same thread dump format as jstack.
Started/status/startedtrue/falseGETInforms, whether the server's startup has completed
Readiness/status/readytrue/falseGETInforms, whether the server is ready to take requests. On Replicas and Stages this especially awaits pending synchronizations from the primary.
Liveness/status/livenesstrueGETAlways returns the String "true". This endpoint can be used to check, whether the server generally is running.
Configuration Hashes - System Documents/v1/management/configurationHash/systemDocumentJSONGETReturns the configuration hashes of all system documents. Each hash entry also contains a json representation of the system document.
Available since Server Version 5.5.0
Configuration Hashes - Structure Nodes/v1/management/configurationHash/structureNodeDocumentJSONGETReturns the configuration hashes of all structure nodes. Each hash entry also contains a json representation of the structure node.
Available since Server Version 5.5.0
Configuration Hashes - Document Proposals/v1/management/configurationHash/documentProposalSectionJSONGETReturns the configuration hashes of all document proposals.
Available since Server Version 5.5.0
Configuration Hashes - CNDs/v1/management/configurationHash/cndJSONGETReturns the configuration hashes of all cnds.
Available since Server Version 5.5.0
IBF - latest documents versions/v1/management/ibf/clusterJSONGETReturns the invertible bloom filter for documents in the default workspace.
Available since Server Version 5.5.0
IBF - live versions/v1/management/ibf/stagingJSONGETReturns the invertible bloom filter for documents in the live workspace.
Available since Server Version 5.5.0
Server Info/v1/management/serverJSONGETReturns the server info of the current server.
Available since Server Version 5.5.0
Server Infos/v1/management/serversJSONGETReturns all known server infos in the cluster.
Available since Server Version 5.5.0
Primary Switch/v1/management/switchPrimaryJSONPOSTInitiates a cluster switch. Pass the server id of the new primary server as json:
{"serverId": "3f97b113-8a71-31e2-a4f3-2d8d48772eaf"}
Available since Server Version 5.5.0

Monitoring APIs

The monitoring APIs to access the Sophora Server status and prometheus metrics are described here.

Last modified on 9/4/24

The content of this page is licensed under the CC BY 4.0 License. Code samples are licensed under the MIT License.

Icon