- get array of agent regions (Asia, Europe, America) (used for configuring tasks)
Authorization: bearer <your auth.token here> (how to get token see user operations)
Accept or Content-Type specifies response content format: application/json, text/xml.
200 OK:
Accept: application/json or Content-Type: application/json
[
{
"id":"string - id of region",
"desc":"readable region description",
"hidden":false,
"childPools":["child1 pool id", "child1 pool id", ... ],
"agents":[array of this region agents"],
},
...
]
Accept: text/xml or Content-Type: text/xml
<ArrayOfAgentPool>
<AgentPool>
<id>string - id of region</id>
<desc>readable region description</desc>
<hidden>False</hidden>
<childPools>
<string>id of child1 pool</string>
<string>id of child2 pool</string>
...
</childPools>
<agents>
<Agent>agent structure. See GET /api/web/v1/agents</Agent>
<Agent>agent structure. See GET /api/web/v1/agents</Agent>
...
</agents>
</AgentPool>
</ArrayOfAgentPool>
401 AccessDenied - authorization header is not provided
401 WrongTicket - wrong token provided in header
401 TicketExpired - specified ticket expired
Request for agent pools in json format:
GET https://www.host-tracker.com/api/web/v1/agents/pools HTTP/1.1
User-Agent: Fiddler
Content-Type: application/json
Host: www.host-tracker.com
Content-Length: 0
Authorization: bearer ECFB190B3...653C1E78
Request for agent pools in XML format:
GET https://www.host-tracker.com/api/web/v1/agents/pools HTTP/1.1
User-Agent: Fiddler
Content-Type: text/xml
Host: www.host-tracker.com
Content-Length: 0
Authorization: bearer ECFB190B3...653C1E78