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.

WHM API1 setresellermainip / setresellerips

Discussion in 'cPanel Developers' started by Joneichler, Jun 2, 2015.

  1. Joneichler

    Joneichler Registered

    Joined:
    Jun 2, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston Tx
    cPanel Access Level:
    Root Administrator
    Hi all,

    Just had a quick question i was hoping the community could help me with.

    Working on a script that delegates a free ip to a reseller along with setting it as a shared ip. I have everything working just as I want but I have noticed that once delegated / set as a shared ip for the reseller its still considered a free ip when using api call listips. the issue is i grab the first free ip using listips so if its not considered used then the next time the script is run it will use that same ip again.

    I am mainly wondering if there is something I am missing? Or do i need to "reserve" that Ip also to prevent this from happening.

    Hope that all makes sense if it doesn't let me know.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,807
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Joneichler

    Joneichler Registered

    Joined:
    Jun 2, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston Tx
    cPanel Access Level:
    Root Administrator

    That might work if that marked the ip as used, but in general the issue described there won't effect my clients since my script will delegate what ip's each reseller can use.

    Basically i need to figure out a way to mark the Ip as used so far as what the listips api call is concerned.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,807
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You could browse to:

    "WHM Home » Resellers » Manage Reseller’s IP Delegation"

    This option will allow you to restrict which IP addresses resellers are able to assign to their accounts. Otherwise, you may want to open a new feature request for the functionality you are seeking.

    Thank you.
     
  5. Joneichler

    Joneichler Registered

    Joined:
    Jun 2, 2015
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston Tx
    cPanel Access Level:
    Root Administrator
    I don't think I'm looking for new functionality, as stated above this a script i'm attempting to make using the API so telling me to brows in whm doesn't really help. Thanks for trying to help anyway.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,807
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page