The "response" of sites_web_domain_get is always empty. The group_id (catched with "client_get_groupid") is correct and there is a domain in the table for sys_groupid (type vhost) Even if I pass domain_id directly or pass an empty array for domain_id , the response is still empty. Is there another filter in the function which can block possible results. Other functions work fine: client_add, client_get, sites_web_domain_add, ...
domains_get_all_by_user works, but delivers the content of table "domain". I would like the content of "web_domain". Could using REST API causing that problem?
i can use sites_web_domain_get($session_id, 525); or sites_web_domain_get($session_id,(array('domain' => 'example.com'))); without any problems. for all web-domains on one server: sites_web_domain_get($session_id,(array('server_id' => '37')));
Also working with REST ? I now checked with SOAP and it worked. The following REST example worked until now very good except the function "sites_web_domain_get" https://git.ispconfig.org/ispconfig/ispconfig3/commit/9376d70f0ccba49ead95ef47f0ecba568ea2d6e1 Is there an Bug with the REST wrapper?
restCall('sites_web_domain_get', array('session_id' => $session_id, 'primary_id' => array('server_id' => '37'))); is the same as sites_web_domain_get($session_id,(array('server_id' => '37')));
I found the problem: I used domain_id which is the primary instead of primary_id restCall("sites_web_domain_get", array('session_id' => $this->session_id, 'domain_id' => array('sys_groupid' => $this->client_group_id) )); Now: restCall("sites_web_domain_get", array('session_id' => $this->session_id, 'primary_id' => array('sys_groupid' => $this->client_group_id) )); is working thx a lot.