Download OpenAPI specification:Download
REST API for the Scheduler Service. This API allows create and manage scheduled jobs.
a job collection to create
id | string |
name required | string [ 3 .. 64 ] unique job collection name |
state | string Default: "enabled" Enum: "enabled" "disabled" |
{- "id": "string",
- "name": "My App #1",
- "state": "enabled"
}
"string"
id required | string |
If-Match | string (ETag) Example: "fde7bculys" |
a job collection to update
id | string |
name required | string [ 3 .. 64 ] unique job collection name |
state | string Default: "enabled" Enum: "enabled" "disabled" |
{- "id": "string",
- "name": "My App #1",
- "state": "enabled"
}
null
{- "items": [
- {
- "id": "7ce1f17e-48b1-4e73-be22-771fa764993a",
- "name": "My Task #1",
- "schedule": "@every 15s",
- "state": "disabled"
}, - {
- "id": "94946f60-711f-4044-b08e-ccd9ba998f88",
- "name": "My Task #2",
- "schedule": "@every 1m",
- "state": "enabled"
}
]
}
a job to create
required | object (Action) |
collectionId required | string |
name | string unique job name |
state | string Enum: "enabled" "disabled" |
schedule | string |
{- "action": {
- "type": "HTTP",
- "request": {
- "method": "GET",
- "headers": [
- {
- "name": "X-Requested-With",
- "value": "XMLHttpRequest"
}
], - "body": "string"
}, - "retryPolicy": {
- "retryCount": 3,
- "retryInterval": "10s",
- "deadline": "1m"
}
}, - "collectionId": "string",
- "name": "My Task #1",
- "state": "enabled",
- "schedule": "@every 1h"
}
"string"
id required | string |
If-None-Match | string (ETag) Example: "fde7bculys" |
{- "updated": "2019-08-24T14:15:22Z",
- "action": {
- "type": "HTTP",
- "request": {
- "method": "GET",
- "headers": [
- {
- "name": "X-Requested-With",
- "value": "XMLHttpRequest"
}
], - "body": "string"
}, - "retryPolicy": {
- "retryCount": 3,
- "retryInterval": "10s",
- "deadline": "1m"
}
}, - "id": "string",
- "collectionId": "string",
- "name": "My Task #1",
- "state": "enabled",
- "schedule": "@every 1h"
}
id required | string |
If-Match | string (ETag) Example: "fde7bculys" |
a job definition to update
required | object (Action) |
collectionId required | string |
name | string unique job name |
state | string Enum: "enabled" "disabled" |
schedule | string |
{- "action": {
- "type": "HTTP",
- "request": {
- "method": "GET",
- "headers": [
- {
- "name": "X-Requested-With",
- "value": "XMLHttpRequest"
}
], - "body": "string"
}, - "retryPolicy": {
- "retryCount": 3,
- "retryInterval": "10s",
- "deadline": "1m"
}
}, - "collectionId": "string",
- "name": "My Task #1",
- "state": "enabled",
- "schedule": "@every 1h"
}
id required | string |
If-None-Match | string (ETag) Example: "fde7bculys" |
{- "running": true,
- "runCount": 157,
- "errorCount": 39,
- "lastRun": "2019-08-24T14:15:22Z",
- "nextRun": "2019-08-24T14:15:22Z"
}