The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'cPanel Developers' started by Indianets, Feb 3, 2009.

  1. Indianets

    Indianets Well-Known Member

    Joined:
    Jun 13, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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/accountsummary.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. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    .../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. Indianets

    Indianets Well-Known Member

    Joined:
    Jun 13, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    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. CrazyMerlin

    CrazyMerlin Registered

    Joined:
    Feb 1, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks here too David, I was looking for that as the final piece of a widget.

    Paul.
     
  5. Indianets

    Indianets Well-Known Member

    Joined:
    Jun 13, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Great to hear! I was not alone :D

    Thanks,
    Vijay
     
Loading...

Share This Page