The configurationsApplyChanges Web API Method

Apply the configuration changes on a given server to the blueprint. In a cluster environment, this will apply the changes to all servers in the cluster.

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

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/configurationsApplyChanges

Response

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

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

<requestData>

<apiKeyName>angel.eyes</apiKeyName>

<method>configurationApplyChanges</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 Serveron Linux, this action is also available via the command line using CLI Tools. For more information see CLI Tools.