Get Hosts List by Query

Description

Returns a list of hosts by query (filter).

URL

Copy code
/LoadTest/rest/domains/{domainName}/projects/{projectName}/hosts?query={name["host name"]}

Where:

Copy code
query={<QUERY_NAME>["<YOUR_QUERY_VALUE>"]}

Hosts Query Values

QUERY_NAME options:

  • name
  • state
  • runtime-state
  • purpose
  • priority
  • source

Remarks

The host data can be passed as XML containing the equivalent data.

HTTP Method

GET: Returns a list of hosts by query.

Request

Headers:

Content-Type: application/xml

Cookies:

Version 2020 (or later)

LWSSO_COOKIE_KEY={LwssoCookie};

Versions earlier than 2020

LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

None

Response

Headers:

Content-Type: application/xml

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

GET: Returns the data on the entity in the response. See hosts XML

See Also

Add a host
Get or delete a host by ID