Line output variable from that function call can then be used as a reference to create the input for this function.
getzonerecord function from within your custom script:
/xml-api/getzonerecord 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/getzonerecord
getzonerecord function from within your custom script:
/json-api/getzonerecord 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/getzonerecord
getzonerecord function takes the following required variables as input: getzonerecord function. example.com
IN, for "Internet."
NS, SOA, A, etc.
1 — success.
0 — failure.
https://example.com:2087/xml-api/getzonerecord?domain=example.com&Line=2 in WebHost Manager will produce output similar to:
<getzonerecord>
<result>
<record>
<name>example.com.</name>
<Line>2</Line>
<address>127.0.0.1</address>
<class>IN</class>
<ttl>86400</ttl>
<type>A</type>
</record>
<status>1</status>
<statusmsg>Record obtained.</statusmsg>
</result>
</getzonerecord>
https:example.com:2087/json-api/getzonerecord?domain=example.com&Line=2 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"record":{
"Line":2,
"address":"127.0.0.1",
"ttl":86400,
"class":"IN",
"type":"A",
"name":"example.com."
},
"statusmsg":"Record obtained."
}
]
}
Copyright © cPanel 2000-2009.