Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Add user request parameter to WHM API get_domain_info call

Michael Storm shared this idea 2 years ago
Already Exists

We would like the option to get the add on domains of specifik users using the WHM API.

Currently get_domain_info returns all clients and their domains.

A simple fix would be to add the &user=xxx paramter to the request in order to get info on a specifik user, in the same way as the suspend_outgoing_email request works.

Thanks!

Replies (1)

photo
1

Hi Michael,

Thank you for this request. You should be able to do this already using the WHM API 1 Filter Output feature: https://api.docs.cpanel.net/whm/filter-output/


If you would like to try it over command line, it would look something like:


whmapi1 get_domain_info api.filter.enable=1 api.filter.a.field=user api.filter.a.arg0=useraccount
That command would return all domains tied to "user: useraccount".

Leave a Comment
 
Attach a file