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.

Getting user bandwidth limit and cgi access through xml api

Discussion in 'cPanel Developers' started by myweb, Jun 13, 2010.

  1. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    I know that there is the showbw function to get user account bandwidth limit settings, but why cannot through the listsaccts function?

    Also, how do I know if certain accounts have cgi access or not? I can see that you can set the access right using the hascgi/cgi parameters of createacct/modifyacct functions but there does not seem to be any for retrieving that value from the server.
     
  2. hbidad

    hbidad Well-Known Member

    Joined:
    Apr 16, 2005
    Messages:
    74
    Likes Received:
    1
    Trophy Points:
    8
    Use domainuserdata:

    ...
    <userdata>
    ...
    <hascgi>1</hascgi>
    ...


    xml-api/domainuserdata?domain=domain.com
     
    #2 hbidad, Jun 14, 2010
    Last edited: Jun 14, 2010
  3. myweb

    myweb Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tokyo
    Thanks, but I was looking for a function that can retrieve the settings for multiple accounts in a single call. Seems like there isn't any at this time?

    So this would be my feature request.. Please add hasCGI and bandwidth limit settings to the listaccts function response.
     
Loading...

Share This Page