schedule modify
Modifies an existing schedule, specified by ID. Permissions
required: fc
or a
.
To find a schedule's ID:
- Use the schedule list command to list the schedules.
- Select the schedule to modify.
- Pass the selected schedule's ID in the -id parameter to the
schedule modify
command.
Syntax
- CLI
-
maprcli schedule modify [ -cluster <cluster> ] -id <schedule ID> [ -name <schedule name> ] [ -rules <JSON>]
- REST
Request Type POST Request URL http[s]://<host>:<port>/rest/schedule/modify?<parameters>
Parameters
Parameter | Description |
---|---|
cluster |
The cluster on which to run the command. |
id
|
The ID of the schedule to modify. |
name |
The new name of the schedule. |
rules |
A JSON object describing the rules for the schedule. If specified, replaces the entire existing rules object in the schedule. For information about the fields to use in the JSON object, see Rule Fields. |
Examples
Modify a schedule
maprcli schedule modify -id 0 -name Newname -rules '[{"frequency":"weekly","date":"sun","time":7,"retain":"2w"},{"frequency":"daily","time":14,"retain":"1w"}]'
https://abc.sj.us:8443/rest/schedule/modify?id=0&name=Newname&rules=[{"frequency":"weekly","date":"sun","time":7,"retain":"2w"},{"frequency":"daily","time":14,"retain":"1w"}]