You are currently viewing Zend Server 5.x documentation. Click here to view the latest Zend Server online documentation.

The codetracingIsEnabled Method

Check if the directives zend_codetracing.always_dump and zend_codetracing.trace_enabled are set, and if the code-tracing component is active.

 

Limitations: This action requires php 5.3 and will not operate on previous php versions

Required Permissions: Read-only

HTTP method: GET

Supported Editions: Zend Server, Zend Server Cluster Manager

Request parameters:None

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

Response Format: Indication for the component's current status

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

500

internalServerError

The code tracing action failed

 

Usage Example

Example:

Request:

Get /ZendServerManager/Api/codetracingIsEnabled

 

Response:

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

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

    <requestData>

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

           <method>codetracingIsEnabled</method>

    </requestData>

    <responseData>

           <codeTracingStatus>

               <componentStatus>Active</componentStatus>

               <alwaysDump>On</alwaysDump>

               <traceEnabled>On</traceEnabled>

               <awaitsRestart>1</awaitsRestart>

           </codeTracingStatus>

     </responseData>

<zendServerAPIResponse>

 

 

 

 

Related Links

Related Links:

Available API Methods

 

 

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.