Check web shell availability
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/webshell/session \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/webshell/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/webshell/session"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"available": true,
"twoFactorEnrolled": true,
"methods": {
"totp": true,
"backupCodes": true
},
"ttlMs": 123
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Cloud
Check web shell availability
Whether a browser shell can be opened on this server and what second factor the account has. Session auth only; needs the operate role.
GET
/
v1
/
cloud
/
{id}
/
webshell
/
session
Check web shell availability
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/webshell/session \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/webshell/session', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/webshell/session"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"available": true,
"twoFactorEnrolled": true,
"methods": {
"totp": true,
"backupCodes": true
},
"ttlMs": 123
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
Service id of the cloud server.