Skip to content

buildin_endpoints_get_cron

Marcel Kloubert edited this page Feb 17, 2017 · 4 revisions

Home >> Build-in endpoints >> [GET] /api/cron

[GET] /api/cron

Gets a list of all cron jobs.

This endpoint requires extension.cronJons.getJobs command, as available in vs-cron extension.

Example

Request:

GET /api/cron

Possible response:

Content-type: application/json; charset=utf-8
Content-encoding: gzip
X-Vscode-Restapi: 1.0.0
Date: Fri, 10 Feb 2017 15:47:35 GMT
Connection: keep-alive
Transfer-Encoding: chunked

{
    "code": 0,
    "data": [
        {
            "description": "A cron job",
            "detail": "I have been executed 5979 times",
            "isRunning": false,
            "name": "My job",
            "path": "/api/cron/My%20job"
        }
    ]
}

Other responses

Code Description
410 extension.cronJons.getJobs command not found. s. vs-cron
Clone this wiki locally