The setServerProfile Web API Method
Sets the server profile after the server was bootsraped: Development or Production. Sets the set directives by the demand mode.
Version: 1.10
Required Permissions: Read-Only
HTTP method: POST
Supported by Editions: All
Request Parameters:
Parameter |
Type |
Required |
Description |
production |
Boolean |
No |
Production flag. If true - sets production mode, if false - development. By default TRUE. |
Expected Response Code: 200 OK.
Response Format: Application .zip file containing the retrieved log file.
Possible Action Specific Error Codes: This method has no specific error codes.
Example
|
Request (headers removed for the purpose of clarity)POST /ZendServer/Api/setServerProfile Response (not all headers are shown)<?xml version="1.0" encoding="UTF-8"?><zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.10"><requestData><apiKeyName>angel.eyes</apiKeyName><method>setServerProfile</method></requestData><responseData><profile><success>true</success><type>production</type></profile></responseData></zendServerAPIResponse> |