Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member XenomediaBV's Avatar
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    29
    cPanel/Enkompass Access Level

    Root Administrator

    Default XML-API issues with API1 and API2 commands

    This topic is ment for issues I came across while building the XML-API class.

    AddonDomain::listaddondomains
    URL: https://*.domain.com:2087/xml-api/cpanel?user=cpaneluser&cpanel_xmlapi_module=AddonDomain&cpanel_xmlapi_func=listaddondomains&cpanel_xmlapi_version=2

    Result:
    HTML Code:
    <fatalerror>[a fatal error or timeout occurred while processing this directive]</fatalerror>  <cpanelresult>
        <apiversion>2</apiversion>
        <func>listaddondomains</func>
        <module>AddonDomain</module>
      </cpanelresult>
    Instead use:

    Park::listaddondomains
    URL: https://*.domain.com:2087/xml-api/cpanel?user=cpaneluser&cpanel_xmlapi_module=Park&cpanel_xmlapi_func=listaddondomains&cpanel_xmlapi_version=2

    Result:
    HTML Code:
    - <cpanelresult>
      <apiversion>2</apiversion> 
    - <data>
      <basedir>public_html/addontest</basedir> 
      <dir>/home/cpaneluser/public_html/addontest</dir> 
      <domain>addondomain.nl</domain> 
      <domainkey>addontest_domains.nl</domainkey> 
      <fullsubdomain>addontest.domains.nl</fullsubdomain> 
      <reldir>home:public_html/addontest</reldir> 
      <rootdomain>domains.nl</rootdomain> 
      <status>not redirected</status> 
      <subdomain>addontest</subdomain> 
      </data>
      <func>listaddondomains</func> 
      <module>Park</module> 
      </cpanelresult>
    Note: Addondomains cpanel.* , whm.* , webmail.* and webdisk.* are ignored!
    Last edited by XenomediaBV; 09-13-2009 at 09:21 AM.
    Kind regards,
    Miquel
    Xenomedia B.V.

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

    Default

    That.. rather sucks, doing this in "slow" mode works fine if you call it via the Park module.

    What version are you testing against so that I can verify scope of the issue?
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Member XenomediaBV's Avatar
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    29
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I tested both AddonDomain and Park, without succes.

    The version used: cPanel 11.24.5-S38506 - WHM 11.24.2 - X 3.9
    Last edited by XenomediaBV; 09-08-2009 at 04:14 PM.
    Kind regards,
    Miquel
    Xenomedia B.V.

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

    Default

    Strange, I was unable to verify this on 11.24-based systems. Could you please open a ticket at tickets.cpanel.net/submit/ so that I can take a look at your server?

    Please include this thread in the ticket body and "ATTN: MATT" in the ticket subject
    Last edited by cPanelMatt; 09-10-2009 at 11:36 AM.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  5. #5
    Member XenomediaBV's Avatar
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    29
    cPanel/Enkompass Access Level

    Root Administrator

    Default Documentation for MysqlIFE and Mysql are the same

    Documentation on the cPanel API Reference for MysqlIFE and Mysql are the same? Mysql redirects to MysqlFE. Is that on purpose or ...?
    Kind regards,
    Miquel
    Xenomedia B.V.

  6. #6
    Member XenomediaBV's Avatar
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    29
    cPanel/Enkompass Access Level

    Root Administrator

    Default addpop only for topdomain

    Email::addpop
    URL: https://*.domain.com:2087/xml-api/cpanel?user=cpaneluser&cpanel_xmlapi_module=Email&cpanel_xmlapi_func=addpop&cpanel_xmlapi_version=1&arg-0=someuser&arg-1=somedomain&arg-2=somepass

    In case you're breakin' your head about using addpop()-function with a parked domain.
    Note: This function can only create a new pop using the topdomain of the cpanel account. Parked domains will be ignored.
    Last edited by XenomediaBV; 09-13-2009 at 09:31 AM.
    Kind regards,
    Miquel
    Xenomedia B.V.

  7. #7
    Member XenomediaBV's Avatar
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    29
    cPanel/Enkompass Access Level

    Root Administrator

    Default Subdomain removal function only for topdomain

    SubDomain::delsubdomain
    URL: https://*.domain.com:2087/xml-api/cpanel?user=cpaneluser&cpanel_xmlapi_module=Subdomain& cpanel_xmlapi_func=delsubdomain&cpanel_xmlapi_version=2&domain=sub

    In case you're breakin' your head about removing a subdomain from a parked domain.
    Note: This function can only remove a subdomain created with the topdomain of a cpanel account. Trying to remove a sub(parked)domain returns an error xml saying that the subdomain cannot be removed because it's trying to remove the specified subdomain from the topdomain.

    The addsubdomain function however can also create subdomains using a parked domain.
    Last edited by XenomediaBV; 09-13-2009 at 09:34 AM.
    Kind regards,
    Miquel
    Xenomedia B.V.

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

    Default

    Quote Originally Posted by XenomediaBV View Post
    Documentation on the cPanel API Reference for MysqlIFE and Mysql are the same? Mysql redirects to MysqlFE. Is that on purpose or ...?
    Doh! Thanks, fixed.
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

Similar Threads & Tags
Similar threads

  1. How to Copy file between account with xml-api, api2?
    By gennerp in forum cPanel Developers
    Replies: 1
    Last Post: 04-14-2011, 09:00 AM
  2. Security Question, xml-api, api2
    By willsmelser in forum cPanel Developers
    Replies: 3
    Last Post: 12-24-2009, 11:58 PM
  3. List of all available API1 and API2 modules
    By ck in forum cPanel Developers
    Replies: 1
    Last Post: 04-27-2009, 10:43 AM
  4. Use API1 and API2
    By rongup in forum cPanel and WHM Discussions
    Replies: 38
    Last Post: 02-04-2009, 10:16 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube