Get resource folders by ID

Description

Gets a resource folder by the specified ID.

URL

Copy code
/LoadTest/rest/domains/{domainName}/projects/{projectName}/resourcefolders/{id}

Remarks

None

HTTP method

GET: Returns the resource folder.

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:

GET: No request body.

Request example:

Copy code
GET http://<LRE_Server>/LoadTest/rest/domains/{domainName}/projects/{projectName}/resourcefolders/1002
Content-Type: application/xml
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 successful retrieval, returns HTTP status 200 (OK).

HTML body:

GET: Returns the data on the entity in the response.

Response examples:

Copy code
XML example:
<ResourceFolder xmlns="http://www.hp.com/PC/REST/API">
    <Name>MNS_OFW</Name>
    <ParentFolderID>1</ParentFolderID>  
    <Description />
    <ID>1002</ID>
</ResourceFolder>
Copy code
JSON example:
{    "ID": 1001,
     "Name": "LT_Assets_nrJaD",
     "ParentFolderID": 1,
     "Description": null
}

See also: