Share this page

# Get host attributes

## Description

Retrieves all the available host attributes

## URL

Copy code

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/host-attributes

## HTTP method

GET: Returns a list of host attributes.

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

No request body.

Request examples:

Copy code
XML example:

    GET http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/host-attributes
    Content-Type: application/xml
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

Copy code
JSON example:

    GET http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/host-attributes
    Content-Type: application/json
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

## Response

Headers:

One of:

- Accept: application/xml

- Accept: application/json

Cookies:

None

HTML return code:

One of the HTTP return codes

Upon success, it returns HTTP status 200 (OK).

HTML body:

A list of the available host attributes. If there are no host attributes, an empty list will be returned. If the user is not authenticated, an error is returned.

Response examples:

Copy code
XML example:

    <ArrayOfString>
        <string>Host memory:High</string>
        <string>Host memory:Low</string>
        <string>Host memory:Medium</string>
        <string>Host strength:High</string>
        <string>Host strength:Low</string>
        <string>Host strength:Medium</string>
        <string>Installed components:.NET Framework</string>
        <string>Installed components:Citrix Client</string>
        <string>Installed components:Java runtime</string>
        <string>Installed components:Oracle Client</string>
        <string>test-abc</string>
    </ArrayOfString>

Copy code
JSON example:

    [
      "Host memory:High",
      "Host memory:Low",
      "Host memory:Medium",
      "Host strength:High",
      "Host strength:Low",
      "Host strength:Medium",
      "Installed components:.NET Framework",
      "Installed components:Citrix Client",
      "Installed components:Java runtime",
      "Installed components:Oracle Client",
      "test-abc"
    ]

See also:

- Hosts
- Add a host

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)