The configurationsRevertChanges Web API Method

Revert the configuration on a given server to their default settings.

Version: 1.3

Required Permissions: Full

HTTP method: POST

Supported by Editions: All

Request Parameters:

Parameter

 Type

Required

Description

serverId

Integer

Yes

ID of the server that needed to be reverted to blueprint

doRestart

Boolean

No

Should a restart be performed after the changes were reverted.

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

Response Type: Success status.

Possible Action Specific Error Codes:

HTTP Code

 Error Code

Description

404

noSuchServer

ID of the server that needed to be reverted to blueprint.

Example

Usage Example

Request (headers removed for clarity)

POST /ZendServer/Api/configurationsRevertChanges

Response

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

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

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>configurationRevertChanges</method>

</requestData>

<responseData>

<serverInfo>

<id>5</id>

<name>www-02</name>

<address>www-02.local</address>

<status>pendingRestart</status>

<messageList />

<debugModeEnabled>true</debugModeEnabled>

</serverInfo>

</responseData>

</zendServerAPIResponse>

Important Note:

For Zend Server on Linux, this action is also available via the command line using CLI tools. For more information, see ZendServerSDK.