Share this page

# Get domains

Available in versions: 12.60 and later

## Description

Gets the domains list for the authenticated user.

## URL

Copy code

    /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:

Copy code

    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:

Copy code
XML example:

    <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>

Copy code
JSON example:

    [
        {
            "Name": "AUTO"
        },
        {
            "Name": "DEFAULT"
        },
        {
            "Name": "Test"
        }
    ]

See also:

- Get projects

Tips to improve your search results... OpenText™ Enterprise Performance Engineering API Reference OpenText™ Enterprise Performance Engineering All View Local Help Center View Online Help Center(Undefined variable: _rscC_Basic_Variables.VersionLabel)