The codetracingDisable Web API Method

Disable the code-tracing directive two directives necessary for creating tracing dumps, this action does not disable the code-tracing component. This action unsets the special 'zend_monitor.developer_mode' and 'zend_monitor.event_generate_trace_file' directives.

Version: 1.2

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

Required Permissions: Full

HTTP method: POST

Supported Editions: Zend Server

Request parameters:

Parameter

 Type

Required

Description

restartNow

Integer

No

Perform a php restart as part of the action to apply the new settings, defaults to true

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

Response Format: See codetracingIsEnabled

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

500

internalServerError

The code tracing action failed

Example

Usage Example

Request

Post /ZendServer/Api/codetracingDisable

Response

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

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

    <requestData>

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

           <method>codetracingDisable</method>

    </requestData>

    <responseData>

           <codeTracingStatus>

               <componentStatus>Loaded</componentStatus>

               <traceEnabled>0</traceEnabled>

               <developerMode>0</developerMode>

               <awaitsRestart>1</awaitsRestart>

           </codeTracingStatus>

     </responseData>

<zendServerAPIResponse>