Skip to content

Site getAll is only returning one item #163

Open

Description

@MichaelCastelbuono

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.

Activity

  1. MichaelCastelbuono commented on May 19, 2024

    @MichaelCastelbuono
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions