The monitorRemoveRules Web API Method

Remove a monitor application rule (Global rules cannot be removed).

Version: 1.3

Required Permissions: Full

HTTP method: POST

Supported by Editions: Zend Server

Request Parameters:  

Parameter

 Type

Required

Description

rulesIds

Array

Yes

List of rules ids to be removed

Expected Response Code: 202 Accepted

Response Type: A Boolean response whether the rule was removed or not

Possible Action Specific Error Codes:

HTTP Code

Error Code

Description

500

internalServerError

The system could not retrieve the requested rules’ information, possibly due to database error

404

noSuchMonitorRule

The requested rule was not found

Example

Usage Example

Request (headers removed for the purpose of clarity)

POST /ZendServer/Api/monitorRemoveRules
ruleIds[0]=1

Response (not all headers are shown)

HTTP/1.0 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.3">
	<requestData>
		<apiKeyName><![CDATA[Admin]]></apiKeyName>
		<method>monitorRemove</method>
	</requestData>
	<responseData>
		<ruleRemoved>true</ruleRemoved>
	</responseData>
</zendServerAPIResponse>