Previous page

Next page

Locate page in Contents

Print this page

get_ops

Summary:

Retrieves information from the history database about currently running or completed operations.

Request specification:

Name

Min/Max

Type

Description

get_ops

 

 

 

{

 

 

 

eid

0..1

eid_type

Server ID. If omitted, reports operations for all known servers.

status

0..1

none

If this element is included, only the initial progress message is returned for each operation along with the current status of the operation.

current

0..1

none

If this element is included, only the operations that are currently in progress are reported (just the initial progress message for each operation).

op

0..1

string

The name of the operation to get the report for. The name is comprised of the interface name and the call name separated by the dot character. For example, the name of the operation that creates a Virtuozzo Container is vzaenvm.create

id

0..1

string

The initial packet ID to get the report for.

start_time

0..1

datetime_type

Start time of the log.

end_time

0..1

datetime_type

End time of the log.

records

0..1

int

The number of records to retrieve. The records will be presented chronologically beginning with the most recent entry going back through time.

parent_id

0..1

none

Some operations are initiated not by the user directly but automatically by another (parent) operation. If this element is included, the parent operation ID for such operations will also be retrieved.

}

 

 

 

Returns:

Name

Min/Max

Type

Description

progress

0..[]

progress_eventType

Progress information.

Example:

Input

<packet version="4.0.0">

<target>op_log</target>

<data>

<op_log>

<get_ops>

<status/>

<records>10</records>

</get_ops>

</op_log>

</data>

</packet>

Output

<ns1:packet xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/op_log" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="3dc45f68aa5tbdbrdfc" time="2007-03-11T06:04:56+0000" priority="0" version="4.0.0">

<ns1:origin>op_log</ns1:origin>

<ns1:target>vzclient6</ns1:target>

<ns1:dst>

<director>gend</director>

</ns1:dst>

<ns1:data>

<ns2:op_log>

<ns2:progress>

<ns2:id>13c45eee115t153crdfc</ns2:id>

<ns2:op>vzaenvm.create</ns2:op>

<ns2:message>

<ns2:message>T3BlcmF0aW9uICVvcF9uYW1lJSBpcyAlc3RhdHVzJQ==</ns2:message>

<ns2:name></ns2:name>

<ns2:translate/>

<ns2:parameter>

<ns2:message>Y3JlYXRl</ns2:message>

<ns2:name>op_name</ns2:name>

</ns2:parameter>

<ns2:parameter>

<ns2:message>c3RhcnRlZA==</ns2:message>

<ns2:name>status</ns2:name>

<ns2:translate/>

</ns2:parameter>

</ns2:message>

<ns2:status>3</ns2:status>

<ns2:time>2007-03-07T11:44:21+0000</ns2:time>

</ns2:progress>

<ns2:progress>

<ns2:id>11c45eee0cat2ea6rdfc</ns2:id>

<ns2:op>vzaenvm.create</ns2:op>

<ns2:message>

<ns2:message>T3BlcmF0aW9uICVvcF9uYW1lJSBpcyAlc3RhdHVzJQ==</ns2:message>

<ns2:name></ns2:name>

<ns2:translate/>

<ns2:parameter>

<ns2:message>Y3JlYXRl</ns2:message>

<ns2:name>op_name</ns2:name>

</ns2:parameter>

<ns2:parameter>

<ns2:message>c3RhcnRlZA==</ns2:message>

<ns2:name>status</ns2:name>

<ns2:translate/>

</ns2:parameter>

</ns2:message>

<ns2:status>4</ns2:status>

<ns2:time>2007-03-07T11:43:31+0000</ns2:time>

</ns2:progress>

</ns2:op_log>

</ns1:data>

<ns1:src>

<ns1:director>gend</ns1:director>

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page