GET Remotes

GET /api/remotes/(hostname)

Returns true if the remote host is found in the user’s session for an active user on the server. Also return if the remote host is an SMB share drive.

Status Codes:
Response Headers:

Sample Request

GET /api/remotes/localhost HTTP/1.1
Host: localhost:9000
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36
Referer: https://localhost:9000/models/b26d9a5d7b2f44729bffccad51fdfcf9?bid=405d84f7553f53736beabdf874d55356
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: slycatauth=e9528234ede94e159fc21ef2f744323f; slycattimeout=timeout

Sample Response

HTTP/1.1 200 OK
X-Powered-By: Express
content-type: application/json;charset=utf-8
content-length: 43
expires: 0
server: CherryPy/18.8.0
pragma: no-cache
cache-control: no-cache, no-store, must-revalidate
date: Fri, 20 Oct 2023 15:55:35 GMT
connection: close

{
    "status": true,
    "msg": "msg",
    "hostName": "localhost",
    "share": false
}

See Also