aom__CreateWorkflow
Creates an AOM workflow (task) using a specified template, task type, and input parameters, then returns the workflow details. Supports cron and manual workflows in supported regions.
Instructions
[AOM] 该接口用于创建工作流(任务),返回工作流详情。任务类型取决于模板名称和'input'参数。(注:接口目前开放的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": {
"input": "<input>",
"name": "<name>",
"project_id": "<project_id>",
"task_type": "<task_type>",
"template_id": "<template_id>",
"type": "<type>"
},
"name": "aom__CreateWorkflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 工作流名称,需要满足中文、英文大小写、数字、中划线和下划线{1,64}。 | |
| tags | No | 标签键和值列表,标签键值对数量范围是0至20。 | |
| type | Yes | 工作流类型,可以为cron、manual | |
| input | Yes | 任务执行时需要的参数列表。 | |
| quote | No | 引用,参数引用。 | |
| job_id | No | 作业id。 | |
| job_name | No | 作业名称。 | |
| task_type | Yes | 任务类型。package,script,job,cloud,standard,customize | |
| project_id | Yes | 租户从IAM申请到的projectid,一般为32位字符串。 | |
| description | No | 工作流描述信息。 | |
| template_id | Yes | 模板id。 | |
| service_name | No | 服务名称。 | |
| template_name | No | 模板名称,示例:CMS::ECS::BulkyRunScript CMS::ECS::BulkyStartECSInstances CMS::ECS::BulkyCleanDisks | |
| service_scenario | No | 服务场景分类。 |