URI | /v1/accounts/{username}/computers/{computer_id}/action_history |
URI Parameters |
|
Methods | GET |
GET /v1/accounts/{username}/computers/{computer_id}/action_history
Gets a computer's action history (version 3.0+ only).
Scope | computers_read |
Query Selector Parameters |
|
Query Pagination Parameters |
|
Query Sorting Parameters |
|
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
ET /v1/accounts/barracuda/computers/0000/action_history HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/json
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"page": 1,
"page_size": 10,
"count": 100,
"links": [
{
"rel": "first",
"href": "https://api.intronis.com/v1/accounts/barracuda/computer/0000/action_history?page=1"
},
{
"rel": "next",
"href": "https://api.intronis.com/v1/accounts/barracuda/computer/0000/action_history?page=2"
}
],
"list": [
{
"action_id": 10,
"username": “barracuda”,
"computer_id": "0000",
"type": "RESTORE",
"backupset_name": "",
"plugin": "FILE",
"status": "RUNNING",
"local_start": "2011-01-01T09:00:00-05:00",
"local_end": "",
"total_files": 100,
"processed_files": 50,
"bytes": 2147483648,
"condition_status": "RUNNING",
"condition_types ": [
"RUNNING"
],
"errors": 0,
"warnings": 0
},
{
"action_id": 10,
"username": “barracuda”,
"computer_id": "0000",
"type": "BACKUP",
"backupset_name": "My Docs",
"plugin": "FILE",
"status": "COMPLETED",
"local_start": "2011-01-01T03:00:00-05:00",
"local_end": "2011-01-01T04:00:00-05:00",
"total_files": 100,
"processed_files": 100,
"bytes": 5368709120,
"condition_status": "WARNING",
"condition_types ": [
"WARNINGS",
"CANCELED"
],
"errors": 0,
"warnings": 2
}
]
}
Example XML
Request:
GET /v1/accounts/barracuda/computers/0000/action_history HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/xml
Response:
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<list page="1" page_size="10" count="100">
<link rel="first" href="https://api.intronis.com/v1/accounts/barracuda/computer/0000/action_history?page=1"/>
<link rel="next" href="https://api.intronis.com/v1/accounts/barracuda/computer/0000/action_history?page=2"/>
<action>
<action_id>10</action_id>
<username>barracuda</username>
<computer_id>0000</computer_id>
<type>RESTORE</type>
<backupset_name/>
<plugin>FILE</plugin>
<status>RUNNING</status>
<local_start>2011-01-01T09:00:00-05:00</local_start>
<local_end/>
<total_files>100</total_files>
<processed_files>50</processed_files>
<bytes>2147483648</bytes>
<condition_status>RUNNING</condition_status>
<condition_types>RUNNING</condition_types>
<errors>0</errors>
<warnings>0</warnings>
</action>
<action>
<action_id>10</action_id>
<username>barracuda</username>
<computer_id>0000</computer_id>
<type>BACKUP</type>
<backupset_name>My Docs</backupset_name>
<plugin>FILE</plugin>
<status>COMPLETED</status>
<local_start>2011-01-01T03:00:00-05:00</local_start>
<local_end>2011-01-01T04:00:00-05:00</local_end>
<total_files>100</total_files>
<processed_files>100</processed_files>
<bytes>5368709120</bytes>
<condition_status>WARNING</condition_status>
<condition_types>WARNINGS</condition_types>
<condition_types>CANCELED</condition_types>
<errors>0</errors>
<warnings>2</warnings>
</action>
</list>