Skip to content

Asynchronous Tasks Status Verification

Description

Asynchronous tasks status verification service.

URL: https://api.cdnvideo.ru/cdn/api/v1/tasks?id=<task_id>

  • Method: GET
  • Headers: CDN-AUTH-TOKEN
  • Response Data Type: JSON Object

Response Codes and their Meanings

Status Code Response Data Response Format Description
200 task description: type string, status: type string, date_started: type string, message: type string JSON Status of task: Completed, Error, Pending, Process
401 None None Unauthorized
404 None None Task not Found
503 None None Service unavailable

Request Example

Request Example

curl -H "CDN-AUTH-TOKEN: $TOKEN" 'https://api.cdnvideo.ru/cdn/api/v1/tasks?id=20180306130139125745'

Response example

{
  "task_description": "Configuration apply",
  "status": "completed",
  "date_started": "",
  "message": ""
}