Swagger API
About this task
This guide shows how to access and use InformixHQ REST APIs via Swagger UI to integrate InformixHQ server APIs in your custom application. It covers authentication, trying endpoints, and common workflows (config, users, servers, agent configuration, etc).
The InformixHQ REST APIs are organized into the following groups.
Note: Groups 10 through 18 are available starting with InformixHQ 3.4.1.
- Server and Groups: Manage Informix Servers and groups created in InformixHQ.
- Configuration: View and update InformixHQ configurations.
- Auths and Users: Handle InformixHQ login and user management.
- System Reports: Run system reports against an Informix server and manage custom report definitions.
- Monitoring: Manage monitoring profiles, sensors, and sensor data.
- Alerting: Manage server alert criteria profiles and altering incidents.
- Permissions: View and manage InformixHQ user permissions on registered Informix servers.
- Onconfig: Read and update Informix server config parameters.
- Schema Manager: Manage databases, open SQL sessions, execute queries, and view query history.
- DB Server Log: View the Informix online log, ON-Bar activity log, Admin API command history, and configure log rotation.
- Performance: Monitor Informix server performance — checkpoints, sessions, threads, virtual processors, and hot tables & indexes.
- Replication: Manage Informix replication — Connection Manager, High Availability, Enterprise Replication (ER) domain, and replicates.
- DB Server Administration: Administer the Informix server — Auto Update Statistics, privileges and roles, and the task scheduler.
- Storage: Administer Informix storage — spaces, chunks, the storage pool, table/index storage, backups, and recovery logs.
- System Resources: View Informix server system resources — memory and buffer pools.
- Database Utilities: Run and manage dbexport, dbimport, and dbschema jobs via the monitoring agent.
- SQL Tracing: Configure SQL tracing and view traced statements, execution plans, and transactions.
- Tenants: Manage tenants and monitor tenants' resources.
Procedure
Use the following steps:
-
Accessing Swagger UI:
Open Swagger UI in your environment (host/port may vary): <https://<host>:<port>/swagger-ui/index.htmlIn Swagger UI, you can browse all endpoints, read examples, and use Try it out to run live calls.Note: Try it out will add the records to the h2db database of InformixHQ. It is recommended to take a backup of h2db database before trying it out or use it on your staging/testing environment.
-
Authentication:
The API uses HTTP Basic authentication. Provide your InformixHQ username and password. For the first time users, change the InformixHQ password from logging into InformixHQ, and then use the Swagger UI.