Web API Reference Guide > Available API Methods > Codetracing Methods > The codetracingIsEnabled Method

The codetracingIsEnabled Method

Checks the values of the special 'zend_monitor.developer_mode' and 'zend_monitor.event_generate_trace_file' directives. The action also checks the current status of the Code Tracing component and whether a restart is required in order for the directives settings to come into effect.

Version: 1.2

Limitations: This action explicitly does not work on Zend Server 5.6.0 for IBMi

Required Permissions: Read-only

HTTP method: GET

Supported Editions: Zend Server

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

Example

Usage Example

Request

Get /ZendServerManager/Api/codetracingIsEnabled

Response

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

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

    <requestData>

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

           <method>codetracingIsEnabled</method>

    </requestData>

    <responseData>

           <codeTracingStatus>

               <componentStatus>Loaded</componentStatus>

               <traceEnabled>1</traceEnabled>

               <developerMode>1</developerMode>

               <awaitsRestart>1</awaitsRestart>

           </codeTracingStatus>

     </responseData>

<zendServerAPIResponse>

 

Read Also

  Available API Methods    
  Codetracing Methods