{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ErrorRsp400":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","example":"FDI.3002","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"Invalid parameters.","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"ErrorRsp404":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","example":"FDI.3081","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"The task does not exist.","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"ErrorRsp500":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","example":"FDI.9999","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"Network error.","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"MultiTaskRequestBody":{"properties":{"description":{"description":"描述信息","example":"crate task","maxLength":1024,"minLength":1,"type":"string"},"operation_types":{"description":"需要支持的操作类型,支持多选,至少需要选择以下一种:\n- INSERT\n- UPDATE\n- DELETE","example":["INSERT","UPDATE","DELETE"],"items":{"enum":["INSERT","UPDATE","DELETE"],"type":"string"},"maxItems":3,"minItems":1,"type":"array"},"source_app_id":{"description":"源端数据源所属集成应用ID","example":"eaaa8ad0-f967-416a-ab73-d995ef656e89","maxLength":64,"minLength":1,"type":"string"},"target_app_id":{"description":"目标端数据源所属集成应用ID","example":"eaaa8ad0-f967-416a-ab73-d995ef656e89","maxLength":64,"minLength":1,"type":"string"},"task_id":{"description":"任务ID,可以为空","example":"5b481c5c8e564ee4a301577e31d95159","maxLength":50,"minLength":3,"type":"string"},"task_name":{"description":"任务名称,只能以字母、数字为开头,包含字母、数字和 . _ - 3~100个字符","example":"fdi_task_v2mysql-tomysql","maxLength":100,"minLength":3,"type":"string"},"task_tag":{"description":"任务标签,只能包含字母、数字、中划线、下划线","example":"fdi_autotest","maxLength":64,"minLength":4,"type":"string"},"task_type":{"description":"任务类型,目前组合任务仅支持实时任务\n- REALTIME (实时)\n- TIMING (定时)","enum":["REALTIME","TIMING"],"example":"REALTIME","maxLength":10,"minLength":1,"type":"string"}},"required":["task_name","operation_types"]},"TaskSimpleRsp":{"properties":{"task_id":{"description":"任务ID, 可为空","example":"15366328208d4d77b76532fe9f4006a6","maxLength":64,"minLength":1,"type":"string"}}}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"a6bce839aa534a99a32668b7a974145a","info_version":"v2","method":"post","name":"CreateMultiTasks","parameters":{"instance_id":{"description":"实例ID","in":"path","maxLength":36,"minLength":0,"name":"instance_id","required":true,"type":"string"},"project_id":{"description":"项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。","in":"path","maxLength":32,"minLength":0,"name":"project_id","required":true,"type":"string"}},"paths":{"/v2/{project_id}/fdi/instances/{instance_id}/multi-tasks":{"post":{"description":"创建组合任务","operationId":"CreateMultiTasks","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"description":"组合任务创建Body体","in":"body","name":"CreateMultiTasksRequestBody","required":true,"schema":{"$ref":"#/definitions/MultiTaskRequestBody"}}],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/TaskSimpleRsp"}},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"FDI.3150","error_msg":"The task list is empty."}},"schema":{"$ref":"#/definitions/ErrorRsp400"}},"404":{"description":"Not Found","examples":{"application/json":{"error_code":"FDI.3083","error_msg":"One or more scheduled tasks are not configured with scheduled plans."}},"schema":{"$ref":"#/definitions/ErrorRsp404"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorRsp500"}}},"summary":"创建组合任务","tags":["任务管理"],"x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-1":{"description":"create","operation_types":["INSERT","UPDATE","DELETE"],"source_app_id":"d5afd9af-a8fe-47f6-a98c-edbcba11a0da","target_app_id":"d5afd9af-a8fe-47f6-a98c-edbcba11a0da","task_id":"a9fe65f41****6a5d646477c52","task_name":"cdctest1","task_tag":"combination","task_type":"REALTIME"},"x-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建组合任务","tags":"任务管理","uri":null,"version":"2.0"}