listzones function from within your custom script:
/xml-api/listzones function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/listzones
listzones function from within your custom script:
/json-api/listzones function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/listzones
listzones function. example.com
example.com.db
https://example.com:2087/xml-api/listzones in WebHost Manager will produce output similar to:
<listzones>
<zone>
<domain>example.com</domain>
<zonefile>example.com.db</zonefile>
</zone>
<zone>
<domain>example.net</domain>
<zonefile>example.net.db</zonefile>
</zone>
</listzones>
https://example.com:2087/json-api/listzones in WebHost Manager will produce output similar to:
{
"zone":[
{
"zonefile":"example.com.db",
"domain":"example.com"
},
{
"zonefile":"example.net.db",
"domain":"example.net"
}
]
}
Copyright © cPanel 2000-2009.