# Show

Get the detail of the particular cronjob.

# HTTP Request:

GET https://api.serveravatar.com/organizations/{organization}/servers/{server}/cronjobs/{cronjob}

# Curl Request example:

curl --request GET \
  --url "https://api.serveravatar.com/organizations/5/servers/15/cronjobs/63" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Cronjob Show

  • 200 (Ok)
{
  "cronjob": {
    "id": 63,
    "server_id": 15,
    "name": "TestCronjob",
    "system_user": "q9mStIMWR3r5HAzU",
    "schedule": "0 0 * * *",
    "command": "apt-get upgrade",
    "custom_scheduling": "0",
    "enabled": 1,
    "created_at": "2023-03-01 01:53:15",
    "updated_at": "2023-03-01 01:53:15",
    "minute": "0",
    "hour": "0",
    "month": "*",
    "day_of_week": "*",
    "day_of_month": "*",
  }
}

# Cronjob Not Found

  • 404 (Not Found)
{
    "message": "Cronjob not found!"
}

# Organization not found

  • 404 (Not Found)
{
    "message": "Organization not found!"
}

# Server not found

  • 404 (Not Found)
{
    "message": "Server not found!"
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong!"
}
Last Updated: 3/1/2023, 2:00:48 PM