cronjob.create ============== Create a new cron job. `stderr` and `stdout` are boolean values which if `true`, represent that we would like to suppress standard error / standard output respectively. .. examples(websocket):: Create a cron job which executes `touch /tmp/testfile` after every 5 minutes. :::javascript { "id": "6841f242-840a-11e6-a437-00e04d680384", "msg": "method", "method": "cronjob.create", "params": [{ "enabled": true, "schedule": { "minute": "5", "hour": "*", "dom": "*", "month": "*", "dow": "*" }, "command": "touch /tmp/testfile", "description": "Test command", "user": "root", "stderr": true, "stdout": true }] } .. raw:: html
Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: data

data

Type: object
No Additional Properties

Enabled

Type: boolean Default: true

Stderr

Type: boolean Default: false

Stdout

Type: boolean Default: true

CronJobSchedule

Type: object
Default:
{ "minute": "00", "hour": "*", "dom": "*", "month": "*", "dow": "*" }

No Additional Properties

Minute

Type: string Default: "00"

Hour

Type: string Default: "*"

"00" - "23"

Dom

Type: string Default: "*"

"1" - "31"

Month

Type: string Default: "*"

"1" (January) - "12" (December)

Dow

Type: string Default: "*"

"1" (Monday) - "7" (Sunday)

Command

Type: string

Description

Type: string Default: ""

User

Type: string

CronJobEntry

Type: object
No Additional Properties

Enabled

Type: boolean Default: true

Stderr

Type: boolean Default: false

Stdout

Type: boolean Default: true

CronJobSchedule

Type: object
Default:
{ "minute": "00", "hour": "*", "dom": "*", "month": "*", "dow": "*" }

No Additional Properties

Minute

Type: string Default: "00"

Hour

Type: string Default: "*"

"00" - "23"

Dom

Type: string Default: "*"

"1" - "31"

Month

Type: string Default: "*"

"1" (January) - "12" (December)

Dow

Type: string Default: "*"

"1" (Monday) - "7" (Sunday)

Command

Type: string

Description

Type: string Default: ""

User

Type: string

Id

Type: integer


*Required roles:* SYSTEM_CRON_WRITE