30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Zend Server <strong>Reference</strong> Manual<br />

clusterDisableServer<br />

This method disables a cluster member. This process may be asynchronous if Session Clustering is<br />

used. If this is the case, the initial operation returns an HTTP 202 response. As long as the server is not<br />

fully disabled, further calls to this method are idempotent. On a Zend Server Cluster Manager with no<br />

valid license, this operation fails.<br />

Required Permissions: full<br />

HTTP method: POST<br />

Supported by Editions: Zend Server Cluster Manager<br />

Request Parameters:<br />

Parameter Type Required Description<br />

serverId String Yes The server ID<br />

Expected Response Code:<br />

364<br />

200 OK - The process was completed successfully. This status is expected if there is no need to<br />

perform a graceful shutdown process.<br />

202 Accepted - The disabling process has started but was not completed yet. You can check the<br />

server status within a few seconds using the clusterGetServerStatus method to verify that the<br />

operation is complete.<br />

Response Type: serverInfo with the status of the server being disabled. The status is either<br />

shuttingDown or disabled. On a Zend Server Cluster Manager with no valid license, this operation fails.<br />

Possible Action Specific Error Codes:<br />

HTTP<br />

Code<br />

Error Code Description<br />

404 noSuchServer There is no server with the provided server ID.<br />

500 cantConnectToServer Zend Server Cluster Manager is unable to connect to the<br />

specified server.<br />

500 invalidServerResponse An invalid or unexpected response from the server.<br />

503 temporarilyLocked The server cannot be disabled because another server in the<br />

cluster is performing a graceful startup/shutdown.<br />

405 notImplementedByEdition The method is not implemented by this edition of Zend Server.<br />

500 serverNotLicensed Zend Server Cluster Manager is not licensed.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!