A
A
Artem Prokhorov2021-09-15 15:15:46
ISPmanager
Artem Prokhorov, 2021-09-15 15:15:46

Is it possible to add/change the name of an alias without a web interface, but with a request?

I just want to automate it. So that the user conditionally enters the name of the subdomain (alias in fact) and everything is created by itself. ISP will not accept a request from its connection via fetch, how to solve this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Prokhorov, 2021-09-15
@kotcich

In general, you need curl (there are more options, read the doc here Interaction via API ).
The client will not be able to make a request directly, but it can send data through the form that you created to interact with the server. On the server, we receive the incoming data, and then we simply use the function to execute the console command in your server language. I have php, here is an example:

exec('curl -k -s "https://ipOfYourRemoteServer:port/ispmgr?authinfo=login:password&func=webdomain.edit&sok=ok&elid=domain_name&aliases=test.domain.ru client.domain.ru etc...");

authinfo is just data from your aka in isp manager.

P
Philipp, 2014-09-14
@calliko

SELECT CONCAT(f.`name`, ' ', n.`name`) as 'full_name' FROM `users` u
INNER JOIN `names` n ON (u.names_id = n.id)
INNER JOIN `femelis` f ON (u.femelis_id = f.id)
WHERE u.id = 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question