Zabbix Documentation 5.0

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


manual:api:reference:drule:isreadable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:api:reference:drule:isreadable [2016/01/22 12:49]
sasha deprecated drule.isreadable
— (current)
Line 1: Line 1:
-===== drule.isreadable ===== 
  
-==== Description ==== 
- 
-''​boolean drule.isreadable(array **discoveryRuleIds**)''​ 
- 
-This method checks if the given discovery rules are available for reading. 
- 
-<note warning>​This method is deprecated and will be removed in the future. Please use [[get|drule.get]] instead.</​note>​ 
-==== Parameters ==== 
- 
-''​(array)''​ IDs of the discovery rules to check. 
- 
-==== Return values ==== 
- 
-''​(boolean)''​ Returns ''​true''​ if the given discovery rules are available for reading. 
- 
-==== Examples ==== 
- 
-=== Check multiple discovery rules === 
- 
-Check if the two discovery rules are readable. 
- 
-Request: 
-<code js> 
-{ 
-    "​jsonrpc":​ "​2.0",​ 
-    "​method":​ "​drule.isreadable",​ 
-    "​params":​ [ 
-        "​5",​ 
-        "​8"​ 
-    ], 
-    "​auth":​ "​038e1d7b1735c6a5436ee9eae095879e",​ 
-    "​id":​ 1 
-} 
-</​code>​ 
- 
-Response: 
-<code js> 
-{ 
-    "​jsonrpc":​ "​2.0",​ 
-    "​result":​ true, 
-    "​id":​ 1 
-} 
-</​code>​ 
- 
-==== See also ==== 
- 
-  * [[iswritable|drule.iswritable]] 
-==== Source ==== 
- 
-CDRule::​isReadable() in //​frontends/​php/​include/​classes/​api/​services/​CDRule.php//​.