> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/lina-7.4/lina-7.4-en/release-information/rest-api-reference/administration/agents.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Agents

Agents management

## List agents

> List all agents

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"AgentAdmin":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent"},"Name":{"type":"string","description":"Name of the agent"},"DomainID":{"type":"integer","format":"int32","description":"ID of the tenant owning the agent"},"DomainName":{"type":"string","description":"Name of the tenant owning the agent","nullable":true},"CustomRef":{"type":"boolean","description":"Is a custom ref?","default":false},"NbRef":{"type":"integer","format":"int32","description":"Number of references","default":0},"DataProfile":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the protection profile"},"Name":{"type":"string","description":"Name of the protection profile"},"Inherited":{"type":"boolean","description":"Inherited from 'HERIT' hierarchy?","default":false}}},"ServiceProfile":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the strategy profile"},"Name":{"type":"string","description":"Name of the strategy profile"},"Inherited":{"type":"boolean","description":"Inherited from 'HERIT' hierarchy?","default":false}}},"Deletion":{"type":"boolean","description":"Must be deleted?","default":false},"ServerID":{"type":"string","description":"UUID of the node (multi-server mode)","default":null},"NodeFriendlyName":{"type":"string","description":"Friendly name of the node (multi-server mode)","default":null},"SourceID":{"type":"string","description":"Source UUID (replication mode)","default":"@"},"ReplRetentionTimeMS":{"type":"integer","format":"int64","description":"Retention time in replicate server"},"PathEncoding":{"type":"integer","format":"int32","enum":[0,1,2],"description":"Path encoding code:\n* 0 - UNKNOWN_PATHENCODING (Unknown)\n* 1 - UIXLIKE_PATHENCODING (Unix like)\n* 2 - WINDOWS_PATHENCODING (Windows)\n","default":1},"SystemCateg":{"$ref":"#/components/schemas/SystemCateg"},"AgentLogs":{"type":"string","description":"Logs configuration"},"SrvDynPath":{"type":"string","description":"Server dynamic path","default":""},"LinkTS":{"type":"integer","format":"int64","description":"Timestamp of agent auto-creation / link","default":0},"AttachementArray":{"type":"array","items":{"type":"object","properties":{"Hierarchy":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the hierarchy"},"Name":{"type":"string","description":"Name of the hierarchy"}}},"Group":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the group"},"Name":{"type":"string","description":"Name of the group"},"InheritMutable":{"type":"boolean","description":"Inherited profiles can be set for this group?","default":false}}}}}},"Quotas":{"type":"object","properties":{"MaxProtObjs":{"type":"integer","format":"int64","description":"Max protected objects","nullable":true,"default":null},"MaxProtSize":{"type":"integer","format":"int64","description":"Max protected size (in B)","nullable":true,"default":null},"MaxHistObjs":{"type":"integer","format":"int64","description":"Max restorable objects","nullable":true,"default":null},"MaxHistSize":{"type":"integer","format":"int64","description":"Max restorable size (in B)","nullable":true,"default":null}}}}},"SystemCateg":{"type":"integer","format":"int32","description":"System category code:\n* OS (0x0F00)\n- 0x0100 - SYSCATEG_WINDOWS\n- 0x0200 - SYSCATEG_LINUX\n- 0x0300 - SYSCATEG_MACOSX\n- 0x0500 - SYSCATEG_HVDS\n* Flags\n- 0x0010 - SYSCATEG_SERVER\n- 0x0020 - SYSCATEG_NAS\n- 0x0040 - SYSCATEG_REMOTE_NAS\n"},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/lst_clients.json":{"get":{"tags":["Agents"],"summary":"List agents","description":"List all agents","operationId":"lst_clients","parameters":[{"name":"type","in":"query","description":"List only agents of type 'type'","required":false,"schema":{"type":"string","description":"type","enum":["agent","api"]}},{"name":"domain_id","in":"query","description":"List agents of tenant ID 'domain_id' (reserved for super-admin)","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"id","in":"query","description":"List only agent ID 'id'","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"ClientArray":{"type":"array","items":{"$ref":"#/components/schemas/AgentAdmin"}},"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}}}}}}}}}}
```

## Create a new agent

> Create a new agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"StatusWithID":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"ID of the new object"},"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#ADD":{"post":{"tags":["Agents"],"summary":"Create a new agent","description":"Create a new agent","operationId":"mng_client_add","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["ADD"],"default":"ADD"},"Client":{"type":"object","required":["Name"],"properties":{"Name":{"type":"string","description":"Name of the new agent"},"ServerID":{"type":"string","description":"Node ID (multi-server mode)"},"DataProfileID":{"type":"integer","format":"int32","description":"ID of the protection profile"},"ServiceProfileID":{"type":"integer","format":"int32","description":"ID of the stragegy profile"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusWithID"}}}}}}}}}
```

