>_ NicAPI Dokumentation

REST-API von LUMASERV: Domains, DNS, SSL, Cloud-Server, IP-Adressen, Abrechnung und mehr.

Datacenter / Server-Aktionen

GET Server Actions: File API v1

GET https://connect.nicapi.eu/api/v1/datacenter/server-actions/file
Authentifizierung
keine (öffentlicher Endpunkt)

Request-Parameter Werden als Query-Parameter übergeben.

Name Pflicht Typ Einschränkungen Beschreibung
address Pflicht Text
DHCP-Konfiguration
curl \
  "https://connect.nicapi.eu/api/v1/datacenter/server-actions/file?address=text"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::get("datacenter/server-actions/file", [
    'address' => 'text',
]);

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}

GET Server Actions: Menu API v1

GET https://connect.nicapi.eu/api/v1/datacenter/server-actions/menu
Authentifizierung
keine (öffentlicher Endpunkt)

Request-Parameter Werden als Query-Parameter übergeben.

Name Pflicht Typ Einschränkungen Beschreibung
address Pflicht Text
DHCP-Konfiguration
curl \
  "https://connect.nicapi.eu/api/v1/datacenter/server-actions/menu?address=text"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::get("datacenter/server-actions/menu", [
    'address' => 'text',
]);

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}

POST Server Actions: Status API v1

POST https://connect.nicapi.eu/api/v1/datacenter/server-actions/status
Authentifizierung
keine (öffentlicher Endpunkt)

Request-Parameter Werden im Request-Body übergeben (JSON oder Formular-Felder).

Name Pflicht Typ Einschränkungen Beschreibung
state Pflicht Auswahl
PENDING RUNNING DONE CANCELLED
state_percent Pflicht Ganzzahl
mindestens 0
höchstens 100
state_text Pflicht Text
curl \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
         "state": "PENDING",
         "state_percent": 1,
         "state_text": "text"
     }' \
  "https://connect.nicapi.eu/api/v1/datacenter/server-actions/status"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::post("datacenter/server-actions/status", [
    'state' => 'PENDING',
    'state_percent' => 1,
    'state_text' => 'text',
]);

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}