Open topic with navigation

# Monitors over a Firewall (Get all)

## Description

Retrieves a list of all existing monitors over a firewall.

## URL

    /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

    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

    <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

    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

Monitors over Firewall (Get by ID)
Monitors over a Firewall (Add) Monitors over a Firewall (Delete)