更新时间:2025-09-05 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
  
      
      
      
        
创建对象级对比任务
功能介绍
创建对象级对比任务。
URI
POST /v3/{project_id}/jobs/{job_id}/object/compare
| 参数 | 是否必选 | 参数类型 | 描述 | 
|---|---|---|---|
| project_id | 是 | String | 租户在某一Region下的Project ID。 获取方法请参见获取项目ID。 | 
| job_id | 是 | String | 任务ID。 | 
请求参数
| 参数 | 是否必选 | 参数类型 | 描述 | 
|---|---|---|---|
| Content-Type | 是 | String | 指定类型为application/json。 缺省值:application/json | 
| X-Auth-Token | 是 | String | 从IAM服务获取的用户Token。 | 
| X-Language | 否 | String | 请求语言类型。 缺省值:en-us 枚举值: 
 | 
| 参数 | 是否必选 | 参数类型 | 描述 | 
|---|---|---|---|
| compare_task_num | 否 | Integer | 对比任务线程数量,当前仅cloudDataGuard-cassandra和cloudDataGuard-gausscassandra-to-gausscassandra链路生效。 | 
响应参数
无
请求示例
创建对象级对比任务。
https://{endpoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/a2b4999c-0acf-45eb-843d-5c1cdb2jb201/object/compare
{
  "compare_task_num" : 2
}
 响应示例
状态码: 202
OK
{ }
  状态码: 400
Bad Request
{
  "error_code" : "DRS.10000024",
  "error_msg" : "Another operation is being performed on the migration task or the migration task is abnormal."
}
 状态码
| 状态码 | 描述 | 
|---|---|
| 202 | OK | 
| 400 | Bad Request | 
错误码
请参见错误码。
   父主题: 公共接口管理
  
  
    