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

The devBarGetRequestInfo Method

Get specific request info.

Version: 1.8

Required Permissions: Read-only

HTTP method: GET

Supported Editions: Zend Server

Request parameters:

Parameter

 Type

Required

Description

requestId

Integer

Yes

The request ID to retrieve.

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

Response Format: requestInfo and sqlQuery

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/devBarGetRequestInfo?id=20

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>devBarGetRequestInfo</method>

</requestData>

<responseData>

<requestInfo>

<id>20</id>

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

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

<httpResponse>200</httpResponse>

<method>GET</method>

<runTime>350</runTime>

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

<startTimeTimestamp>1394098320877</startTimeTimestamp>

<isPrimaryPage>No</isPrimaryPage>

</requestInfo>

<SqlQueries>

<SqlQuery>

<id>3</id>

<success>1</success>

<affectedRows>5</affectedRows>

<string><![CDATA[the sql string]]></string>

</SqlQuery>

...

</SqlQueries>

<logEntries>

<logEntry>

<id>3</id>

<requestId>1</requestId>

<type>E_ERROR</type>

<message><![CDATA[Error Message]]></message>

<filename><![CDATA[Error Message]]></filename>

<line><![CDATA[Error Message]]></line>

</logEntry>

...

</logEntries>

</responseData>

</zendServerAPIResponse>

 

Read Also

  Available API Methods    
  DevBar Methods