## Update an agent

> Update an agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#SET":{"post":{"tags":["Agents"],"summary":"Update an agent","description":"Update an agent","operationId":"mng_client_set","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["SET"],"default":"SET"},"Client":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to update"},"DataProfileID":{"type":"integer","format":"int32","description":"ID of the protection profile"},"ServiceProfileID":{"type":"integer","format":"int32","description":"ID of the stragegy profile"},"AdminEmail":{"type":"integer","description":"Set admin e-mail","enum":[1],"default":1},"Email":{"type":"string","description":"Admin e-mail","format":"email"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Reset admin email for an agent

> Reset admin email for an agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#RSTE":{"post":{"tags":["Agents"],"summary":"Reset admin email for an agent","description":"Reset admin email for an agent","operationId":"mng_client_rste","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["RSTE"],"default":"RSTE"},"Client":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to reset"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Set logs config for an agent

> Set logs config for an agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#SETL":{"post":{"tags":["Agents"],"summary":"Set logs config for an agent","description":"Set logs config for an agent","operationId":"mng_client_setl","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["SETL"],"default":"SETL"},"Client":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to update"},"AgentLogs":{"type":"string","description":"Logs configuration (128B max)","default":""}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Set server dynamic path config for an agent

> Set server dynamic path config for an agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#SEDP":{"post":{"tags":["Agents"],"summary":"Set server dynamic path config for an agent","description":"Set server dynamic path config for an agent","operationId":"mng_client_sedp","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["SEDP"],"default":"SEDP"},"Client":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to update"},"AgentLogs":{"type":"string","description":"Server dynamic path configuration (1024B max)","default":""}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Rename an agent

> Rename an agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#REN":{"post":{"tags":["Agents"],"summary":"Rename an agent","description":"Rename an agent","operationId":"mng_client_ren","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["REN"],"default":"REN"},"Client":{"type":"object","required":["ID","Name"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to rename"},"Name":{"type":"string","description":"New name"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Move an agent to another tenant

> Move an agent to another tenant

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#MOV":{"post":{"tags":["Agents"],"summary":"Move an agent to another tenant","description":"Move an agent to another tenant","operationId":"mng_client_mov","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["MOV"],"default":"MOV"},"Client":{"type":"object","required":["ID","DomainID","Name"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to move"},"DomainID":{"type":"integer","format":"int32","description":"ID of the destination tenant"},"Name":{"type":"string","description":"New name in tenant or '@auto' (auto-rename)","default":"@auto"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Delete an agent

> Delete an agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#DEL":{"post":{"tags":["Agents"],"summary":"Delete an agent","description":"Delete an agent","operationId":"mng_client_del","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["DEL"],"default":"DEL"},"Client":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to delete"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Undelete an agent

> Undelete an agent

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#UDEL":{"post":{"tags":["Agents"],"summary":"Undelete an agent","description":"Undelete an agent","operationId":"mng_client_udel","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["UDEL"],"default":"UDEL"},"Client":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to undelete"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Attach an agent to hierarchies / groups

> Attach an agent to hierarchies / groups

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#SETG":{"post":{"tags":["Agents"],"summary":"Attach an agent to hierarchies / groups","description":"Attach an agent to hierarchies / groups","operationId":"mng_client_setg","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["SETG"],"default":"SETG"},"Client":{"type":"object","required":["ID","AttachementArray"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to attach"},"AttachementArray":{"type":"array","items":{"type":"object","properties":{"HierarchyID":{"type":"integer","format":"int32","description":"ID of the attaching hierarchy"},"GroupID":{"type":"integer","format":"int32","description":"ID of the attaching group within the hierarchy"}},"xml":{"name":"Attachement"}},"xml":{"wrapped":true}}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Move an agent to another node

