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.

Selecting domains with certain packages

Discussion in 'cPanel Developers' started by SunShellNET, Apr 27, 2009.

  1. SunShellNET

    SunShellNET Active Member

    Joined:
    Feb 24, 2009
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hello
    I need to get the list of domains hosted on my server which are using a certain package ,lets say root_10GB

    So how can I do this using my php scripts?

    Any API for this ?

    Thanks
    Vivek
     
  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
    The listaccts function of the XML API can take in search parameters such as a search type (e.g. search by package) and a search string.

    Documentation at: http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/ListAccounts

    Example:
    Code:
    .../xml-api/listaccts?search=Advanced_Plan&searchtype=package
     
Loading...

Share This Page