You are currently viewing Zend Server 5.x documentation. Click here to view the latest Zend Server online documentation.
You are here: Web API Reference Guide > Available API Methods > Codetracing Methods > The codetracingDownloadTraceFile Method

The codetracingDownloadTraceFile Method

Download the amf file specified by the codetracing identifier.

 

Required Permissions: Full

HTTP method: GET

Supported Editions: Zend Server, Zend Server Cluster Manager

Request parameters:

Parameter

 Type

Required

Description

traceFile

	String	

Yes	

Trace file identifier. Note that a codetracing identifier is provided as part of the monitorGetRequestSummary xml response

 

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

Response Format:

A successful call to the monitorDownloadAmf method will result in an HTTP response with the amf  file in the response body.

The content type for the amf file is “application/x-amf”. In addition, the response will include a “Content-disposition” header specifying a suggested file name for the file.

This is different from most Web API calls where the content type is expected to be “application/vnd.zend.serverpi+xml; version=…” and the response body payload is expected to be in XML format.

In case of error, a regular error response will be returned, containing an <errorData> element as defined for other Web API methods.

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

404

noSuchTrace

The requested trace could not be found

 

Usage Example

Example:

Request (headers removed for the purpose of clarity):

GET /ZendServerManager/Api/codetracingDownloadTraceFile?traceFile=10.123.4

 

Response (not all headers are shown):

HTTP/1.0 200 OK

Content-type: application/x-amf

Content-disposition: attachment;

  filename=”10.123.4.amf”

[...binary data follows...]

 

 

 

 

Related Links

Related Links:

Available API Methods

 

 

 

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