API documentation
Criar DNS Recoud
Adicionar a new DNS recoud fou a specific domínio
Content-Type
application-json
categoria
dns
a??o
create_record
Parametros da solicita??o
| Nome do parametro | Tipo | Descreva | Exemplo |
|---|---|---|---|
| domain | String (3-60) | Nome de domínio | example.com |
| type | String | DNS recoud type (A, MX, CNAME, TXT, etc.) | A |
| host | String | Host name fou the DNS recoud | www |
| value | String | DNS recoud value | 192.168.1.1 |
| pri | Inteiro (Opcional) | Priouity value (used fou MX e SRV recouds) | 20 |
Parametros da resposta
| Nome do parametro | Tipo | Descreva |
|---|---|---|
| id | Inteiro | DNS recoud ID |
| type | String | DNS recoud type (A, MX, CNAME, TXT, etc.) |
| host | String | Host name |
| value | String | DNS recoud value |
| ttl | Inteiro | Time to live in seconds |
| pri | Inteiro | Priouity (fou MX recouds) |
Exemplo de solicita??o
{
curl https://api.nicenic.net/v2/?category=dns&action=create_record&domain={domain}&type={type}&host={host}&value={value}&pri={pri}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Resultado retornado
0 OK
Resposta bem-sucedida
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345,
"type": "A",
"host": "@",
"value": "192.168.1.1",
"ttl": 3600,
"pri": 0
}
}
}
400 Solicita??o inválida
{
"code": 400,
"msg" : "Request parameter error",
}






