schedule create

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.

Syntax

CLI
maprcli schedule create
    [ -cluster <cluster> ]
    -schedule <JSON>
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/schedule/create?<parameters>

Parameters

Parameter Description
cluster The cluster on which to run the command.
schedule A JSON object describing the schedule. See Schedule Objects for more information.

Examples

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"}]}