The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AddonDomain::listaddondomains XML-API issue

Discussion in 'cPanel Developers' started by chrislarge305, Dec 2, 2009.

  1. chrislarge305

    chrislarge305 Registered

    Joined:
    Dec 2, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi there,

    Trying to use the API to add a domain but also trying to list the current domains but having an issue.

    IS there something wrong with that because the error I am getting is

    Thanks for your help

    Regards

    Chris
     
    #1 chrislarge305, Dec 2, 2009
    Last edited: Dec 2, 2009
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Chris, THis is a known issue in 11.24 and older versions of 11.25.

    Please try using the Park module for this (they both have listaddondomains available to them)
     
  3. chrislarge305

    chrislarge305 Registered

    Joined:
    Dec 2, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply.
     
  4. agmorrison

    agmorrison Registered

    Joined:
    Jun 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to get a full list of all the parked and addon domains for an entire server?

    AddonDomain::listaddondomains indicates that it can be done but I cannot figure out how.
     
  5. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    you would need to run /xml-api/listaccts and then execute

    /xml-api/cpanel?cpanel_xmlapi_module=AddonDomain&cpanel_xmlapi_func=listaddondomains&user=$username

    for each username.
     
Loading...

Share This Page