Get domains
Available in versions: 12.60 and later
Description
Gets the domains list for the authenticated user.
URL
/LoadTest/rest/domains
HTTP method
GET: Returns the domains list for the authenticated user.
Request
Headers:
One of the following:
Content-Type: application/xml
Content-Type: application/json
Cookies:
Version | Cookie |
---|---|
2020 or later | LWSSO_COOKIE_KEY={LwssoCookie}; |
Earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie}; |
Request body:
None
Request example:
GET http://<LRE_Server>/LoadTest/rest/domains
Response
Headers:
One of:
Accept: application/xml
Accept: application/json
Cookies:
None
HTML return code:
One of the HTTP return codes
HTML body:
The XML or JSON containing the domain names.
Response examples:
<Domains xmlns="http://www.hp.com/PC/REST/API">
<Domain>
<Name>JOHN</Name>
</Domain>
<Domain>
<Name>DEFAULT</Name>
</Domain>
<Domain>
<Name>TESTING</Name>
</Domain>
<Domain>
<Name>AUTOMATION</Name>
</Domain>
</Domains>
See also: