Opmantek System Configuration is a new admin tool to edit all the NMIS and Opmantek configuration and to manage all nodes from an unified and centralised easy to use GUI.
...
We can also manage the nodes using the API.
Operation | Method | URL | Example | ||
---|---|---|---|---|---|
Get nodes | GET | http://host/en/omk/admin/api/v2/nodes.json | http://uburnto.opmantek.net/en/omk/admin/api/v2/nodes.json?requestData=undefined&page=1&per_page=25&sort_by=name&order=asc | ||
Get Node | GET | http://host/en/omk/admin/api/v2/nodes/{node_uuid} | http://uburnto.opmantek.net/en/omk/admin/nodes/86a82b4c-6ef6-4691-8c8c-1fc8da334d6f/edit | ||
Create Node | POST | http://host/en/omk/admin/api/v2/nodes | http://uburnto.opmantek.net/en/omk/admin/api/v2/nodes
| ||
Update Node | PUT | http://host/en/omk/admin/api/v2/nodes/{node_uuid} | http://uburnto.opmantek.net/en/omk/admin/api/v2/nodes/b56ba595-69e7-4702-9fe5-49512e1340b0
| ||
Delete Node | DELETE | http://host/en/omk/admin/api/v2/nodes/{node_uuid} | http://uburnto.opmantek.net/en/omk/admin/api/v2/nodes/b56ba595-69e7-4702-9fe5-49512e1340b0 |
Important: All this methods are authenticated.
Operation | Method | URL | Example | ||
---|---|---|---|---|---|
Authenticate | POST | http://host/en/omk/admin/login | http://uburnto.opmantek.net/en/omk/opHA/login
|
We should receive a 200 response and a cookie, that we can reuse for next API calls.
Remote Nodes
If any operation has a remote cluster id, the API will try to edit in the remote server. If this operation is not possible, it will fail.
...