getclientsdomains
Purpose
This command is used to get the details of all the domains a client has
Attributes
Optional Attributes
- domainid - the ID of the domain to retrieve details for
- domain - the domain of the service to retrieve details for
- getnameservers - TRUE/FALSE - retrieve nameservers in the response
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "getclientsdomains"; $postfields['getnameservers'] = TRUE; $result = mikrovps_SendCommand( $postfields );
Successful Response
Array
(
[result] => success
[clientid] => 1
[domainid] =>
[totalresults] => 1
[numreturned] => 1
[domains] => Array
(
[domain] => Array
(
[0] => Array
(
[id] => 1
[regtype] => Register
[domainname] => domain.tld
[regperiod] => 1
[firstpaymentamount] => 1700.00
[recurringamount] => 1200.00
[regdate] => 2015-06-08
[expirydate] => 2017-01-27
[nextduedate] => 2017-01-22
[status] => Active
[dnsmanagement] =>
[emailforwarding] =>
[idprotection] =>
[donotrenew] =>
[ns1] => ns0.mikrovps.hu
[ns2] => ns1.mikrovps.hu
[ns3] =>
[ns4] =>
[ns5] =>
[error] =>
[nameservers] => 1
)
)
)
)