aom__CreateFastExecuteScript
Creates an AOM task to execute a shell, batch, Python, or PowerShell script on specified ECS machines using the chosen user, arguments, and script content.
Instructions
[AOM] 该接口用于创建快速执行脚本的任务,可以指定脚本类型,执行用户,脚本参数,执行机器,脚本内容,在用户指定的机器上执行脚本。(注:接口目前开放的region为:华东-苏州二零一)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cmd_user": "<cmd_user>",
"ecs_id_list": "<ecs_id_list>",
"name": "<name>",
"project_id": "<project_id>",
"script_content": "<script_content>",
"script_type": "<script_type>"
},
"name": "aom__CreateFastExecuteScript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 任务名称。 | |
| cmd_user | Yes | 执行脚本的ECS机器用户。 | |
| project_id | Yes | 项目ID。 | |
| ecs_id_list | Yes | 执行的机器列表。 | |
| script_args | No | 任务参数,多个参数以空格分隔。 | |
| script_type | Yes | 脚本类型。SHELL BAT PYTHON POWER_SHELL | |
| script_content | Yes | 脚本内容。 |