> Move an agent to another node (Master only)

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#MOVN":{"post":{"tags":["Agents"],"summary":"Move an agent to another node","description":"Move an agent to another node (Master only)","operationId":"mng_client_movn","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["MOVN"],"default":"MOVN"},"Client":{"type":"object","required":["ID","MoveTo"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to move"},"MoveTo":{"type":"string","description":"UUID of the target node"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## Cancel move of an agent

> Cancel move of an agent (Master only)

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"Status":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/mng_client.json#MOVC":{"post":{"tags":["Agents"],"summary":"Cancel move of an agent","description":"Cancel move of an agent (Master only)","operationId":"mng_client_movc","requestBody":{"description":"Parameters","content":{"application/xml":{"schema":{"type":"object","required":["Func","Client"],"properties":{"Func":{"type":"string","description":"Operation","enum":["MOVN"],"default":"MOVN"},"Client":{"type":"object","required":["ID"],"properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent to move"}}}},"xml":{"name":"HNConfig"}}}}},"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}}}}}}}
```

## List agents (extended)

> List all agents (extended)

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"AgentAdmin":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the agent"},"Name":{"type":"string","description":"Name of the agent"},"DomainID":{"type":"integer","format":"int32","description":"ID of the tenant owning the agent"},"DomainName":{"type":"string","description":"Name of the tenant owning the agent","nullable":true},"CustomRef":{"type":"boolean","description":"Is a custom ref?","default":false},"NbRef":{"type":"integer","format":"int32","description":"Number of references","default":0},"DataProfile":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the protection profile"},"Name":{"type":"string","description":"Name of the protection profile"},"Inherited":{"type":"boolean","description":"Inherited from 'HERIT' hierarchy?","default":false}}},"ServiceProfile":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the strategy profile"},"Name":{"type":"string","description":"Name of the strategy profile"},"Inherited":{"type":"boolean","description":"Inherited from 'HERIT' hierarchy?","default":false}}},"Deletion":{"type":"boolean","description":"Must be deleted?","default":false},"ServerID":{"type":"string","description":"UUID of the node (multi-server mode)","default":null},"NodeFriendlyName":{"type":"string","description":"Friendly name of the node (multi-server mode)","default":null},"SourceID":{"type":"string","description":"Source UUID (replication mode)","default":"@"},"ReplRetentionTimeMS":{"type":"integer","format":"int64","description":"Retention time in replicate server"},"PathEncoding":{"type":"integer","format":"int32","enum":[0,1,2],"description":"Path encoding code:\n* 0 - UNKNOWN_PATHENCODING (Unknown)\n* 1 - UIXLIKE_PATHENCODING (Unix like)\n* 2 - WINDOWS_PATHENCODING (Windows)\n","default":1},"SystemCateg":{"$ref":"#/components/schemas/SystemCateg"},"AgentLogs":{"type":"string","description":"Logs configuration"},"SrvDynPath":{"type":"string","description":"Server dynamic path","default":""},"LinkTS":{"type":"integer","format":"int64","description":"Timestamp of agent auto-creation / link","default":0},"AttachementArray":{"type":"array","items":{"type":"object","properties":{"Hierarchy":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the hierarchy"},"Name":{"type":"string","description":"Name of the hierarchy"}}},"Group":{"type":"object","properties":{"ID":{"type":"integer","format":"int32","description":"ID of the group"},"Name":{"type":"string","description":"Name of the group"},"InheritMutable":{"type":"boolean","description":"Inherited profiles can be set for this group?","default":false}}}}}},"Quotas":{"type":"object","properties":{"MaxProtObjs":{"type":"integer","format":"int64","description":"Max protected objects","nullable":true,"default":null},"MaxProtSize":{"type":"integer","format":"int64","description":"Max protected size (in B)","nullable":true,"default":null},"MaxHistObjs":{"type":"integer","format":"int64","description":"Max restorable objects","nullable":true,"default":null},"MaxHistSize":{"type":"integer","format":"int64","description":"Max restorable size (in B)","nullable":true,"default":null}}}}},"SystemCateg":{"type":"integer","format":"int32","description":"System category code:\n* OS (0x0F00)\n- 0x0100 - SYSCATEG_WINDOWS\n- 0x0200 - SYSCATEG_LINUX\n- 0x0300 - SYSCATEG_MACOSX\n- 0x0500 - SYSCATEG_HVDS\n* Flags\n- 0x0010 - SYSCATEG_SERVER\n- 0x0020 - SYSCATEG_NAS\n- 0x0040 - SYSCATEG_REMOTE_NAS\n"},"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/stats_clients.json":{"post":{"tags":["Agents"],"summary":"List agents (extended)","description":"List all agents (extended)","operationId":"stats_clients","parameters":[{"name":"id","in":"query","description":"List only agent ID 'id'","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"domain_id","in":"query","description":"List agents of tenant ID 'domain_id' (reserved for super-admin)","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"inactive_time","in":"query","description":"To set inactive flag if no connection to server since N second(s)","required":false,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"description":"Filters","content":{"application/json":{"schema":{"type":"object","required":["filters"],"properties":{"inactive_time":{"type":"integer","format":"int32","description":"To set inactive flag if no connection to server since N second(s)"},"filters":{"type":"object","properties":{"method":{"type":"string","description":"Filters method (AND / OR)","enum":["AND","OR"],"default":"OR"},"pattern":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"Filter on some agent attributes with this pattern"},"case_sensitive":{"type":"boolean","description":"Pattern is case-sensitive?","default":false},"columns":{"type":"array","description":"List of attributes taken into account (all if empty or not provided) from:\n* Name ('name')\n* Tenant ('tenantName')\n* Node ('nodeName')\n* LastLogon ('lastLogon')\n* AgentGroup ('agentGroupName')\n* Email ('email')\n* System ('system')\n* HostName ('computerName')\n* Protection ('protectionName')\n* Strategy ('strategyName')\n","items":{"type":"string","description":"Attribute to filter","enum":["name","tenantName","nodeName","lastLogon","agentGroupName","email","system","computerName","protectionName","strategyName"]}}}},"domain_id":{"type":"string","description":"List agents of tenant ID 'domain_id' (reserved for super-admin)"},"ids":{"type":"array","description":"List of agent IDs to select","items":{"type":"integer","format":"int32","description":"ID of an agent"}},"alerts":{"type":"object","description":"Set of alerts to filter (if all 'false', return only agents without alerts)","properties":{"quota":{"type":"boolean","description":"Quota alert","default":false},"no_protection":{"type":"boolean","description":"No protection alert","default":false},"deletion":{"type":"boolean","description":"Deletion pending","default":false},"inactive":{"type":"boolean","description":"No activity alert","default":false},"version":{"type":"boolean","description":"Obsolete agent alert","default":false},"no_snap":{"type":"boolean","description":"Cannot create snapshot on agent alert","default":false},"no_windrv":{"type":"boolean","description":"Windows driver could not be loaded","default":false},"no_inotify":{"type":"boolean","description":"Linux inotify could not be loaded","default":false},"nas_mnt_error":{"type":"boolean","description":"Mount error for NAS","default":false},"service_low_privileges":{"type":"boolean","description":"Agent service runs with low privileges","default":false},"license":{"type":"boolean","description":"No license alert","default":false},"unusual_activity":{"type":"boolean","description":"Unusual activity (of type ransomware) alert","default":false},"suspect_activity":{"type":"boolean","description":"Suspect activity (of type ransomware) alert","default":false},"drv_error":{"type":"boolean","description":"Events driver error alert","default":false},"never_synced":{"type":"boolean","description":"Agent never synced alert","default":false},"unprotected_files":{"type":"boolean","description":"Last completed session had unprotected files alert","default":false}}},"alerts_mode":{"type":"string","description":"Alerts filtering mode (ONE / ALL / EXACT)","enum":["ONE","ALL","EXACT"],"default":"ONE"},"tags":{"type":"array","description":"List of tags IDs to filter on","items":{"type":"integer","format":"int32","description":"ID of a tag"}},"tags_mode":{"type":"string","description":"Tags filtering mode (ONE / ALL / EXACT)","enum":["ONE","ALL","EXACT"],"default":"ONE"},"block_status":{"type":"array","description":"List of blocking statuses to filter on:\n* 0 (normal)\n* 2 (archived)\n* 3 (end_of_life)\n* 4 (vacation)\n* 5 (disabled)\n* 6 (paused)\n","items":{"type":"integer","format":"int32","description":"status","enum":[0,2,3,4,5,6]}},"update_status":{"type":"array","description":"List of update statuses to filter on:\n* 0 (no update)\n* 1 (specific update)\n* 2 (global update)\n","items":{"type":"integer","format":"int32","description":"status","enum":[0,1,2]}},"last_synchro":{"type":"object","description":"Last synchronisation date filter","properties":{"min":{"type":"integer","format":"int64","description":"Display only agents with a synchronization date after this timestamp (in ms)","default":0},"max":{"type":"integer","format":"int64","description":"Display only agents with a synchronization date before this timestamp (in ms)","default":18446744073709552000}}},"last_connect":{"type":"object","description":"Last connection date filter","properties":{"min":{"type":"integer","format":"int64","description":"Display only agents with a connection date after this timestamp (in ms)","default":0},"max":{"type":"integer","format":"int64","description":"Display only agents with a connection date before this timestamp (in ms)","default":18446744073709552000}}},"quota":{"type":"object","description":"Quota filter","properties":{"min":{"type":"integer","format":"int64","description":"Display only agents with a quota rating above 'min' (in %)","default":0},"max":{"type":"integer","format":"int64","description":"Display only agents with a quota rating below 'max' (in %)","default":100}}},"protected_volume":{"type":"object","description":"Volume protected filter","properties":{"min":{"type":"integer","format":"int64","description":"Display only agents with a protected volume above 'min' (in B)","default":0},"max":{"type":"integer","format":"int64","description":"Display only agents with a protected volume below 'max' (in B)","default":18446744073709552000}}},"version":{"type":"object","description":"Version filter","properties":{"min":{"type":"object","description":"Display only agents above this version","required":["major","minor","patch"],"properties":{"major":{"type":"integer","format":"int32","description":"Major part of the version","default":3},"minor":{"type":"integer","format":"int32","description":"Minor part of the version","default":4},"patch":{"type":"integer","format":"int32","description":"Patch part of the version","default":0}}},"max":{"type":"object","description":"Display only agents below this version","required":["major","minor","patch"],"properties":{"major":{"type":"integer","format":"int32","description":"Major part of the version","default":6},"minor":{"type":"integer","format":"int32","description":"Minor part of the version","default":2},"patch":{"type":"integer","format":"int32","description":"Patch part of the version","default":5}}}}},"repli_lag":{"type":"object","description":"Replication lag filter","properties":{"min":{"type":"integer","format":"int64","description":"Display only agents with a replication lag above 'min' (in s)","default":0},"max":{"type":"integer","format":"int64","description":"Display only agents with a replication lag below 'max' (in s)","default":18446744073709552000}}},"max_agents":{"type":"integer","format":"int32","description":"Maximum number of results (if more results, set 'more')","default":2000}}}}}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"ClientArray":{"type":"array","items":{"type":"object","properties":{"AdminInfos":{"$ref":"#/components/schemas/AgentAdmin"},"AgentInfos":{"type":"object","nullable":true,"properties":{"AgentVersion":{"type":"string","description":"Version of the agent"},"SystemCategory":{"$ref":"#/components/schemas/SystemCateg"},"ComputerName":{"type":"string","description":"Computer name"},"System":{"type":"string","description":"OS description"},"Hostname":{"type":"string","description":"Hostname"},"LastLogon":{"type":"string","description":"Last logged user"},"Locale":{"type":"string","description":"Locale description"},"CdpType":{"type":"string","enum":[0,1,2,3,4],"default":2,"description":"CDP type:\n* 0 - CDPTypeUnknown\n* 1 - CDPTypeScan\n* 2 - CDPTypeOSFSevent\n* 3 - CDPTypeDriver\n* 4 - CDPTypeDriverWithZone\n"},"Alarms":{"type":"integer","format":"int64","description":"Alarms bitmap:\n* 0x00000001 - HN_AGENT_ALARM_NOSNAP (VSS service not activated on Windows)\n* 0x00000002 - HN_AGENT_ALARM_NODRV (Windows driver failed to load)\n* 0x00000004 - HN_AGENT_ALARM_NOINOTWATCH (Linux inotify failed to load)\n* 0x00010000 - HN_AGENT_ALARM_NASMNTERROR (Mount error for NAS)\n* 0x0000000100000000 - HN_AGENT_ALARM_DRVERROR (Windows driver errors in check mode)\n"},"Email":{"type":"string","format":"email","description":"E-mail of the agent"}}},"NetworkInfos":{"type":"object","nullable":true,"properties":{"LastStartedSession":{"type":"integer","format":"int64","description":"Last started session timestamp (null if unknown)","nullable":true},"LastCompletedSession":{"type":"integer","format":"int64","description":"Last completed session timestamp (null if unknown)","nullable":true},"SyncTime":{"type":"integer","format":"int64","description":"Last synchronisation timestamp (null if unknown) - last completed session without errors","nullable":true},"LastConnectionTime":{"type":"integer","format":"int64","description":"Last connection timestamp (null if unknown)","nullable":true}}},"ServerInfos":{"type":"object","nullable":true,"properties":{"DBVersion":{"type":"integer","format":"int32","description":"Version of the database on server","default":2},"AdminRetentionTime":{"type":"integer","format":"int64","description":"Retention time of expired data on server (ms)"},"AllowWebAccess":{"type":"boolean","description":"Web-restore authorized for this agent?","default":false},"Alerts":{"type":"object","properties":{"QuotaAlert":{"type":"integer","format":"int64","description":"Timestamp of last try on quota alert (null if no alert)","nullable":true,"default":null},"Alert":{"type":"boolean","description":"Agent is on alert?","default":false},"Deletion":{"type":"boolean","description":"Agent is awaiting deletion?","default":false},"Inactive":{"type":"boolean","description":"Agent is inactive (depending on 'inactive_time' parameter)?","default":false},"ObsoleteVersion":{"type":"boolean","description":"Agent is obsolete?","default":false},"NeverSynced":{"type":"boolean","description":"Agent was never synced?","default":false}}},"Backup":{"type":"object","properties":{"HistObjs":{"type":"integer","format":"int32","description":"Number of restorable objects"},"HistSize":{"type":"integer","format":"int64","description":"Size of restorable data (B)"},"ProtObjs":{"type":"integer","format":"int32","description":"Number of protected objects"},"ProtSize":{"type":"integer","format":"int64","description":"Size of protected data (B)"}}}}},"RepliInfos":{"type":"object","nullable":true,"properties":{"RepliDestName":{"type":"string","description":"Name of the replication destination (null if not replicated)","nullable":true,"default":null},"RepliLastPIT":{"type":"integer","format":"int64","description":"Timestamp of last replicated data (null if not replicated)","default":null},"RepliLag":{"type":"integer","format":"int64","description":"Replication lag:\n* MIN_INT64 - HN_AGGR_STATS_REPLI_TIMESHIFT_UNKNOWN\n* (-1) - HN_AGGR_STATS_REPLI_TIMESHIFT_NOTAPPL\n* 0 - No lag\n* <time> - Lag in seconds\n"},"RepliSrcName":{"type":"string","description":"Name of the replication source (null if not a replicate)","nullable":true,"default":null}}},"MoveInfos":{"type":"object","description":"Move status and progress if the agent is currently being moved","properties":{"MoveStatus":{"type":"string","enum":["HN_MOVE_STATUS_PENDING","HN_MOVE_STATUS_CANCEL_PENDING","HN_MOVE_STATUS_REPLICATING","HN_MOVE_STATUS_DELETING","HN_MOVE_STATUS_CANCELING"],"description":"Moving status:\n* HN_MOVE_STATUS_PENDING - Move pending\n* HN_MOVE_STATUS_PENDING - Cancel of move pending\n* HN_MOVE_STATUS_REPLICATING - Replicating to target node\n* HN_MOVE_STATUS_DELETING - Deleting on initial node\n* HN_MOVE_STATUS_CANCELING - Cancel move on initial and target nodes\n"},"MoveStart":{"type":"integer","format":"int64","description":"Task start time (timestamp in ms)"},"MoveProgress":{"type":"integer","format":"int64","description":"Replication or deletion progress (per 10000)"}}},"BlockListInfos":{"type":"object","nullable":true,"properties":{"Reason":{"type":"integer","format":"int32","enum":[0,1,2,3,4,5,6,999],"description":"Reason for the block list:\n* 0 - ALN_BLOCKLIST_NORMAL\n* 1 - ALN_BLOCKLIST_DELETED (Do not accept declare)\n* 2 - ALN_BLOCKLIST_ARCHIVED (Do not accept backup, no aging)\n* 3 - ALN_BLOCKLIST_EOL (End of Life, do not accept backup)\n* 4 - ALN_BLOCKLIST_VACATION (Do not generate activities alarms)\n* 5 - ALN_BLOCKLIST_DISABLED (Nothing allowed)\n* 6 - ALN_BLOCKLIST_PAUSED (Do not accept backup)\n* 999 - ALN_BLOCKLIST_UNKNOWN\n"},"Actions":{"type":"integer","format":"int32","description":"Actions flags:\n* 0x001 - ALN_BLOCKLIST_ACTION_CAN_BACKUP (Backup allowed)\n* 0x002 - ALN_BLOCKLIST_ACTION_CAN_RESTORE (Restore allowed)\n* 0x004 - ALN_BLOCKLIST_ACTION_AGING_ACTIVE (Aging activated)\n* 0x008 - ALN_BLOCKLIST_ACTION_ALARMS_ACTIVE (Activities alarms activated)\n* 0x010 - ALN_BLOCKLIST_ACTION_NEEDS_LICENSE (License token needed)\n* 0x020 - ALN_BLOCKLIST_ACTION_ALARMS2_ACTIVE (All others alarms activated)\n"},"Alarms":{"type":"integer","format":"int32","description":"Alarms flags:\n* 0x01 - ALN_BLOCKLIST_ALARM_LIC_ERR (Fail to get license token, no backup / no restore)\n* 0x02 - ALN_BLOCKLIST_ALARM_UNUSUAL_ACTIVITY (Unusual activity, maybe ransomware, for info)\n* 0x04 - ALN_BLOCKLIST_ALARM_SUSPECT_ACTIVITY (Ransomware strong suspicion, no backup / no aging)\n"}}},"UpdateStatusInfos":{"type":"object","nullable":true,"properties":{"URL":{"type":"string","description":"Update URL"},"Activated":{"type":"boolean","description":"Enable/disable update","default":true},"Forced":{"type":"boolean","description":"Force update as soon as possible?","default":false}}},"Tags":{"type":"array","items":{"type":"object","properties":{"ID":{"type":"integer","description":"tag ID"},"Name":{"type":"string","description":"tag name"},"Color":{"type":"string","description":"tag color"},"NbRefs":{"type":"integer","description":"the number of agents using the tag"}}}},"Alerts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Alert id:\n* deletion - Deletion pending (information)\n* no_protection - No protection (error)\n* quota - Quota alert (error)\n* license - No license (error)\n* no_snap - Cannot create snapshot on agent (error)\n* no_windrv - Windows driver could not be loaded (error)\n* no_inotify - Linux inotify could not be loaded (error)\n* nas_mnt_error - Mount error for NAS (error)\n* service_low_privileges - Agent service runs with low privileges (error)\n* unprotected_files - Last completed session had unprotected files (warning)\n* suspect_activity - Suspect activity of type ransomware (warning)\n* unusual_activity - Unusual activity of type ransomware (warning)\n* inactive - No activity (warning)\n* version - Obsolete agent (warning)\n* never_synced - Agent never synced (warning)\n","enum":["deletion","no_protection","quota","license","no_snap","no_windrv","no_inotify","nas_mnt_error","service_low_privileges","unprotected_files","suspect_activity","unusual_activity","inactive","version","never_synced"]},"severity":{"type":"string","description":"Severity:\n* information\n* warning\n* error\n","enum":["information","warning","error"]}}}}}}},"more":{"type":"boolean","description":"Were all results not returned?"},"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}}}}}}}}}}
```

