Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Default AddonDomain::listaddondomains XML-API issue

    Hi there,

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

    /xml-api/cpanel?user=*****&xmlin=<cpanelaction><module>AddonDomain</module><func>listaddondomains</func></cpanelaction>
    IS there something wrong with that because the error I am getting is

    XML Parsing Error: junk after document element
    Location: https://******:2083/xml-api/cpanel?u...ain=domain.tld
    Line Number 1, Column 95:<fatalerror>[a fatal error or timeout occurred while processing this directive]</fatalerror> <cpanelresult>
    Thanks for your help

    Regards

    Chris
    Last edited by chrislarge305; 12-02-2009 at 05:24 AM.

  2. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    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)
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    3

    Default

    Thanks for the reply.

  4. #4
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    Default

    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. #5
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    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.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

Similar Threads & Tags
Similar threads

  1. XML API 2 help
    By Dragonxito in forum cPanel Developers
    Replies: 1
    Last Post: 05-13-2011, 04:23 PM
  2. addondomain details API
    By shijilts in forum cPanel Developers
    Replies: 4
    Last Post: 04-22-2011, 04:07 PM
  3. XML-API is any of these possible?
    By neo4242002 in forum cPanel Developers
    Replies: 3
    Last Post: 03-17-2008, 01:46 PM
  4. XML API: always get login screen, not XML
    By sldff3ald in forum cPanel Developers
    Replies: 3
    Last Post: 09-19-2007, 09:29 AM
  5. How do I use the xml - api?
    By rhopperger in forum cPanel Developers
    Replies: 3
    Last Post: 05-19-2007, 08:07 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube