Remote API Connection

Discussion in 'Installation/Configuration' started by Jeremy007, Mar 18, 2018.

  1. Jeremy007

    Jeremy007 Member

    Hello All,
    Does anyone have any experience working with the remote API commands?

    I can connect to my server's panel but the functions don't seem to return any data. For example if I try to return a lis t of all sites, user limits or databases i get an empty array while there are many entries on my server's panel. I "checked" all the checkboxes of permissions on the remote user's account access via the panel.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which exact api call did you use and are you logged in with the remote user so your session is valid?
  3. Jeremy007

    Jeremy007 Member

    Yes, i do get a session id returned from the connection which i can dump.

    When i execute the api command "client_templates_get_all", i get an empty array as a response while my panel server has many limit templates set.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    And you query the right server? In a multiserver setup, you must connect to the master server.
  5. Jeremy007

    Jeremy007 Member

    Hey till,

    Thank you for the reply. Got it working!
    Solution : Changed the location from "mypaneldomain.tld" to "mypanelipaddress" and for some odd reason i needed to reinstall php soap module

Share This Page