Response Samples

Retrieving status of Log Rotation service on a single site

The following request packet retrieves status of Log Rotation service on site example.com:

<packet version="1.6.3.0">
  <log-rotation>
    <get-status>
        <filter>
        <site-name>example.com</site-name>
        </filter>
    </get-status>
  </log-rotation>
</packet>

 

A positive response from the server can look as follows:

<packet version="1.6.3.0">
  <log-rotation>
    <get-status>
      <result>
        <status>ok</status>
        <filter-id>example.com</filter-id>
        <id>33</id>
      </result>
    </get-status>
  </log-rotation>
</packet>

 

If the site was not found, the response from the server looks as follows:

<packet version="1.6.3.0">
  <log-rotation>
    <get-status>
      <result>
        <status>error</status>
        <errcode>1013</errcode>
        <errtext>site does not exist</errtext>
        <filter-id>example.com</filter-id>
      </result>
    </get-status>
  </log-rotation>
</packet>

 

Retrieving status of Log Rotation service on multiple sites

The following request packet retrieves status of Log Rotation service on sites used by the customers with ID 5 and ID 8:

<packet version="1.6.3.0">
  <log-rotation>
    <get-status>
        <filter>
          <owner-id>5</owner-id>
          <owner-id>8</owner-id>
        </filter>
    </get-status>
  </log-rotation>
</packet>

 

If the customer with ID 5 was not found on the server and the customer with ID 8 runs two domains (ID 17 and 29) the response from the server looks as follows:

<packet version="1.6.3.0">
  <log-rotation>
   <get-status>
      <result>
        <status>error</status>
        <errcode>1015</errcode>
        <errtext>customer does not exist</errtext>
        <filter-id>5</filter-id>
      </result>
    </get-status>
    <get-status>
      <result>
        <status>ok</status>
        <filter-id>8</filter-id>
        <id>17</id>
      </result>
    </get-status>
    <get-status>
      <result>
        <status>ok</status>
        <filter-id>8</filter-id>
        <id>29</id>
      </result>
    </get-status>
  </log-rotation>
</packet>

 

Please send us your feedback on this help page.