The monitorImportRules Web API Method
Receives a list of global rules in XML formats. Refactors the XML to an array and updates the server’s rules accordingly.
Version: 1.3
Required Permissions: Bootstrap
HTTP method: POST
Supported by Editions: Zend Server
Request Parameters:
Parameter |
Type |
Required |
Description |
monitorRules |
String |
Yes |
An XML string that describes the rules to be imported. This xml structure is identical to the one use in monitorExportRules action |
Expected Response Code: 202 Accepted
Response Type: A list of the rule elements that were enabled
Possible Action Specific Error Codes: This action has no specific error codes.
Example
|
Request (headers removed for the purpose of clarity)POST /ZendServer/Api/monitorImportRulesInclude attached uploaded XML file with rules Response (not all headers are shown)<?xml version="1.0" encoding="UTF-8"?><zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.3"><requestData><apiKeyName><![CDATA[Admin]]></apiKeyName><method>monitorGetRulesList</method></requestData><?xml version="1.0" encoding="UTF-8"?><responseData><monitorRulesImported>True</monitorRulesImported></responseData></zendServerAPIResponse> |