Web API Reference Guide > Available API Methods > DevBar Methods > The devBarGetRequestsList Method

The devBarGetRequestsList Method

Get the list of requests according to specific page ID. If lastId is specified, only requests that have a bigger ID are returned.

Version: 1.8

Required Permissions: Read-only

HTTP method: GET

Supported Editions: Zend Server

Request parameters:

Parameter

 Type

Required

Description

pageId

String

Yes

The page ID to retrieve requests from.

lastId

Integer

No

Specify the lastId used to retrieve only new requests.

Expected Response Code: 200 OK. For more information see Response Format.

Response Format: partial requestsList (id, pageId, url, httpResponse and method)

Possible Action Specific Error Codes: This action has no specific error codes

Example

Usage Example

Request (headers removed for the purpose of clarity)

GET /ZendServerManager/Api/devBarGetRequestsList?pageId=5

Response (not all headers are shown)

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.6">

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>devBarGetRequestsList</method>

</requestData>

<responseData>

<requestsList>

<requestInfo>

<id>20</id>

<pageId>5@423545@0</pageId>

<url><![CDATA[http://localhost/mysite/index.php]]></url>

<httpResponse>200</httpResponse>

<method>GET</method>

<runTime>20</runTime>

<startTime>2014-03-06T11:32:00+02:00</startTime>

<startTimeTimestamp>1394098320877</startTimeTimestamp>

<isPrimaryPage>No</isPrimaryPage>

</requestInfo>

...

</requestsList>

</responseData>

</zendServerAPIResponse>

 

Read Also

  Available API Methods    
  DevBar Methods