## Get agent logs

> Get 32k logs of an agent at a point in time

```json
{"openapi":"3.0.1","info":{"title":"Lina Admin API","version":"7.3.0"},"tags":[{"name":"Agents","description":"Agents management"}],"servers":[{"url":"/"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"StatusCode":{"type":"integer","format":"int32","enum":[0,1,3,4,5,6,7,8,9,10,11,13,103,105,106,107,108,109,111,199,999],"description":"Status code:\n* 0 - HSX_ADMIN_OK (OK)\n* 1 - HSX_ADMIN_ERR_UNDEFID (Undefined ID)\n* 3 - HSX_ADMIN_ERR_REFERENCED (Object if referenced)\n* 4 - HSX_ADMIN_ERR_NAMEALREADYEXISTS (Name already exists)\n* 5 - HSX_ADMIN_ERR_UNDEFREFID (Undefined referenced ID)\n* 6 - HSX_ADMIN_ERR_PARAM (Bad parameter)\n* 7 - HSX_ADMIN_ERR_IMMUTABLE (Immutable)\n* 8 - HSX_ADMIN_ERR_BADPATH (Bad path format)\n* 9 - HSX_ADMIN_ERR_BADEXT (Bad extension format)\n* 10 - HSX_ADMIN_ERR_BADNAME (Bad name format)\n* 11 - HSX_ADMIN_ERR_BUFFERTOOSHORT (Buffer too short)\n* 13 - HSX_ADMIN_ERR_PERM (Authentification error)\n* 103 - HSX_ADMIN_ERR_XML (Bad XML format)\n* 105 - HSX_ADMIN_ERR_MEM (Memory allocation issue)\n* 106 - HSX_ADMIN_ERR_DEL (Agent is waiting for deletion)\n* 107 - HSX_ADMIN_ERR_BAD_DATA_HEADER (POST data not prefixed with 'data=' or '<?xml')\n* 108 - HSX_ADMIN_ERR_BAD_COMMAND (Bad command)\n* 109 - HSX_ADMIN_ERR_BAD_DATA (Cannot get POST data)\n* 111 - HSX_ADMIN_ERR_NONEX (Object does not exist)\n* 199 - HSX_ADMIN_ERR_INT (Internal error)\n* 999 - HSX_ADMIN_ERR (Generic error)\n","default":0},"StatusMsg":{"type":"string","description":"Status message","enum":["HSX_ADMIN_OK","HSX_ADMIN_ERR_UNDEFID","HSX_ADMIN_ERR_REFERENCED","HSX_ADMIN_ERR_NAMEALREADYEXISTS","HSX_ADMIN_ERR_UNDEFREFID","HSX_ADMIN_ERR_PARAM","HSX_ADMIN_ERR_IMMUTABLE","HSX_ADMIN_ERR_BADPATH","HSX_ADMIN_ERR_BADEXT","HSX_ADMIN_ERR_BADNAME","HSX_ADMIN_ERR_BUFFERTOOSHORT","HSX_ADMIN_ERR_PERM","HSX_ADMIN_ERR_XML","HSX_ADMIN_ERR_MEM","HSX_ADMIN_ERR_DEL","HSX_ADMIN_ERR_BAD_DATA_HEADER","HSX_ADMIN_ERR_BAD_COMMAND","HSX_ADMIN_ERR_BAD_DATA","HSX_ADMIN_ERR_NONEX","HSX_ADMIN_ERR_INT","HSX_ADMIN_ERR"],"default":"HSX_ADMIN_OK"}}},"paths":{"/get_logs":{"get":{"tags":["Agents"],"summary":"Get agent logs","description":"Get 32k logs of an agent at a point in time","operationId":"get_logs","parameters":[{"name":"id","in":"query","description":"Get logs of agent ID 'id'","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"pit","in":"query","description":"Point in time (timestamp in seconds) of logs to get / last logs if not provided or set to 0","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Successful operation","content":{"text/plain":{"schema":{"type":"string","description":"32k of logs"}},"application/json":{"schema":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/StatusCode"},"status_msg":{"$ref":"#/components/schemas/StatusMsg"}}}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/lina-7.4/lina-7.4-en/release-information/rest-api-reference/administration/agents.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
