List ALL domains through the API

nieuwhier

Verified User
Joined
Sep 8, 2005
Messages
280
Location
Netherlands
Hi,

I need a list of all domains with there corresponding users. Of course I can first retrieve all users and than all domains per user.

But I want it quick. I have a domain name and I need the corresponding user. I am not on that server so I cannot list DA files, I really need the a API function.

Who can help ?
regards,
Michel.
 
I don't think DirectAdmin is going to drop everything and write a new API just for, if that's what you're asking for.

And I don't understand what you mean by I am not on that server. If you cannot log in to the server as root then you can't run the API anyway; it would need root access to tell you what you want to know.

Jeff
 
>>if that's what you're asking for
Nope. I am not asking DA to make something. I am asking this forum is someone knows if there is a function to retrieve a domainlist directly without retrieving the users firs and then the domains of that user. That is what I mean with quickly; a quick and fast api function.

>>And I don't understand what you mean by I am not on that server
I use a socket to login with a DA admin password. That is something else then logging in as root in my opinion.

The problem is that I have a domain name and I need the username with the most efficient API function there is. In my case a direct list of all domains with there usernames would be very handy.
 
The DirectAdmin admin login will probably work to run the API; DirectAdmin should change to whatever user it needs in order to run the API.

As to how to do it, hopefully someone else will be able to help.

Jeff
 
Yep. Let me make myself more clear;

I know how to operate the API, the way I retrieve a list of all domains on a servers is like this now:

1) API CMD_API_SHOW_USERS, I get a list of all users
2) The per user: API: CMD_API_SHOW_DOMAINS And I get a list of domains per user.

This is an 'expensive' operation. I am looking for something like CMD_API_SHOW_DOMAINS to list all domains on the server directly. Does it exist or not :-)
 
Back
Top