Results 1 to 5 of 5

Thread: Can we list the b/w used by an account with XML-API ?

  1. #1
    Member Indianets's Avatar
    Join Date
    Jun 2008
    Posts
    62
    cPanel/WHM Access Level

    Root Administrator

    Default Can we list the b/w used by an account with XML-API ?

    Hello Friends,

    I am planning to give a panel to users to see their different cPanel accounts' Disk and b/w usage at one place with XML-API.

    But, accountsummary (http://www.cpanel.net/plugins/xmlapi...ntsummary.html) seems lacking the b/w info. The Disk limit and usage are there but no info about bandwidth.

    Can anybody help me listing the bandwidth for an account with XML-API? Any advice is appreciated.

    Thanks,
    Vijay

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by Indianets View Post
    Hello Friends,

    I am planning to give a panel to users to see their different cPanel accounts' Disk and b/w usage at one place with XML-API.

    But, accountsummary (http://www.cpanel.net/plugins/xmlapi...ntsummary.html) seems lacking the b/w info. The Disk limit and usage are there but no info about bandwidth.

    Can anybody help me listing the bandwidth for an account with XML-API? Any advice is appreciated.

    Thanks,
    Vijay
    .../xml-api/showbw will show you the bandwidth information for all accounts.

    .../xml-api/showbw?search=Example&searchtype=user will show the bandwidth stats for the user with username Example. There's some other accepted parameters for showbw, and this function isn't yet documented so let me know what you need if you need something else as far as bandwidth reporting goes.

  3. #3
    Member Indianets's Avatar
    Join Date
    Jun 2008
    Posts
    62
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by cPanelDavidG View Post
    .../xml-api/showbw will show you the bandwidth information for all accounts.

    .../xml-api/showbw?search=Example&searchtype=user will show the bandwidth stats for the user with username Example. There's some other accepted parameters for showbw, and this function isn't yet documented so let me know what you need if you need something else as far as bandwidth reporting goes.
    Hi David,

    Thank you for your response and letting me know showbw. I believe the parameters passed is in similar manner as listaccts. This works.

    Thanks again,
    Vijay

  4. #4
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Default

    Thanks here too David, I was looking for that as the final piece of a widget.

    Paul.

  5. #5
    Member Indianets's Avatar
    Join Date
    Jun 2008
    Posts
    62
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by CrazyMerlin View Post
    Thanks here too David, I was looking for that as the final piece of a widget.

    Paul.
    Great to hear! I was not alone

    Thanks,
    Vijay

Similar Threads

  1. XML & JSON-API: One call/process to set both a reseller's ACL list and resource limit
    By sirdopes in forum Feature Requests for cPanel & WHM
    Replies: 4
    Last Post: 09-02-2010, 05:42 PM
  2. Replies: 0
    Last Post: 04-20-2010, 03:37 PM
  3. XML-API Errror - Does not list all pkgs
    By syphic in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 06-01-2008, 09:26 PM
  4. cPanel XML API Mailing List
    By daveformerlyof in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 12-21-2006, 10:44 PM
  5. cPanel XML API Mailing List
    By daveformerlyof in forum cPanel Developers
    Replies: 0
    Last Post: 12-21-2006, 10:44 PM