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!

list of add-on / parked domains from a script?

Discussion in 'General Discussion' started by ffeingol, Jan 22, 2009.

  1. ffeingol

    ffeingol Well-Known Member
    PartnerNOC

    Joined:
    Nov 9, 2001
    Messages:
    215
    Likes Received:
    1
    Trophy Points:
    318
    cPanel Access Level:
    DataCenter Provider
    Is there any way to get a list of parked and add-on domains from a script? I know you can get the list from WHM but we want to put the information into another program and parsing the WHM web page output is a bit awkward.
     
  2. cPanelStephen

    cPanelStephen Active Member
    Staff Member

    Joined:
    Aug 7, 2007
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    51
    You can use the XML-API to accomplish this. The documentation for the XML-API can be found at http://www.cpanel.net/plugins/xmlapi/

    There are also numerous threads discussing the usage of this API that you might find beneficial.

    Examples of the requested functions:

    List add-on domains for an account:

    Code:
    https://${SERVER_IP}:2087/xml-api/cpanel?user=${CPANEL_USER}&xmlin=<cpanelaction><module>Park</module><apiversion>2</apiversion><func>listaddondomains</func></cpanelaction>
    List parked domains for an account:

    Code:
    https://${SERVER_IP}:2087/xml-api/cpanel?user=${CPANEL_USER}&xmlin=<cpanelaction><module>Park</module><apiversion>2</apiversion><func>listparkeddomains</func></cpanelaction>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ffeingol

    ffeingol Well-Known Member
    PartnerNOC

    Joined:
    Nov 9, 2001
    Messages:
    215
    Likes Received:
    1
    Trophy Points:
    318
    cPanel Access Level:
    DataCenter Provider
    Hello,

    Thanks for the answer (and I'll try to dig more) but we want to list the add-on and parked domains for all clients not client by client.
     
Loading...

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