CreateBatchTask
Creates a batch task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateBatchTask |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to view the region information of all clusters under the account. |
cn-beijing |
| TaskName |
string |
Yes |
The description of the model service. |
batch_task_test |
| TaskType |
string |
Yes |
The task type. |
polarclaw_install_skills |
| InstanceIds |
array |
Yes |
The machine instance IDs. |
|
|
string |
Yes |
The instance ID. |
pa-xxxx |
|
| Param |
string |
No |
The task parameters. |
[{"skillName":"github","version":"1.0.0"},{"skillName":"skill-vetter","version":"1.0.1"}] |
| InstanceParams |
string |
No |
The per-instance task parameters in JSON object format (instanceId -> param). This parameter is used in scenarios where multiple instances have different targets, such as different agent workspaces. |
{"pa-xxx1":{"agentId":"test1"},"pa-xxx2":{"scope":"global"}} |
| ApplicationType |
string |
No |
The target application type of the batch task. |
polarclaw |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| BatchId |
string |
The release batch ID. |
pcb-xxx |
| RequestId |
string |
The request ID. |
C61892A4-0850-4516-9E26-44D96C1782DE |
Examples
Success response
JSON format
{
"BatchId": "pcb-xxx",
"RequestId": "C61892A4-0850-4516-9E26-44D96C1782DE"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.