Share this page

# Get all resource folders

## Description

Retrieves a list of all existing resource folders in the project.

## URL

Copy code

    /LoadTest/rest/domains/{domainName}/projects/{projectName}/resourcefolders

## HTTP method

GET: Returns the folders in the body of the response.

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

None

Request example:

Copy code

    GET http://<LRE_Server>/LoadTest/rest/domains/MyDomain/projects/MyProject/resourcefolders

## Response

Headers:

One of:

- Accept: application/xml

- Accept: application/json

Cookies:

None

HTML return code:

One of the HTTP return codes

HTML body:

The XML or JSON containing the resource folders.

Response examples:

Copy code
XML example:

    <ResourceFolders xmlns="http://www.hp.com/PC/REST/API">
      <ResourceFolder>
         <Name>Resources</Name>
         <ParentFolderID>0</ParentFolderID>
         <Description />
         <ID>1</ID>
      </ResourceFolder>
      <ResourceFolder>
         <Name>Dynatrace<</Name>
         <ParentFolderID>1</ParentFolderID>
         <Description />
         <ID>1001</ID>
      </ResourceFolder>
      <ResourceFolder>
         <Name>MONS_OFW</Name>
         <ParentFolderID>1</ParentFolderID>
         <Description />
         <ID>1002</ID>
      </ResourceFolder>
      <ResourceFolder>
         <Name>Resources</Name>
         <ParentFolderID>1002</ParentFolderID>
         <Description />
         <ID>1003</ID>
      </ResourceFolder>
      <ResourceFolder>
         <Name>mofs_sub_sub_folder</Name>
         <ParentFolderID>1003</ParentFolderID>
         <Description />
         <ID>1004</ID>
      </ResourceFolder>
    </ResourceFolders>

Copy code
JSON example:

    [
        {
            "ID": 1,
            "Name": "Resources",
            "ParentFolderID": 0,
            "Description": null
        },
        {
            "ID": 1000,
            "Name": "LT_Assets_yKQNa",
            "ParentFolderID": 1,
            "Description": null
        },
        {
            "ID": 1001,
            "Name": "LT_Assets_nrJaD",
            "ParentFolderID": 1,
            "Description": null
        }
    ]

Copy code
XML example query that retrieves folder names with parent IDs greater that 1002:

    GET http://my-vm2468>/LoadTest/rest/domains/MyDomain/projects/MyProject/resourcefolders?fields=Name&query={ID[>1002]}

    <ResourceFolders xmlns="http://www.hp.com/PC/REST/API">
       <ResourceFolder>
          <Name>mofs_sub_folder</Name>
       </ResourceFolder>
       <ResourceFolder>
          <Name>mofs_sub_sub_folder</Name>
       </ResourceFolder>
       <ResourceFolder>
          <Name>mofs_sub_sub_sub_folder</Name>
       </ResourceFolder>
       <ResourceFolder>
          <Name>Created_By_Rest</Name>
       </ResourceFolder>
    </ResourceFolders>

See also:

- Get resource folders by ID
- Add resource folder
- Delete resource folder

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)