Addon and Parket domains cound with XML API, or something else...

bbhsoft

Registered
Feb 19, 2008
4
0
51
Addon and Parked domains count with XML API, or something else...

Hello,

I'm writing an application that will run on a server that's updated to the latest cPanel version. I need to know, where can i get the Addon Domains for an account. It would be usefull if i know the Parked Domains too, but i really need the Addon Domains list/count.

Thank you!
 
Last edited:

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hello,

I'm writing an application that will run on a server that's updated to the latest cPanel version. I need to know, where can i get the Addon Domains for an account. It would be usefull if i know the Parked Domains too, but i really need the Addon Domains list/count.

Thank you!
The first code sample in our documentation for calling API2 from the XML-API includes how to list all parked domains: http://www.cpanel.net/plugins/xmlapi/cpanel.html

The API2 function for listing addon domains is Park::listaddondomains. You can find an example of how to use it in /usr/local/cpanel/base/frontend/x3/addons/index.html near the bottom of that file.

Documentation for API2 functionality is still a work in progress.