Jump to >

Hosting Service Account Resource

Name hosting_service_account
URI /api/hosting-service-accounts/{account_id}/
Description

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.

HTTP Methods
  • GET - Retrieves information on a particular account.
Parent Resource Hosting Service Account List Resource
Child Resources None
Anonymous Access Yes, if anonymous site access is enabled

Fields

Field Type Description
id Integer The numeric ID of the hosting service account.
service String The ID of the service this account is on.
username String The username of the account.

HTTP GET

Retrieves information on a particular account.

This will only return very basic information on the account. Authentication information is not provided.

Examples

application/vnd.reviewboard.org.hosting-service-account+json

{
  "hosting_service_account": {
    "id": 1, 
    "links": {
      "self": {
        "href": "http://reviews.example.com/api/hosting-service-accounts/1/", 
        "method": "GET"
      }
    }, 
    "service": null, 
    "username": "testuser"
  }, 
  "stat": "ok"
}

application/vnd.reviewboard.org.hosting-service-account+xml

<?xml version="1.0" encoding="utf-8"?>
<rsp>
 <stat>ok</stat>
 <hosting_service_account>
  <username>testuser</username>
  <service>
  </service>
  <id>1</id>
  <links>
   <self>
    <href>http://reviews.example.com/api/hosting-service-accounts/1/</href>
    <method>GET</method>
   </self>
  </links>
 </hosting_service_account>
</rsp>