Hosting Service Account Resource¶
Provides information and allows linking of hosting service accounts.
The list of accounts tied to hosting services can be retrieved, and new accounts can be linked through an HTTP POST.
Details¶
Name | hosting_service_account |
URI | /api/hosting-service-accounts/{account_id}/ |
HTTP Methods |
|
Parent Resource | Hosting Service Account List Resource |
Child Resources | None |
Anonymous Access | Yes, if anonymous site access is enabled |
Fields¶
idInteger | The numeric ID of the hosting service account. |
serviceString | The ID of the service this account is on. |
usernameString | The username of the account. |
Links¶
Name | Method | Resource |
---|---|---|
self | GET | Hosting Service Account Resource |
HTTP GET¶
Retrieves information on a particular account.
This will only return very basic information on the account. Authentication information is not provided.
Errors¶
100 - Does Not ExistHTTP 404 - Not Found | Object does not exist |
101 - Permission DeniedHTTP 403 - Forbidden | You don’t have permission for this |
103 - Not Logged InHTTP 401 - Unauthorized | You are not logged in |
Examples¶
application/vnd.reviewboard.org.hosting-service-account+json¶
$ curl http://reviews.example.com/api/hosting-service-accounts/1/ -H "Accept: application/json"
Vary: Accept, Cookie
ETag: b3887e87f967facd8cb2632082a0c403f3f79486
Content-Type: application/vnd.reviewboard.org.hosting-service-account+json
X-Content-Type-Options: nosniff
{
"hosting_service_account": {
"id": 1,
"links": {
"self": {
"href": "http://reviews.example.com/api/hosting-service-accounts/1/",
"method": "GET"
}
},
"service": "",
"username": "testuser"
},
"stat": "ok"
}