Announcement

Collapse
No announcement yet.

Get Cloudlinux info VIA XML/API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get Cloudlinux info VIA XML/API

    as the title, is there any way to get cloudlinux stats (cpu/memory/ionode..) via API ? like the cpanel stats HDD used disk , bandwith , ect ...

    if no, is there any possibility to see them in the future releases ?

  • #2
    Here is json API for Cpanel: http://docs.cloudlinux.com/index.htm..._json_api.html (also please see --json option for lvectl ).
    Unfortunately API for selector commands is not implemented and actually we do not have plans to do it. However you can make a proposition on http://cloudlinux.uservoice.com which we track and decide what to implement.

    Comment


    • #3
      that is used just to set a config .

      we want to get the user account limit as a json response . to show it at the client interface , like the statistique showed in cpanel theme .

      EDIT :

      no way to show limits and currecnt usage for a account in cpanel

      the only thing exist is to show limit by lveid and not by username

      lvectl limits 504

      so no way to get the current and the limit for the given cpanel username .

      any way to implement this in the future .

      Comment


      • #4
        The doc explains how to list a limits, but yes per UIDs but not usernames. The code to use:

        Code:
        https:/IP:2087/cpsess_YOURTOKEN/cgi/CloudLinux.cgi?cgiaction=jsonhandler&handler=list
        Currently there is no way to list by usernames, but if you think it is needed feature you may post your idea at http://cloudlinux.uservoice.com/ where other could vote for it.

        Comment


        • #5
          Thank bodgan .

          i have posted a request http://cloudlinux.uservoice.com/foru...pi-for-usrname .

          is there any option to get username by UIDS ?

          Comment

          Working...
          X