Register or update agent
POST
/agentsContract
Parameter | Value |
|---|---|
| Section | agents |
| Authentication | AgentAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
1 parameter
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| request | body | yes | object | Agent registration data |
{ "caps": [ "<string>" ], "cores": 0, "createdAt": "<string>", "hostname": "<string>", "id": 0, "interfaces": [ { "address": "<string>", "deviceId": "<string>", "driver": "<string>", "name": "<string>", "vendor": "<string>" } ], "ip": "<string>", "online": true, "port": 0, "synced": true, "updatedAt": "<string>", "version": "<string>" }
Responses
3 responses
Status | Description | Type |
|---|---|---|
200 | Successful response | no body |
400 | Invalid request | object |
500 | Internal server error | object |
{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }