Get List of VS Transactions without Log Output
To get the list of VS transactions without log output, use the following request:
GET /virtual_machines/:virtual_machine_id/transactions.xml
GET /virtual_machines/:virtual_machine_id/transactions.json
XML Request Example
curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/virtual_machines/13/transactions.xml
JSON Request Example
curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/virtual_machines/13/transactions.json
XML Output Example
<transactions type="array"> <transaction> <pid type="integer">2632</pid> <created_at type="datetime">2011-07-20T08:28:54Z</created_at> <start_after type="datetime">2011-07-20T08:28:54Z</start_after> <updated_at type="datetime">2011-07-20T08:28:59Z</updated_at> <actor nil="true"></actor> <priority type="integer">10</priority> <parent_type>VirtualMachine</parent_type> <action>startup_virtual_machine</action> <id type="integer">1547</id> <user_id type="integer">13</user_id> <dependent_transaction_id nil="true"></dependent_transaction_id> <allowed_cancel type="boolean">true</allowed_cancel> <parent_id type="integer">34</parent_id> <started_at type="datetime">2011-07-20T08:28:56Z</started_at> <params> </params> <log_output></log_output> <status>complete</status> <identifier>huilp6uzskz8rr</identifier> </transaction> ... <transaction></transaction> ... </transactions>
Where:
pid — external process ID
created_at — the time when the record of transaction was made in the database, in the [YYYY][MM][DD]T[hh][mm][ss]Z format
start_after — the time after which the transaction may start, in the [YYYY][MM][DD]T[hh][mm][ss]Z format
finished_at — reserved detail
updated_at — the date in the [YYYY][MM][DD]T[hh][mm][ss]Z format
actor — reserved detail
priority — priority of the transaction (reserved detail)
parent_type — type of the transaction target (virtual server, disk or compute resource)
action — the type of transaction performed
id —transaction ID
user_id —ID of the user who performed the transaction
dependent_transaction_id —ID of the transaction that the current transaction depends on. For independent transactions this remains empty.
allowed_cancel —true if cancellation is allowed. Otherwise false.
parent_id — ID of the target virtual server, disk or compute resource
started_at —time when the transaction was started in the [YYYY][MM][DD]T[hh][mm][ss]Z format
params —parameters of the transaction
log_output —an array with log output details
status —status of the transaction (complete, failed, pending, etc)
identifier —identifier of the virtual server