Admin API version v1
http://localhost:8081
/admin
Uploads a file and saves it to a directory configured on the server
Uploads a file and saves it to a directory configured on the server
Set logging level for all loggers in the JVM or just for a specific package / class
Get the logging level for all loggers in the JVM
dumps jstacks every N seconds to a jstack file to find potential bottlenecks. Looking at this | file you can see if there are functions blocking for too long
Get stack trace
run one of the following maintenance jobs on the Postgres DB. | analyze, vacuum, vacuum analyze, vacuum verbose
amount of disk usage for a specific database and its associated tables and indexes.
Check for currently running queries that have been executing longer than X seconds
Returns a list of the tables / indexes in the shared_buffers (cache) and their size. This is | an expensive API from a DB resource perspective and should not run frequently (every few hours should suffice)
Returns a list of queries in transactions that are blocking other queries. The result includes the blocking query, the query being blocked, and their pids
Stops a query from running based on its PID using the pg_terminate_backend command
Drop indexes, useful before a large batch load, tenantid will be used to select the correct schema to use
Create indexes, useful if prior to a large batch load the indexes were dropped, tenantid will be used to select the correct schema to use
Sets the AES secret key that the postgres config file password was encrypted with. The key will only be checked | when the configuration file is read in and the DB connection is created
The API takes the secret key passed in and the x-okapi-tenant header and returns the DB password generated for | that tenant's schema
The API returns 200 if service is up and responding. Should be overridden | by individual services that want to actually run some business logic to determine health.