Get a cron entry
GET/node/:hostname/schedule/cron/:name
Get a specific cron drop-in entry by name on the target node.
Request
Path Parameters
Possible values: non-empty
Target agent hostname, reserved routing value (_any, _all), or label selector (key:value).
Possible values: non-empty, Value must match regular expression ^[a-zA-Z0-9_-]+$
Cron entry name. Must contain only alphanumeric characters, underscores, and hyphens.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Cron entry detail.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The job ID used to process this request.
results
object[]
required
Hostname of the agent that reported this entry.
Possible values: [ok, failed, skipped]
The status of the operation for this host.
Cron entry name.
Object store name for the deployed content.
Cron schedule expression. Present for /etc/cron.d/ entries.
Possible values: [hourly, daily, weekly, monthly]
Periodic interval (hourly, daily, weekly, monthly). Present for /etc/cron.{interval}/ entries.
Where the entry lives: "cron.d", "hourly", "daily", "weekly", or "monthly".
User the cron entry runs as.
Error message if the agent failed to retrieve this entry.
{
"job_id": "550e8400-e29b-41d4-a716-446655440000",
"results": [
{
"hostname": "string",
"status": "ok",
"name": "string",
"object": "string",
"schedule": "string",
"interval": "hourly",
"source": "string",
"user": "string",
"error": "string"
}
]
}
Bad request - validation error.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Unauthorized - API key required
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Forbidden - Insufficient permissions
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Cron entry not found.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}
Error retrieving cron entry.
- application/json
- Schema
- Example (from schema)
Schema
A description of the error that occurred.
Additional details about the error.
The error code.
{
"error": "Failed to retrieve status.",
"details": "Failed due to network timeout.",
"code": 500
}