API documentation
Список Child ?м’яservers
Retrieve all DNS servers fабо a specific домен
Content-Type
application-json
категор?я
nameserverhost
д?я
list
Параметри запиту
| Назва параметра | Тип | Опис | Приклад |
|---|---|---|---|
| domain | Рядок | Доменне ?м'я | example.com |
Параметри в?дпов?д?
| Назва параметра | Тип | Опис |
|---|---|---|
| dns | Рядок | DNS server name |
| ip | Рядок | DNS server IP address |
Приклад запиту
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Результат повернення
0 OK
Усп?шна в?дпов?дь
{
"code": 0,
"msg" : "success",
"data" : {
{
"list": [
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
},
{
"dns": "ns2.example.com",
"ip": "192.168.1.2"
}
],
"total": 2
}
}
}
400 Неправильний запит
{
"code": 400,
"msg" : "Request parameter error",
}






