Web API Reference Guide > Available API Methods > Studio Integration Methods > The studioStartProfile Method

Method studioStartProfile Method

Start a profiling session with Zend Studio's integration using an event-group's identifier.

Version: 1.2

Required Permissions: Full

HTTP method: POST

Supported Editions: Zend Server

Request parameters:

Parameter

 Type

Required

Description

eventsGroupId

String

Yes

The issue event group identifier

overrideHost

String

No

Override the host address sent to Zend Server for initiating a Debug session. This is used to point Zend Server at the right address where Studio is executed

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

Response Format: Response successful message or error message

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

Example

Usage Example

Request

POST/ZendServer/Api/studioStartProfile

Content-type: application/x-www-form-urlencoded

eventsGroupId=36

Response

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

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

<requestData>

<apiKeyName><![CDATA[Admin]]></apiKeyName>

<method>studioStartProfile</method>

</requestData>

<responseData>

<profileRequest>

<success>1</success>

<message>Debug session completed successfully</message>

</profileRequest>

</responseData>

</zendServerAPIResponse>

 

 

Read Also

  Available API Methods    
  Statistics Methods