List Cronjobs
GET
/v1/cronjobsList all the cronjobs across all your environments.
Request
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
array [object {5}]
required
type
string
required
id
string
required
attributes
object
required
relationships
object
required
links
object
required
Example
{
"data": [
{
"type": "cronjobs",
"id": "271",
"attributes": {
"active": true,
"disabled": false,
"command": "flock -n ~/.wp_cron.lock wp cron event run --due-now --path=/cust/0/wefwef_8988/testyx_1760/site/public --quiet",
"comment": "Generated by Servebolt Optimizer (name=wp-cron-single-site,rev=1)",
"schedule": "0,5,10,15,20,25,30,35,40,45,50,55 * * * *",
"notifications": "none"
},
"relationships": {
"environment": {
"links": {
"related": "https://xxx/v1/environments/1760"
},
"data": {
"type": "environments",
"id": "1760"
}
}
},
"links": {
"self": "https://xxx/v1/cronjobs/271"
}
},
{
"type": "cronjobs",
"id": "265",
"attributes": {
"active": true,
"disabled": false,
"command": "flock -n ~/.wp_cron.lock wp cron event run --due-now --path=/cust/0/pepepe_8967/testop_1731/site/public --quiet",
"comment": "Generated by Servebolt Optimizer (name=wp-cron-single-site,rev=1)",
"schedule": "0,5,10,15,20,25,30,35,40,45,50,55 * * * *",
"notifications": "none"
},
"relationships": {
"environment": {
"links": {
"related": "https://xxx/v1/environments/1731"
},
"data": {
"type": "environments",
"id": "1731"
}
}
},
"links": {
"self": "https://xxx/v1/cronjobs/265"
}
}
]
}
Modified at 4 months ago