Retrieving Action Log

Use the get-events operation to retrieve the whole Action log.

In this chapter:

Request Packet

Response Packet Structure

Samples

 

Request Packet

A request XML packet retrieving actions log includes the get node:

<packet>
<event_log>
<get>
</get>
</event_log>
</packet>

 

The get node has the following graphical representation:

getActionLog

Note: To retrieve all actions performed on the server, do not specify this node.


 

Response Packet Structure

The get node of the output XML packet is structured as follows:

GetRePS

 

Samples

Request packet samples

This packet retrieves the Action log.

<packet>
<event_log>
   <get/>
</event_log>
</packet>

Response:

<?xml version="1.0" encoding="UTF-8"?>
<packet>
  <event_log>
    <get>
      <result>
        <status>ok</status>
        <event>
          <type>status_changed</type>
          <time>1300138583</time>
          <class>domain</class>
          <id>tgb.yu</id>
        </event>
        <event>
          <type>status_changed</type>
          <time>1300138583</time>
          <class>domain</class>
          <id>tgb.ru</id>
        </event>
        <event>
          <type>status_changed</type>
          <time>1300138583</time>
          <class>domain</class>
          <id>ab.cd</id>
        </event>
        <event>
          <type>guid_changed</type>
          <time>1300138583</time>
          <class>domain</class>
          <id>ab.cd</id>
        </event>
	   ... 
       </result>
  	  </get>
   </event_log>
</packet>


This packet retrieves the Action log and removes the actions.

<packet>
<event_log>
   <get>
    <options>
		<flush_selected_range>true</flush_selected_range>
	</options>
</get>
</packet>