Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'cPanel Developers' started by bbhsoft, Mar 21, 2008.

  1. bbhsoft

    bbhsoft Registered

    Feb 19, 2008
    Likes Received:
    Trophy Points:
    Addon and Parked domains count with XML API, or something else...


    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!
    #1 bbhsoft, Mar 21, 2008
    Last edited: Mar 22, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The first code sample in our documentation for calling API2 from the XML-API includes how to list all parked domains:

    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice