Hosts
Controller
@RestController
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + SESSIONS_KEY + "/{" + IDENTIFIER_KEY + "}/" + HOSTS_KEY"
)
The BrownieSessionController class is
useful to manage all the BrownieHost
operations
Author
N7ghtm4r3 - Tecknobit
See also
Properties
Link copied to clipboard
Link copied to clipboard
currentBrownieSession
the current Brownie's session used in the request
Link copied to clipboard
hostsService the support
service used to manage the hosts data
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sessionsService the support
service used to manage the sessions data
Link copied to clipboard
SOMETHING_WENT_WRONG_MESSAGE
the key of the message sent to the clients when a remote SSH
connection failed
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
WRONG_HOST_ADDRESS_MESSAGE
the key of the message sent to the clients when a host
address value is not valid
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
WRONG_SSH_CREDENTIALS_MESSAGE
the key of the message sent to the clients when the SSH
credentials are not valid
Link copied to clipboard
Functions
Link copied to clipboard
@PatchMapping(path = "/{" + HOST_IDENTIFIER_KEY + "}"
)
Endpoint used to edit an existing host
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method to retrieve a BrownieHost
checking the identifier of the session and its identifier
Link copied to clipboard
@GetMapping(path = "/{" + HOST_IDENTIFIER_KEY + "}"
)
Endpoint used to get an existing host
Link copied to clipboard
@GetMapping(path = ""/{" + HOST_IDENTIFIER_KEY + "}" + OVERVIEW_ENDPOINT"
)
Endpoint used to retrieve an overview of a
host
Link copied to clipboard
@GetMapping
Endpoint used to retrieve the hosts of a
session
Link copied to clipboard
@GetMapping(path = ""/" + STATUS_KEY"
)
Endpoint used to retrieve the current status
of the specified hosts
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@PatchMapping(path = ""/{" + HOST_IDENTIFIER_KEY + "}" + REBOOT_ENDPOINT"
)
Endpoint used to reboot a host
Link copied to clipboard
Link copied to clipboard
Method to check whether a session exists by
its id
Link copied to clipboard
Link copied to clipboard
Method to validate the payload for the SSH
credentials
Link copied to clipboard
@PatchMapping(path = ""/{" + HOST_IDENTIFIER_KEY + "}" + START_ENDPOINT"
)
Endpoint used to start a remote host
Link copied to clipboard
@PatchMapping(path = ""/{" + HOST_IDENTIFIER_KEY + "}" + STOP_ENDPOINT"
)
Endpoint used to stop a host
Link copied to clipboard
Link copied to clipboard
@DeleteMapping(path = "/{" + HOST_IDENTIFIER_KEY + "}"
)
Endpoint used to unregister a host from the
session
Link copied to clipboard
Method to validate the payload for the registerHost and editHost requests
Link copied to clipboard