API documentation
Loo Child Nimiserver
Registreeri a new DNS server fv?i use with a specific domeen
Content-Type
application-json
kategooria
nameserverhost
tegevus
add
P?ringu parameetrid
| Parameetri nimi | Tüüp | Kirjeldus | N?ide |
|---|---|---|---|
| domain | Tekstijada | Domeeninimi | example.com |
| dns | Tekstijada (3-30) | DNS server name (must match domeen) | ns1.example.com |
| ip | Tekstijada | DNS server IP address | 192.168.1.1 |
Vastusparameetrid
| Parameetri nimi | Tüüp | Kirjeldus |
|---|---|---|
| dns | Tekstijada | DNS server name |
| ip | Tekstijada | DNS server IP address |
p?ringu n?ide
{
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"
}
tagastuse tulemus
0 OK
?nnestunud vastus
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
}
}
}
400 Vigane p?ring
{
"code": 400,
"msg" : "Request parameter error",
}






