Results 1 to 5 of 5

Thread: XML & JSON-API: One call/process to set both a reseller's ACL list and resource limit

  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    141

    Default XML & JSON-API: One call/process to set both a reseller's ACL list and resource limit

    Would it be possible to add an option to specify an acl list for setresellerlimits?

    SetResellerLimits < AllDocumentation/AutomationIntegration < TWiki

    I would have thought that it would have been part of this call already. I know that there is a separate call and that is what I am currently using but it would be nice if it was also added to this call as well.

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,562
    cPanel/WHM Access Level

    DataCenter Provider

    Default Friendly Moderator Note

    Quote Originally Posted by sirdopes View Post
    Would it be possible to add an option to specify an acl list for setresellerlimits?

    SetResellerLimits < AllDocumentation/AutomationIntegration < TWiki

    I would have thought that it would have been part of this call already. I know that there is a separate call and that is what I am currently using but it would be nice if it was also added to this call as well.
    I've revised the thread title in attempt to more accurately describe the API request.

    To help further clarify my understanding, are you looking to have the criteria set by setresellerlimits to be defined in a Reseller ACL list, or perhaps to have the criteria from setresellerlimits setup in a separate list like a "reseller package" that would define reseller resource limits?

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    141

    Default

    I am hoping that setresellerlimits can have an extra option added to set a reseller acl that is already defined. For instance, I am currently calling setresellerlimits and defining the disk & bandwidth usage. Then I am calling the setacls?acllist=list1 to set the acl list. Instead of doing 2 calls, I would just like one of the optional variables for setresellerlimits to be acllist.

  4. #4
    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 sirdopes View Post
    I am hoping that setresellerlimits can have an extra option added to set a reseller acl that is already defined. For instance, I am currently calling setresellerlimits and defining the disk & bandwidth usage. Then I am calling the setacls?acllist=list1 to set the acl list. Instead of doing 2 calls, I would just like one of the optional variables for setresellerlimits to be acllist.
    There's a request for different functionality that boils down to a desire to do multiple API calls in a single HTTP request. Is that what you are looking to accomplish as well? If not, please elaborate on the benefit that would be introduced by implementing your request.

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2007
    Posts
    141

    Default

    I saw the request about the multi-call feature request. I'm just wanting to add one more option to the setresellerlimits to specify an acl for the reseller.

    For instance, you can set the resource limits, bandwidth limits, overselling, etc, but then you have to set the acl separately for the reseller to properly be able to create accounts, edit accounts, etc. I don't need to specify all of the options for the acl, just set it to one that is already on the server.

    It looks like it would be an easy thing to add. In the file, /usr/local/cpanel/Whostmgr/Resellers.pm, just need to add a call to apply_acl_list($user, $aclpkg) to sub set_reseller_limits if acllist is one of the args.

    I would rather not have to either create a custom module that I have to download to each server that I need to use the call on or directly modify the file since it will probably be overwritten when cpanel updates.

    I'm not sure if I should create a new thread for this but I would like to request 2 other changes to the api. One is for accountsummary to add bandwidth used and bandwidth limit. The other is for Cpanel::StatsBar::stat to show bandwidth and disk quotas. If just the bandwidth for accountsummary could be added, that would be fine with me.
    Last edited by sirdopes; 09-02-2010 at 05:44 PM.

Similar Threads

  1. is XML/JSON-API available only to WHM accounts?
    By eschminke in forum cPanel Developers
    Replies: 6
    Last Post: 12-02-2011, 03:35 PM
  2. how to set Resource Usage Limits in xml-api
    By AL-Kateb in forum cPanel Developers
    Replies: 2
    Last Post: 10-13-2010, 04:47 AM
  3. XML or JSON API?
    By Azavia in forum cPanel Developers
    Replies: 3
    Last Post: 05-21-2010, 12:16 PM
  4. Replies: 0
    Last Post: 04-20-2010, 03:37 PM
  5. XML/JSON API & Session Creation using Access Hash
    By jdelsman in forum Feature Requests for cPanel & WHM
    Replies: 0
    Last Post: 02-08-2010, 04:15 PM