Scheduler Service (1.0.0)

Download OpenAPI specification:Download

Andriy Kornatskyy: andriy.kornatskyy@live.com License: MIT

REST API for the Scheduler Service. This API allows create and manage scheduled jobs.

collections

Provides operations for creating and managing collections of scheduled jobs.

Retrieves a list of job collections

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a job collection

Request Body schema: application/json

a job collection to create

id
string
name
required
string [ 3 .. 64 ]

unique job collection name

state
string
Default: "enabled"
Enum: "enabled" "disabled"

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "My App #1",
  • "state": "enabled"
}

Response samples

Content type
application/json
"string"

Retrieves a specified job collection

path Parameters
id
required
string
header Parameters
If-None-Match
string (ETag)
Example: "fde7bculys"

Responses

Response samples

Content type
application/json
{
  • "updated": "2019-08-24T14:15:22Z",
  • "id": "string",
  • "name": "My App #1",
  • "state": "enabled"
}

Updates a job collection

path Parameters
id
required
string
header Parameters
If-Match
string (ETag)
Example: "fde7bculys"
Request Body schema: application/json

a job collection to update

id
string
name
required
string [ 3 .. 64 ]

unique job collection name

state
string
Default: "enabled"
Enum: "enabled" "disabled"

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "name": "My App #1",
  • "state": "enabled"
}

Response samples

Content type
application/json
null

DeleteCollection

Deletes a single job collection

path Parameters
id
required
string
header Parameters
If-Match
string (ETag)
Example: "fde7bculys"

Responses

jobs

Provides operations for creating and managing scheduled jobs.

Retrieves a list of jobs

query Parameters
collectionId
string

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

Creates a job

Request Body schema: application/json

a job to create

required
object (Action)
collectionId
required
string
name
string

unique job name

state
string
Enum: "enabled" "disabled"
schedule
string

Responses

Request samples

Content type
application/json
{
  • "action": {
    },
  • "collectionId": "string",
  • "name": "My Task #1",
  • "state": "enabled",
  • "schedule": "@every 1h"
}

Response samples

Content type
application/json
"string"

Retrieves a specified job definition

path Parameters
id
required
string
header Parameters
If-None-Match
string (ETag)
Example: "fde7bculys"

Responses

Response samples

Content type
application/json
{
  • "updated": "2019-08-24T14:15:22Z",
  • "action": {
    },
  • "id": "string",
  • "collectionId": "string",
  • "name": "My Task #1",
  • "state": "enabled",
  • "schedule": "@every 1h"
}

Updates a job definition

path Parameters
id
required
string
header Parameters
If-Match
string (ETag)
Example: "fde7bculys"
Request Body schema: application/json

a job definition to update

required
object (Action)
collectionId
required
string
name
string

unique job name

state
string
Enum: "enabled" "disabled"
schedule
string

Responses

Request samples

Content type
application/json
{
  • "action": {
    },
  • "collectionId": "string",
  • "name": "My Task #1",
  • "state": "enabled",
  • "schedule": "@every 1h"
}

DeleteJob

Deletes a single job definition

path Parameters
id
required
string
header Parameters
If-Match
string (ETag)
Example: "fde7bculys"

Responses

Retrieves a specified job status

path Parameters
id
required
string
header Parameters
If-None-Match
string (ETag)
Example: "fde7bculys"

Responses

Response samples

Content type
application/json
{
  • "running": true,
  • "runCount": 157,
  • "errorCount": 39,
  • "lastRun": "2019-08-24T14:15:22Z",
  • "nextRun": "2019-08-24T14:15:22Z"
}

Updates a specified job status

path Parameters
id
required
string
header Parameters
If-Match
string (ETag)
Example: "fde7bculys"
Request Body schema: application/json

job to run

running
boolean

Responses

Request samples

Content type
application/json
{
  • "running": true
}

history

Provides operations for managing job history.

Retrieves a list of specified job history

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "items": [
    ]
}

DeleteJobHistory

Deletes a specified job history

path Parameters
id
required
string
query Parameters
before
string <date-time>

Responses

others

Queries health-related information

Responses

Response samples

Content type
application/json
{
  • "status": "up",
  • "message": "string"
}