huawei-cloud-api-definitions-ROMA 0.1.20240626

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"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"]},"Rsp400":{"description":"400返回错误码","properties":{"error_code":{"description":"错误码","example":"FDI.xxxx","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"Failed to xxxx.","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"Rsp404":{"description":"Not Found","properties":{"error_code":{"description":"错误码","example":"FDI.xxxx","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","example":"Failed to xxxx.","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"TaskDispatch":{"description":"调度计划详情","properties":{"cron":{"description":"调度计划的cron表达式","example":"0 30 12 * * ?","maxLength":255,"minLength":8,"type":"string"},"dispatch_interval":{"description":"调度计划的执行间隔时间周期","example":1,"format":"int64","maximum":59,"minimum":1,"type":"integer"},"period":{"description":"调度计划执行周期的时间单位,当使用cron表达式时,为空\n- MIN (分钟)\n- HOUR (小时)\n- DAY (日)\n- WEEK (周)\n- MON (月)","enum":["MIN","HOUR","DAY","WEEK","MON"],"example":"MIN","maxLength":36,"minLength":0,"type":"string"},"remark":{"description":"调度计划的备注信息","example":"test","maxLength":36,"minLength":8,"type":"string"},"start_datetime":{"description":"调度计划的执行开始时间","example":1605234403206,"format":"int64","maximum":99999999999999999,"minimum":0,"type":"integer"},"use_quartz_cron":{"description":"调度计划是否使用cron表达式,允许如下值:\n- true (使用cron表达式)\n- false (不使用cron表达式)","example":false,"maxLength":16,"minLength":4,"type":"boolean"}}},"TaskDispatchRsp":{"description":"查询调度计划的返回对象","properties":{"created_date":{"description":"调度计划的创建时间","example":1605234403206,"format":"int64","maximum":99999999999999999,"minimum":1,"type":"integer"},"cron":{"description":"调度计划的cron表达式","example":"0 30 12 * * ?","maxLength":255,"minLength":8,"type":"string"},"dispatch_id":{"description":"调度计划ID","example":"63847a87c0484c4f880bfb5f529fa543","maxLength":64,"minLength":1,"type":"string"},"dispatch_interval":{"description":"调度计划的执行间隔时间周期","example":1,"format":"int64","maximum":59,"minimum":1,"type":"integer"},"last_modified_date":{"description":"调度计划最近一次的修改时间","example":1605234403206,"format":"int64","maximum":99999999999999999,"minimum":1,"type":"integer"},"period":{"description":"调度计划执行周期的时间单位,当使用cron表达式时,为空\n- MIN (分钟)\n- HOUR (小时)\n- DAY (日)\n- WEEK (周)\n- MON (月)","enum":["MIN","HOUR","DAY","WEEK","MON"],"example":"MIN","maxLength":36,"minLength":0,"type":"string"},"remark":{"description":"调度计划的备注信息","example":"test","maxLength":36,"minLength":8,"type":"string"},"start_datetime":{"description":"调度计划的执行开始时间","example":1605234403206,"format":"int64","maximum":99999999999999999,"minimum":0,"type":"integer"},"task_id":{"description":"调度计划关联的任务ID","example":"15366328208d4d77b76532fe9f4006a6","maxLength":64,"minLength":1,"type":"string"},"use_quartz_cron":{"description":"调度计划是否使用cron表达式,允许如下值:\n- true (使用cron表达式)\n- false (不使用cron表达式)","example":false,"maxLength":16,"minLength":4,"type":"boolean"}}}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"cd07812085d64951851bee4a4653f224","info_version":"v2","method":"post","name":"CreateDispatches","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"},"task_id":{"description":"任务ID","in":"path","maxLength":64,"minLength":1,"name":"task_id","required":true,"type":"string"}},"paths":{"/v2/{project_id}/fdi/instances/{instance_id}/tasks/{task_id}/dispatches":{"post":{"description":"创建调度计划","operationId":"CreateDispatches","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"$ref":"#/parameters/task_id"},{"description":"Dispatche object that needs to be created","in":"body","name":"CreateDispatchesRequestBody","required":true,"schema":{"$ref":"#/definitions/TaskDispatch"}}],"produces":["application/json"],"responses":{"200":{"description":"OK","examples":{"application/json":{"created_date":1605311230685,"dispatch_id":"a0f7fa9897da423dadbe8391d7ea7a43","dispatch_interval":1,"last_modified_date":1605311230685,"period":"DAY","remark":"123","start_datetime":1605339505609,"task_id":"15366328208d4d77b76532fe9f4006a6","use_quartz_cron":false}},"schema":{"$ref":"#/definitions/TaskDispatchRsp"}},"400":{"description":"Bad Request","examples":{"application/json":{"code":400,"reason":{"error_code":"FDI.3149","error_msg":"The task ID is empty."}}},"schema":{"$ref":"#/definitions/Rsp400"}},"404":{"description":"Not Found","examples":{"application/json":{"code":404,"reason":{"error_code":"FDI.3180","error_msg":"This task is not in the project."}}},"schema":{"$ref":"#/definitions/Rsp404"}},"500":{"description":"Internal Server Error","schema":{"$ref":"#/definitions/ErrorRsp500"}}},"summary":"创建调度计划","tags":["任务管理"],"x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-1":{"dispatch_interval":1,"period":"DAY","remark":"123","start_datetime":"2020-11-14T07:38:25.609Z","use_quartz_cron":false},"x-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建调度计划","tags":"任务管理","uri":null,"version":"2.0"}