'.. http:get:: /api/1/account/<int:id>
Get a list of Accounts matching the given criteria
**Example Request**:
.. sourcecode:: http
GET /api/1/account/1 HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
**Example Response**:
.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
third_party: false,
name: "example_name",
notes: null,
identifier: "111111111111",
active: true,
id: 1,
account_type: "AWS",
auth: {
authenticated: true,
user: "user@example.com"
:statuscode 200: no error
:statuscode 401: Authentication failure. Please login.'

def get(self, account_id):

    result = get_account_by_id(account_id)
    account_marshaled = marshal(result.__dict__, ACCOUNT_FIELDS)
    account_marshaled = dict((account_marshaled.items() + {'account_type': result.account_type.name}.items()))
    custom_fields_marshaled = []
    for field in result.custom_fields:
        field_marshaled = {'name': field.name, 'value': field.value}
        custom_fields_marshaled.append(field_marshaled)
    account_marshaled['custom_fields'] = custom_fields_marshaled
    account_marshaled['auth'] = self.auth_dict
    return (account_marshaled, 200)
