Creates a schedule. Permissions required: fc or
a.
A schedule can be associated with a volume to automate mirror syncing, snapshot creation, and data offload. See volume create and volume modify.
maprcli schedule create
[ -cluster <cluster> ]
-schedule <JSON>
| Request Type | POST |
| Request URL | |
| Parameter | Description |
|---|---|
cluster |
The cluster on which to run the command. |
schedule
|
A JSON object describing the schedule. See Schedule Objects for more information. |
Scheduling a Single Occurrence
maprcli schedule create -schedule '{"name":"Schedule-1","rules":[{"frequency":"once","retain":"1w","time":13,"date":"12/5/2010"}]}'
https://abc.sj.us:8443/rest/schedule/create?schedule={"name":"Schedule-1","rules":[{"frequency":"once","retain":"1w","time":13,"date":"12/5/2010"}]}
A Schedule with Several Rules
maprcli schedule create -schedule '{"name":"Schedule-2","rules":[{"frequency":"weekly","date":"sun","time":7,"retain":"2w"},{"frequency":"daily","time":14,"retain":"1w"},{"frequency":"hourly","retain":"1w"},{"frequency":"yearly","date":"11/5","time":14,"retain":"1w"}]}'
https://abc.sj.us:8443/rest/schedule/create?schedule={"name":"Schedule-1","rules":[{"frequency":"weekly","date":"sun","time":7,"retain":"2w"},{"frequency":"daily","time":14,"retain":"1w"},{"frequency":"hourly","retain":"1w"},{"frequency":"yearly","date":"11/5","time":14,"retain":"1w"}]}