{"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"]},"MappingInfo":{"properties":{"source_column":{"description":"源端字段","example":"ID","maxLength":256,"minLength":1,"type":"string"},"source_column_length":{"description":"源端字段长度","example":"100","maximum":10000000,"minimum":0,"type":"string"},"source_column_type":{"description":"源端字段类型","example":"VARCHAR","maxLength":256,"minLength":1,"type":"string"},"target_column":{"description":"目标端字段","example":"ID","maxLength":256,"minLength":1,"type":"string"},"target_column_length":{"description":"目标端字段长度","example":"100","maximum":10000000,"minimum":0,"type":"string"},"target_column_type":{"description":"目标端字段类型","example":"VARCHAR","maxLength":256,"minLength":1,"type":"string"}}},"MultiTaskColumnInfo":{"properties":{"field_length":{"description":"字段长度","example":"100","maximum":10000000,"minimum":0,"type":"string"},"field_name":{"description":"字段名","example":"ID","maxLength":256,"minLength":1,"type":"string"},"field_type":{"description":"字段类型","example":"VARCHAR","maxLength":256,"minLength":1,"type":"string"}}},"MultiTaskMappingCreateBody":{"properties":{"ext_info":{"description":"扩展属性,目前只支持server_id","properties":{"server_id":{"description":"Mysql的ServerID","example":"1111","maxLength":20,"minLength":1,"type":"string"}},"type":"object"},"mapping_columns":{"description":"字段映射列表","items":{"$ref":"#/definitions/MappingInfo"},"maxItems":9999,"minItems":1,"type":"array"},"source_columns":{"description":"源端字段列表","items":{"$ref":"#/definitions/MultiTaskColumnInfo"},"maxItems":9999,"minItems":1,"type":"array"},"source_datasource_id":{"description":"源端数据源ID","example":"30969b205e8f4392a25fb321112d1753","maxLength":64,"minLength":1,"type":"string"},"source_table":{"description":"源表名","example":"Schema.Table1","maxLength":256,"minLength":1,"type":"string"},"target_columns":{"description":"目标端字段列表","items":{"$ref":"#/definitions/MultiTaskColumnInfo"},"maxItems":9999,"minItems":1,"type":"array"},"target_datasource_id":{"description":"目标端数据源ID","example":"30969b205e8f4392a25fb321112d1753","maxLength":64,"minLength":1,"type":"string"},"target_table":{"description":"目标表名","example":"Schema.Table2","maxLength":256,"minLength":1,"type":"string"}},"required":["source_datasource_id","target_datasource_id"],"type":"object"},"MultiTaskMappingCreateRsp":{"properties":{"mapping_id":{"description":"映射唯一ID","example":"15366328208d4d77b76532fe9f4006a6","maxLength":64,"minLength":1,"type":"string"}}}},"description":null,"group_id":"025d125ee4da4956af037c3315e94b30","host":"roma.cn-north-4.myhuaweicloud.com","id":"6660cc9b717f46a3926e54cdf72f1668","info_version":"v2","method":"post","name":"CreateMultiTaskMappings","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}/multi-tasks/{task_id}/mappings":{"post":{"description":"创建组合任务映射","operationId":"CreateMultiTaskMappings","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/instance_id"},{"$ref":"#/parameters/task_id"},{"description":"组合任务创建映射Body体","in":"body","name":"CreateMultiTaskMappingsRequestBody","required":true,"schema":{"$ref":"#/definitions/MultiTaskMappingCreateBody"}}],"produces":["application/json"],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/MultiTaskMappingCreateRsp"}},"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-support-sdk":"Y"}}},"product_short":"ROMA","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"创建组合任务映射","tags":"任务管理","uri":null,"version":"2.0"}