tier rule info

Retrieves information on a rule (specified by name).

Syntax

CLI
maprcli tier rule info
    -name <rule_name>
    [ -output verbose ]
    [ -cluster <cluster_name> ]
REST
Request Type GET
Request URL
http[s]://<host:port>/rest/tier/rule/info?<parameters>

Parameters

Parameter Description
cluster The name of the cluster on which to run the command.
name The name of the rule.
output The type of output. The default value is verbose.

Output

The command returns the following:

expression The rules defined using a combination of expressions.
inuse Whether (true) or not (false) the rule is associated with a volume.
rulename The name of the rule.
ruleid The ID of the rule.

Example

Retrieve information on the rule named testRule:

# maprcli tier rule info -name testRule
expression                              inuse  rulename  ruleid  
u:m7user1 | (u:mapr & (s:5g | m:365d))  true   testRule  2  
# curl -X GET 'https://server.sj.us:8443/rest/tier/rule/info?name=testRule' --user <username>:<password>
{"timestamp":1528147823598,"timeofday":"2018-06-04 02:30:23.598 GMT-0700 PM","status":"OK","total":1,"data":[{"ruleid":"2","rulename":"testRule","expression":"u:m7user1 | (u:mapr & (s:5g | m:365d))","inuse":"true"}]}