You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running $client->site()->getAll(); only seems to return one item and it appears to always be the last item. If I add a filter for a specific ID then that item is returned so I know there are more items in my plesk instance.
The protocol version returned in the response is 1.6.9.1.
The text was updated successfully, but these errors were encountered:
After talking with Plesk support I discovered this is working as expected. The <site> operator only returns non-primary domain information evidently. Here's what I heard from support:
Request you are using uses operator which retrieves the information for every site that is not the primary site for a subscription, and every subdomain.
Let's say you have subscription called example.com and it has only primary domain example.com.
In such case request will return "ok" meaning that it is a valid request, but it won't return any information for example.com as it is a primary domain of corresponding subscription.
At the same time, if subscription example.com has additional domain example.org and a subdomain sub.example.com request will return information for only these two domains and not for example.com
I can confirm that after configuring multiple non-primary domains in Plesk that the <site> operator or $client->site()->getAll() returns multiple entries. It would be nice if either the <webspace> operator or <site> operator had a filter to allow for all domains to be retrieved but it looks like this isn't possible yet.
Running
$client->site()->getAll();
only seems to return one item and it appears to always be the last item. If I add a filter for a specific ID then that item is returned so I know there are more items in my plesk instance.The protocol version returned in the response is
1.6.9.1
.The text was updated successfully, but these errors were encountered: