Skip to main content

listfullbackups not found

Comments

9 comments

  • cPanelMichael
    Hello, Could you share the part of the code that results in this error message? Thank you.
    0
  • shashank
    Hi, Well the code is simple : [PHP] $query = "https://$host:2087/xml-api/cpanel?&cpanel_xmlapi_user=$cpuser&cpanel_xmlapi_module=backups&cpanel_xmlapi_func=listfullbackups&cpanel_xamlapi_apiversion=2"; $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,0); curl_setopt($curl, CURLOPT_RETURNTRANSFER,1); $header[0] = "Authorization: Basic " . base64_encode($login.":".$pass) . "\n\r" ; curl_setopt($curl,CURLOPT_HTTPHEADER,$header); curl_setopt($curl, CURLOPT_URL, $query); $result = curl_exec($curl); [/PHP] Above is the snippet how I am calling the module. It works perfectly the same way for all other modules and functions like Email, FTP etc. Please advice.
    0
  • cPanelMichael
    Hello, Please let us know if the following thread helps:
    0
  • shashank
    Hi, I don't think that scenario applies on my script. Here is how I am authenticating. 1. The WHM login and password is either root or the reseller user and password. This can be seen here and works for authentication just fine. [PHP] $header[0] = "Authorization: Basic " . base64_encode($login.":".$pass) . "\n\r" ; [/PHP] 2. The query URL code is as below : [PHP] $query = "https://$host:2087/xml-api/cpanel?&cpanel_xmlapi_user=$cpuser&cpanel_xmlapi_module=backups&cpanel_xmlapi_func=listfullbackups&cpanel_xamlapi_apiversion=2"; [/PHP] You can see I am already using cpanel_xmlapi_user as $cpuser which I am fetching as : [PHP] $cpuser = $_GET['user">; [/PHP] I am passing it via the URL as
    0
  • kamall
    Hi, I don't think that scenario applies on my script. Here is how I am authenticating. 1. The WHM login and password is either root or the reseller user and password. This can be seen here and works for authentication just fine. [PHP] $header[0] = "Authorization: Basic " . base64_encode($login.":".$pass) . "\n\r" ; [/PHP] 2. The query URL code is as below : [PHP] $query = "https://$host:2087/xml-api/cpanel?&cpanel_xmlapi_user=$cpuser&cpanel_xmlapi_module=backups&cpanel_xmlapi_func=listfullbackups&cpanel_xamlapi_apiversion=2"; [/PHP] You can see I am already using cpanel_xmlapi_user as $cpuser which I am fetching as : [PHP] $cpuser = $_GET['user">; [/PHP] I am passing it via the URL as
    0
  • shashank
    Hello Can you connect via filezilla on port 22 or not?user and pass same as root. Regards Kamall;

    Could you explain to me how login to port 22 affects cpanel's xml-api when the error message does not show any authentication errors?
    0
  • cPanelMichael
    Hello, The examples you provided are not following the format listed at:
    0
  • AndrewH.
    To expand on why you are having issues, use "Backups" not "backups" Good
    /json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=Backups&cpanel_jsonapi_func=listfullbackups

    {"cpanelresult":{"apiversion":2,"func":"listfullbackups","data":[],"event":{"result":1},"module":"Backups"}}
    Bad
    /json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=backups&cpanel_jsonapi_func=listfullbackups

    {"cpanelresult":{"apiversion":2,"error":"Could not find function 'listfullbackups' in module 'backups'","func":"listfullbackups","data":{"reason":"Could not find function 'listfullbackups' in module 'backups'","result":0},"module":"backups"}}
    0
  • shashank
    Hi, I had used Backups as the Module as well before but it did not work. However, the issue is solved now. If you check my code above. I was using "cpanel_xamlapi_apiversion" and not "cpanel_xmlapi_apiversion" . I changed to cpanel_xamlapi_apiversion and it started working.
    0

Please sign in to leave a comment.