tier rule modify
Modifies the criteria in a tiering rule (specified by name).
Syntax
- CLI
$ maprcli tier rule modify -name <rule_name> -expr <expression> [ -cluster <cluster_name> ]
- REST
Request Type POST Request URL http[s]://<host:port>/rest/tier/rule/modify?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
The name of the cluster on which to run the command. |
expr |
The criteria for offloading data. The criteria can be defined using a
combination of the following:
|
name |
The name of the rule. |
Examples
Modify the criteria in the tiering rule, ksTestRule, to offload all files in the volume:
# /opt/mapr/bin/maprcli tier rule modify -name ksTestRule -expr "p" -json
{
"timestamp":1516225073780,
"timeofday":"2018-01-17 09:37:53.780 GMT+0000",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Successfully updated rule: 'ksTestRule'"
]
}
# curl -X POST 'https://server.sj.us:8443/rest/tier/rule/modify?name=ksTestRule&expr=p' --user <username>:<password>
{"timestamp":1526489124827,"timeofday":"2018-05-16 09:45:24.827 GMT-0700 AM","status":"OK","total":0,"data":[],"messages":["Successfully updated rule: 'ksTestRule'"]}