Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Feb 2009
    Posts
    33

    Default Selecting domains with certain packages

    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
    ██SunShell Hosting
    ██Reliable Reseller Hosting Since 2006
    ██whmphp

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by whmphp View Post
    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
    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/vi...n/ListAccounts

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

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 07-18-2011, 04:17 PM
  2. After updating packages the add on domains doesnt work
    By ASTRAPI in forum New User Questions
    Replies: 2
    Last Post: 09-23-2009, 09:07 PM
  3. Selecting username or domain
    By Mark36ph in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-03-2008, 05:32 AM
  4. selecting subdomain docroot [moved]
    By ezws in forum New User Questions
    Replies: 2
    Last Post: 09-29-2005, 12:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube