Open topic with navigation

# Get Projects by Query

## Description

Returns a list of projects by query (filter).

## URL

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

## Project Query Values

QUERY_NAME options

-     VusersLimit

-     ConcurrentRunsLimit

-     ID

-     MachineLimit

-     VUDSLimit

-     Name

-     Domain

## Remarks

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

## HTTP Method

GET: Returns a list of project by query.

## Request

Headers:

Content-Type: application/xml

Accept: application/xml

Cookies:

Version 2020 (or later) | LWSSO_COOKIE_KEY={LwssoCookie};
Versions earlier than 2020 | LWSSO_COOKIE_KEY={LwssoCookie};QCSession={QCSessionCookie};

Request Body:

None

Request Example

    GET http://<LRE_Server>/Admin/rest/v1/projects?query={ID[1001]}
    Content-Type: application/xml
    Accept: application/xml
    Cookie: LWSSO_COOKIE_KEY={LwssoCookie};

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

## See Also

projects
projects/{projectID}