Cron create
POST /crons/create HTTP/1.1
Content-Type: application/json
{
"Name": "test-cron-job",
"Schedule": "*/5 * * * *",
"ContainerName": "",
"Config": {
"Hostname": "",
"Domainname": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [],
"Cmd": [
"ping",
"-c",
"3",
"8.8.8.8"
],
"Image": "busybox",
"Volumes": {},
"WorkingDir": "",
"Entrypoint": [],
"Labels": {
"sh_hyper_instancetype": "s4"
},
"StopSignal": "SIGTERM"
},
"HostConfig": {
"Binds": [],
"NetworkMode": "bridge",
"PortBindings": {},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"Links": [],
"PublishAllPorts": false,
},
"NetConfig": {
"EndpointsConfig": {}
},
"OwnerEmail": "",
}Last updated