2 GET /service/{serviceid}/console
Thomas Brinkmann edited this page 2 years ago

GET /service/{serviceid}/console

Inhalt


  • Parameter
  • Optionale Parameter
  • Beispiel Anfrage
  • Beispiel Antwort
  • Mögliche Fehlermeldungen

Parameter

URL Parameter Typ Beschreibung
serviceid integer Beschreibt die ID des Services
Body Parameter Typ Beschreibung
- - -

Optionale Parameter

Query-String Parameter Typ Beschreibung
- - -

Beispiel Anfrage

PHP
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.dsh.gg/api/v2/service/12345/console',
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'X-TOKEN: test-token',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
cURL
curl --location --request GET 'https://api.dsh.gg/api/v2/service/12345/console' \
--header 'X-TOKEN: test-token' \
--header 'Content-Type: application/json'

Beispiel Antwort

{
    "status": "OK",
    "URL": "https://XXX.XXX.XXX.XXX:8006/novnc/mgnovnc.html?token=XXXXXXXXXXXXXXXXX&CSRFPreventionToken=XXXXXXXXXXXXXXX&console=qemu&virtualization=qemu&node=XXXXXXX&vmid=12345"
}

Mögliche Fehlermeldungen

Status Code 403 - Permission denied

Status Code 500 - This action is not available for this service!

Status Code 500 - Error Processing Request