The codetracingCreate Web API Method

Create a new code-tracing entry.

Note:

This action may not return a full response due to the way it is implemented. You are guaranteed to get the correct traceId but may not get any other details. Use the traceId value to retrieve the up-to-date values when they become available. This wait-time may change due to request sizes and other factors.

Version: 1.2

Required Permissions: Full

HTTP method: POST

Supported Editions: Zend Server

Request parameters:

Parameter

 Type

Required

Description

url

String

Yes

URL-encoded URL to call the code tracing request

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

Response Format: A code-tracing entry with full details or an error message explaining the failure

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

500

internalServerError

The code tracing action failed

Example

Usage Example

Request

Post /ZendServer/Api/codetracingCreate

url=http%3A%2F%2Flocalhost%2Ftest.php

Response

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

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

    <requestData>

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

           <method>codetracingCreate</method>

    </requestData>

    <responseData>

           <codeTrace>

               <id>1.123.5</id>

               <date>123412341234</date>

               <url>http://localhost/test.php</url>

               <createdBy>Monitor Event</createdBy>

               <fileSize>12341234</fileSize>

               <applicationId>1</applicationId>

           </codeTrace>

     </responseData>

<zendServerAPIResponse>