Services REST interface
GET requests for getting information about services:
- Get all configurator services available for a node
- Get all configurator services available for a node family
- Get all explorer services available for a node
- Get all explorer services available for a node family
- Get all executor services available for a node
- Get all executor services available for a node family
POST requests to initiate or stop a request:
- Initiate a new service request
- Initiate a feature request
- Stop a running request
- Initiate new process monitors
GET requests for getting information about requests:
- Get information about a request
- Get all running request per node
- Get all running request per node family
- Get all finished requests per node
- Get all finished requests per node family
Get all configurator services available for a node
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
Arguments
Argument | Description |
---|---|
NODE_ID | Required. The identifier of the node. |
Returns
A service_infos
object containing the list of available services for the given
node.
Get all configurator services available for a node family
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
Arguments
Argument | Description |
---|---|
NODE_FAMILY_ID | Required. The identifier of the node family. |
Returns
A service_infos
object containing the list of available services for the given
node family.
Get all explorer services available for a node
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
|
Arguments
Argument | Description |
---|---|
NODE_ID | Required. The identifier of the node. |
Returns
A service_infos
object containing the list of available services for the given
node.
Get all explorer services available for a node family
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 |
|
Arguments
Argument | Description |
---|---|
NODE_FAMILY_ID | Required. The identifier of the node family. |
Returns
A service_infos
object containing the list of available services for the given
node family.
Get all executor services available for a node
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
Arguments
Argument | Description |
---|---|
NODE_ID | Required. The identifier of the node. |
Returns
A service_infos
object containing the list of available services for the given
node.
Get all executor services available for a node family
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 |
|
Arguments
Argument | Description |
---|---|
NODE_FAMILY_ID | Required. The identifier of the node family. |
Returns
A service_infos
object containing the list of available services for the given
node family.
Initiate a new service request
Definition
1 |
|
Example request
1 2 3 |
|
Example response
1 2 3 4 |
|
Arguments
Argument | Description |
---|---|
id | Required. The identifier of service (serviceId) as returned by the GET requests above. |
arguments | Required. The arguments to be passed to the service. Each value should be either a string or a list containing string→string objects. |
Returns
Information about the request that was initiated.
Initiate a feature request
When a service responds by sending data to WombatOAM (which is displayed to the user), this data may contain further actions that can be executed by the user.
Let's assume that we have a "Processes" request, whose response to the Get information about a request HTTP request contains a table of the top processes on the managed node, with some additional information.
The cells in the first column in this table are links because they provide a local menu, which shows all the actions that can be performed in this cell. Each such action defines a new potential request. This "initiate a feature request" HTTP request is about initiating such a feature request.
The JSON response behind this Dashboard table is the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
When the user selects an action, that action shall be sent to WombatOAM using the "Initiate a feature request" HTTP request without being changed. The "arguments" parameter contains the arguments needed by the new feature request (in this case the pid of the selected process) in an encoded format.
Definition
1 |
|
Example request
1 2 3 |
|
Example response
1 2 3 4 |
|
Arguments
Argument | Description |
---|---|
featureName | Required. The name of the feature to be initiated. |
objectType | Required. Either "node" or "node-family". It specified whether the action should be performed on a node or a node family. |
objectId | Required. (string or null ) This field can be used to specify the id of the node or node family on which the action should be performed. |
node | Optional. (string or null ) This field can be used to specify the name of the node on which the action should be performed if objectId is null . Either objectId or node has to be not null . |
arguments | Required. The arguments to be given to the feature. This field is received in an encoded format from /api/request/request-info and shall be supplied here unchanged. |
Returns
Information about the request that was initiated.
Stop a running request
Stop a request. Note that only interruptible requests can be stopped, such as periodically listing information about the processes.
Definition
1 |
|
Example request
1 2 |
|
Example response (success)
In case of success, the response body is empty.
Example response (error)
1 2 3 |
|
Arguments
Argument | Description |
---|---|
REQUEST_ID | Required. The identifier of the request to be stopped. |
Returns
An empty response.
Initiate new process monitors
Start monitoring given processes on all or given nodes. Without a list of nodes the processes will be monitored on all nodes.
Definition
1 |
|
Example requests
1 2 3 4 5 6 7 8 9 |
|
Example response (success)
In case of success, the response body is contains a true value.
Example response (error)
1 2 3 |
|
1 2 3 4 5 6 7 8 |
|
Arguments
Argument | Description |
---|---|
PROCESSES | Required. The list of processes must be given in order to start monitoring. List of nodes can be left out. |
Returns
An empty response.
Get information about a request
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
|
Arguments
Argument | Description |
---|---|
REQUEST_ID | Required. The identifier of the request. |
Returns
Information about the request, including its last stream data.
Get all running request per node
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 |
|
Arguments
Argument | Description |
---|---|
NODE_ID | Required. The identifier of the node. |
Returns
Basic information about the requests running on the given node.
Get all running request per node family
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 |
|
Arguments
Argument | Description |
---|---|
NODE_FAMILY_ID | Required. The identifier of the node family. |
Returns
Basic information about the requests running on the given node family.
Get all finished requests per node
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Arguments
Argument | Description |
---|---|
NODE_ID | Required. The identifier of the node. |
Returns
Basic information about the requests finished on the given node family.
Get all finished requests per node family
Definition
1 |
|
Example request
1 |
|
Example response
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Arguments
Argument | Description |
---|---|
NODE_FAMILY_ID | Required. The identifier of the node family. |
Returns
Basic information about the requests finished on the given node.