register Host

@PostMapping
open fun registerHost(@PathVariable(value = "id") sessionId: String, @RequestParam(value = "language", required = false, defaultValue = "en") language: String, @RequestBody payload: Map<String, Any>): String

Endpoint used to register a new host

Return

the response as String

Parameters

sessionId

The identifier of the session

language

The language of the user who sent the request

payload

The payload of the request


                             {
                                 "name" : "the name of the host" -> [String],
                                 "host_address" : "the address of the host" -> [String]
                                 -- OPTIONAL --
                                 "ssh_user" : "the user of the SSH connection" -> [String],
                                 "ssh_password" : "the password of the SSH connection" -> [String]
                             }