Executes a PolarClaw scheduled task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:RunPolarClawCronJob |
update |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ApplicationId |
string |
Yes |
The application ID. |
pa-************** |
| JobId |
string |
Yes |
The ID of the scheduled task to execute. |
0ee00f56-f467-4d41-858c-ca4ede2c770e |
| Mode |
string |
No |
The execution mode. Valid values: force and due. Default value: force. |
force |
| Restart |
boolean |
No |
Specifies whether to restart the gateway after creation. Default value: true. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
C61892A4-0850-4516-9E26-44D96C1782DE |
| Message |
string |
The returned message. |
successful |
| Code |
integer |
The returned status code. |
200 |
| ApplicationId |
string |
The application ID. |
pa-************** |
| Ok |
boolean |
Indicates whether the operation is successful. |
true |
| JobId |
string |
The ID of the executed task. |
8006e51c-dab3-4602-bc69-4f728002c6ce |
| Ran |
boolean |
Indicates whether the task was actually executed. |
true |
Examples
Success response
JSON format
{
"RequestId": "C61892A4-0850-4516-9E26-44D96C1782DE",
"Message": "successful",
"Code": 200,
"ApplicationId": "pa-**************",
"Ok": true,
"JobId": "8006e51c-dab3-4602-bc69-4f728002c6ce",
"Ran": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.