URI | /v1/partners/{username}/usage_history |
URI Parameters |
|
Methods | GET |
GET /v1/partners/{username}/usage_history
Gets a partner's usage history
Scope | partners_read |
Query Selector Parameters |
|
Query Pagination Parameters |
|
Query Sorting Parameters |
|
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
GET /v1/partner/barracuda/usage_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/partners/barracuda/usage_history?page=1"
},
{
"rel": "next",
"href": "https://api.intronis.com/v1/partners/barracuda/usage_history?page=2"
}
],
"list": [
{
"date": "2011-01-01T00:00:00-05:00",
"bytes": 4368709120
},
{
"date": "2011-01-02T00:00:00-05:00",
"bytes": 5368709120
}
]
}
Example XML
Request:
GET /v1/partners/barracuda/usage_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/partners/barracuda/usage_history?page=1"/>
<link rel="next" href="https://api.intronis.com/v1/partners/barracuda/usage_history?page=2"/>
<usage>
<date>2011-01-01T00:00:00-05:00</date>
<bytes>4368709120</bytes>
</usage>
<usage>
<date>2011-01-02T00:00:00-05:00</date>
<bytes>5368709120</bytes>
</usage>
</list>