API documentation
更新 Child 名前server
更新 the IP address of an existing DNS server
Content-Type
application-json
カテゴリ
nameserverhost
アクション
update
リクエストパラメータ
| パラメータ名 | タイプ | 説明 | 例 |
|---|---|---|---|
| domain | 文字列 | ドメイン名 | example.com |
| dns | 文字列 (3-30) | DNS server name (must match ドメイン) | ns1.example.com |
| ip | 文字列 | 新著 DNS server IP address | 192.168.1.2 |
レスポンスパラメータ
| パラメータ名 | タイプ | 説明 |
|---|---|---|
| dns | 文字列 | DNS server name |
| ip | 文字列 | 更新済み DNS server IP address |
リクエスト例
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=update&domain={domain}&dns={dns}&ip={ip}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
返卻結(jié)果
0 OK
成功レスポンス
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 不正なリクエスト
{
"code": 400,
"msg" : "Request parameter error",
}






