Import a saved configuration snapshot into the server.
Version: 1.1
Required Permissions: Full
HTTP method: POST
Supported by Editions: All
Request Parameters: Because this method is expected to contain a file upload, parameters are expected to be encoded using the ‘multipart/form-data’ content type.
Parameter |
Type |
Required |
Description |
configFile |
File |
Yes |
The configuration snapshot file to import. Content-type for the file must be "application/vnd.zend.serverconfig". |
ignoreSystemMismatch |
Boolean |
No |
If set to TRUE, configuration must be applied even if it was exported from a different system (other major PHP version, Zend Server version or operating system). The default value is FALSE. |
Expected Response Code: 200 OK. For more information see Response Format.
Response Type: serversList with information about affected servers.
Possible Action Specific Error Codes:
HTTP Code |
Error Code |
Description |
500 |
importFailed |
Importing the configuration snapshot failed. |
409 |
systemMismatch |
The system type, PHP version or Zend Server version from which the configuration snapshot was exported does not match the current system. This error can be overridden if the ignoreSystemMismatch parameter is set to TRUE. |
|
Request (some headers removed for clarity)
Response
|
|
|
|
Related Links: Configuration Management Methods |
|
|
© 1999-2013 Zend Technologies, Ltd. All rights reserved.