URL : /admin/api.php?customcname
Method : GET
Auth : &auth=API_KEY
Action : &action=get
Params : None
Code : 200 OK
Content example
{
"data": [
[
"testcname.local",
"test.local"
]
]
}
URL : /admin/api.php?customcname
Method : GET
Auth : &auth=API_KEY
Action : &action=add
Params :
domain: &domain=testcname.local
target: &targer=test.local
Code : 200 OK
Content
{
"success": true,
"message": ""
}
Condition : If 'domain' and 'target' combination already exists.
Code : 200 OK
Content :
{
"success": false,
"message": "There is already a CNAME record for 'testcname.local'"
}
URL : /admin/api.php?customcname
Method : GET
Auth : &auth=API_KEY
Action : &action=delete
Params :
domain: &domain=testcname.local
target: &targer=test.local
Code : 200 OK
Content
{
"success": true,
"message": ""
}
Condition : If 'domain' and 'target' combination do not exist.
Code : 200 OK
Content :
{
"success": false,
"message": "This domain/ip association does not exist"
}