API documentation
Luo Child Nimiserver
Rekister?i a new DNS server ftai use with a specific verkkotunnus
Sis?lt?tyyppi
application-json
kategoria
nameserverhost
toiminto
add
Pyynt?parametrit
| Parametrin nimi | Tyyppi | Kuvaus | Esimerkki |
|---|---|---|---|
| domain | Merkkijono | Verkkotunnus | example.com |
| dns | Merkkijono (3-30) | DNS server name (must match verkkotunnus) | ns1.example.com |
| ip | Merkkijono | DNS server IP address | 192.168.1.1 |
Vastausparametrit
| Parametrin nimi | Tyyppi | Kuvaus |
|---|---|---|
| dns | Merkkijono | DNS server name |
| ip | Merkkijono | DNS server IP address |
Pyynn?n esimerkki
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=add&domain={domain}&dns={dns}&ip={ip}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Palautettu tulos
0 OK
Onnistunut vastaus
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
}
}
}
400 Virheellinen pyynt?
{
"code": 400,
"msg" : "Request parameter error",
}






