Host
Services
Controller
@RestController
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + SESSIONS_KEY + "/{" + IDENTIFIER_KEY + "}/" + HOSTS_KEY +
"/{" + HOST_IDENTIFIER_KEY + "}/" + SERVICES_KEY"
)
The HostServicesController class is
useful to manage all the BrownieHostService
operations
Author
N7ghtm4r3 - Tecknobit
See also
Constructors
Link copied to clipboard
@Autowired
Constructor used to init the controller
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
service the
support service used to manage the services data
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
@PutMapping
Endpoint used to add a service to a host
Link copied to clipboard
@PatchMapping(path = "/{" + SERVICE_IDENTIFIER_KEY + "}"
)
Endpoint used to edit an existing service to
a 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
Link copied to clipboard
@GetMapping(path = "/{" + SERVICE_IDENTIFIER_KEY + "}"
)
Endpoint used to get an existing service of
a host
Link copied to clipboard
@GetMapping
Endpoint used to retrieve the services of a
host
Link copied to clipboard
@GetMapping(path = ""/" + STATUS_KEY"
)
Endpoint used to retrieve the current status
of the specified services
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@PatchMapping(path = ""/{" + SERVICE_IDENTIFIER_KEY + "}" + REBOOT_ENDPOINT"
)
Endpoint used to reboot a service
Link copied to clipboard
@DeleteMapping(path = "/{" + SERVICE_IDENTIFIER_KEY + "}"
)
Endpoint used to remove a service
Link copied to clipboard
Method to check whether a session exists by
its id
Link copied to clipboard
Link copied to clipboard
@PatchMapping(path = ""/{" + SERVICE_IDENTIFIER_KEY + "}" + START_ENDPOINT"
)
Endpoint used to start a service
Link copied to clipboard
@PatchMapping(path = ""/{" + SERVICE_IDENTIFIER_KEY + "}" + STOP_ENDPOINT"
)
Endpoint used to stop a service
Link copied to clipboard
Link copied to clipboard