{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"BatchOperatorTaskResp":{"description":"批量操作任务的执行结果","properties":{"failure":{"description":"失败的详情","items":{"$ref":"#/definitions/TaskBeanFacade"},"maxItems":999999,"minItems":0,"type":"array"},"failure_count":{"description":"失败的个数","example":1,"format":"int32","maximum":999999,"minimum":0,"type":"integer"},"success":{"description":"成功的任务信息","items":{"$ref":"#/definitions/TaskBeanFacade"},"maxItems":999999,"minItems":0,"type":"array"},"success_count":{"description":"成功的个数","example":1,"format":"int32","maximum":999999,"minimum":0,"type":"integer"}}},"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"]},"OperateTasksBean":{"properties":{"action_id":{"description":"操作类型\n- start (启动)\n- stop (停止)","enum":["start","stop"],"example":"start","maxLength":10,"minLength":1,"type":"string"},"list":{"description":"需要启动或者停止的任务ID列表","items":{"$ref":"#/definitions/TaskBean"},"maxItems":9999,"minItems":1,"type":"array"}},"required":["action_id"],"type":"object"},"TaskBean":{"description":"批量启动\\停止任务的详情","properties":{"task_id":{"description":"任务ID, 可为空","example":"15366328208d4d77b76532fe9f4006a6","maxLength":64,"minLength":1,"type":"string"}}},"TaskBeanFacade":{"description":"任务执行详情","properties":{"error_code":{"description":"失败的错误码","example":"","maxLength":64,"minLength":0,"type":"string"},"error_msg":{"description":"错误详情","example":"","maxLength":64,"minLength":1,"type":"string"},"task_id":{"description":"任务ID","example":"15366328208d4d77b76532fe9f4006a6","maxLength":64,"minLength":1,"type":"string"},"task_name":{"description":"任务名称","example":"fdi_task_v2ftp_to_ftp","maxLength":64,"minLength":1,"type":"string"}}}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"38d8637c29c7487a9a1c17663e1cb3c8","info_version":"v2","method":"post","name":"BatchStartOrStopTasks","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}/batch-operation/tasks":{"post":{"description":"批量启动\\停止任务","operationId":"BatchStartOrStopTasks","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"description":"Task object that needs to be start or stop","in":"body","name":"BatchStartOrStopTasksRequestBody","required":true,"schema":{"$ref":"#/definitions/OperateTasksBean"}}],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/BatchOperatorTaskResp"}},"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":{"action_id":"start","list":[{"task_id":"49460e99d597464d885f871dd6acc894"}]},"x-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"批量启动\\停止任务","tags":"任务管理","uri":null,"version":"2.0"}