Zabbix Documentation 3.2

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
manual:api:reference:drule:isreadable [2016/11/25 09:55]
manual:api:reference:drule:isreadable [2019/01/28 14:50] (current)
sasha <code js> => <code java>
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 java>
 +{
 +    "​jsonrpc":​ "​2.0",​
 +    "​method":​ "​drule.isreadable",​
 +    "​params":​ [
 +        "​5",​
 +        "​8"​
 +    ],
 +    "​auth":​ "​038e1d7b1735c6a5436ee9eae095879e",​
 +    "​id":​ 1
 +}
 +</​code>​
 +
 +Response:
 +<code java>
 +{
 +    "​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//​.