Share this page

# Manage host attributes for automatch LGs

## Description

Manage host attributes for automatch load generators.

## URL

Copy code

    LoadTest/rest/domains/<domain>/projects/<projects>/tests/<testId>/attributes

## Remarks

Before setting attributes for load generators (LGs), they must be assigned to groups.

In the coded test, for one automatch LG, the host attributes and location will be displayed only for the first group to which the LG is assigned.

The data can be passed as XML or JSON containing the equivalent data.

## HTTP method

POST: Manage the host attributes and locations for the automatch LGs.

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

XML or JSON describing the attributes and locations.

Request examples:

Copy code
XML example:

    <ArrayOfHostAttribute>
      <HostAttribute>
        <HostName xmlns="http://www.hp.com/PC/REST/API">LG1</HostName>
        <LocationName xmlns="http://www.hp.com/PC/REST/API">test_location</LocationName>
        <Attributes xmlns="http://www.hp.com/PC/REST/API">test_attributes</Attributes>
      </HostAttribute>
    </ArrayOfHostAttribute>

Copy code
JSON example

    [{
      "hostName": "LG2",
      "locationName": "test_location",
      "attributes": ["test_attributes1", "test_attributes2"]
    }]

## Response

Headers:

None

Cookies:

None

HTML return code:

One of the HTTP return codes

HTML body:

None

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)