Share this page

# Get all monitors over a firewall

## Description

Retrieves a list of all existing monitors over a firewall.

## URL

Copy code

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

## HTTP Method

GET: Returns the monitors over a firewall 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/mofw

## 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 monitors over a firewall.

Response Example
Copy code

    <MonitorsOfw xmlns="http://www.hp.com/PC/REST/API">
      <MonitorOfw>
         <Name>mon_ofw_1</Name>
         <MIListenerID>1002</MIListenerID>
         <MachineKey>>pclab.net_ofw</MachineKey>
         <FolderID>1002</FolderID>
         <Description />
         <ID>1020</ID>
         <FolderName>MONS_OFW</FolderName>
      </MonitorOfw>
      <MonitorOfw>
         <Name>mon_ofw_2</Name>
         <MIListenerID>1003</MIListenerID>
         <MachineKey>my-vm01_ofw</MachineKey>
         <FolderID>1002</FolderID><Description />
         <ID>1021</ID>
         <FolderName>MONS_OFW</FolderName>
      </MonitorOfw>
      <MonitorOfw>
         <Name>mon_ofw_3</Name>
         <MIListenerID>1003</MIListenerID>
         <MachineKey>my-vm02_ofw</MachineKey>
         <FolderID>1002</FolderID>
         <Description />
         <ID>1022</ID>
         <FolderName>MONS_OFW</FolderName>
      </MonitorOfw>
      <MonitorOfw>
         <Name>mon_ofw_4</Name>
         <MIListenerID>1007</MIListenerID>
         <MachineKey>my-vm07_ofw</MachineKey>
         <FolderID>1111</FolderID>
         <Description />
         <ID>1022</ID>
         <FolderName>MONS_OFW</FolderName>
      </MonitorOfw>
    </MonitorsOfw>

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

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

    MonitorsOfw xmlns="http://www.hp.com/PC/REST/API">
       <MonitorOfw>
           <Name>mon_ofw_1</Name>
       </MonitorOfw> <MonitorOfw>
           <Name>mon_ofw_2</Name>
       </MonitorOfw>
       <MonitorOfw>
           <Name>mon_ofw_3</Name>
       </MonitorOfw>
       <MonitorOfw>
           <Name>mon_ofw_4</Name>
       </MonitorOfw>
    </MonitorsOfw>

## See Also

Get monitors over firewall by ID
Add a monitor over a firewall Delete a monitor over a firewall

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)