Resources > Manage Hosts > Get Hosts List by Query

Get Hosts List by Query

Description

Returns a list of hosts by query (filter).

URL

/Admin/rest/v1/hosts?query={<QUERY_NAME>["<YOUR_QUERY_VALUE>"]}

Hosts Query Values

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

Accept: application/xml

Cookies:

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

See Also

hosts
hosts/{hostID}