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:

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
Copy code

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

## Response

Headers:

One of:

- Content-Type: application/xml

- Content-Type: application/json

Cookies:

None

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

The XML containing the resource folders.

Response Example
Copy code

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

Example query that retrieves folder names with parent IDs greater that 1002
Copy code

    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... LoadRunner Enterprise REST API Reference LRE REST API All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic(Undefined variable: _rscC_Basic_Variables.VersionLabel)