ServerMania logo

Get Transaction Details Without Log Output

To view transaction's details without log output, use the following request:

GET /transactions/:id.json?short
GET /transactions/:id.xml?short

XML Request Example

curl -i -X GET http://test/transactions/101683.xml?short -u user:password -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

curl -i -X GET http://test/transactions/101683.json?short -u user:password -H 'Accept: application/json' -H 'Content-type: application/json'

XML Output Example

<transaction>
  <action>create_edge_server</action>
  <actor nil="true"/>
  <allowed_cancel type="boolean">true</allowed_cancel>
  <associated_object_id type="integer">7427</associated_object_id>
  <associated_object_type>VirtualMachine</associated_object_type>
  <created_at type="datetime">2015-03-19T18:05:42+03:00</created_at>
  <dependent_transaction_id type="integer">101682</dependent_transaction_id>
  <id type="integer">101683</id>
  <identifier>ipj39mncfnlc8l</identifier>
  <params>
    <add_to_marketplace type="boolean">true</add_to_marketplace>
    <skip_notification type="boolean">true</skip_notification>
  </params>
  <parent_id type="integer">7427</parent_id>
  <parent_type>VirtualMachine</parent_type>
  <pid type="integer">9671</pid>
  <priority type="integer">10</priority>
  <start_after type="datetime">2015-03-19T18:05:42+03:00</start_after>
  <started_at type="datetime">2015-03-19T18:06:30+03:00</started_at>
  <status>running</status>
  <updated_at type="datetime">2015-03-19T18:06:30+03:00</updated_at>
  <user_id type="integer">45</user_id>
</transaction>

For details refer to the Get List of Transactions section.