URI | /v1/accounts/{username} |
URI Parameters | username (string) |
Methods | GET |
GET /v1/accounts/{username}
Gets an account's information.
Scope | accounts_read |
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
GET /v1/accounts/barracuda HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/json
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"account_id": 10,
"username": “barracuda”,
"signup_date": "2011-01-01T09:00:00-05:00",
"status": "ACTIVE",
"usage": 1099511627776,
"reference_code": "acct-123",
"links": [
{
"title": "info",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/info"
},
{
"title": "action_history",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/action_history"
},
{
"title": "usage_history",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/usage_history"
},
{
"title": "addresses",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/addresses"
},
{
"title": "cancellation",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/cancellation"
},
{
"title": "available_plans",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/available_plans"
},
{
"title": "computers",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/computers"
},
{
"title": "reports",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/reports"
},
{
"title": "password",
"rel": "related",
"href": "https://api.intronis.com/v1/accounts/barracuda/password"
}
]
}
Response:
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<account>
<account_id>10</account_id>
<username>barracuda</username>
<signup_date>2011-01-01T09:00:00-05:00</signup_date>
<status>ACTIVE</status>
<usage>1099511627776</usage>
<reference_code>acct-123</reference_code>
<link title="info" rel="related" href="https://api.intronis.com/v1/accounts/barracuda/info"/>
<link title="action_history" rel="related" href="https://api.intronis.com/v1/accounts/barracuda/action_history"/>
<link title="usage_history" rel="related" href="https://api.intronis.com/v1/accounts/barracuda/usage_history"/>
<link title="addresses" rel="related" href="https://api.intronis.com/v1/accounts/barracuda/addresses"/>
<link title="cancellation" rel="related" href="https://api.intronis.com/v1/accounts/barracuda/cancellation"/>
<link title="available_plans" rel="related" href="https://api.intronis.com/v1/accounts/barracuda/available_plans"/>
<link title="computers" rel="related" href="https://api.intronis.com/v1/accounts/barracuda/computers"/>
</account>
Example XML
Request:
GET /v1/accounts/barracuda HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/xml