数据复制服务 DRS-查询备份迁移任务详细信息:响应示例

时间:2024-12-13 10:17:24

响应示例

状态码: 200

OK

{
  "id" : "0667845a-6291-4e2a-95b0-190c0abjb703",
  "status" : "SUC CES S",
  "create_time" : "2024-08-19T02:27:15Z",
  "finish_time" : "2024-08-19T02:29:03Z",
  "backup_info" : {
    "file_source" : "OBS",
    "bucket_name" : "zyy-obs",
    "file_info" : [ {
      "file_name" : "1706510914000_1_Test_Database.bak",
      "file_size" : "704KB",
      "file_last_modify" : "1706511360000"
    } ]
  },
  "base_info" : {
    "name" : "DRS-6813",
    "engine_type" : "sqlserver",
    "enterprise_project_id" : "0",
    "description" : "目标RDS实例名称:rds-sqlserver2022-stand",
    "is_grant_agency_low_permission" : false
  },
  "target_db_info" : {
    "target_instance_id" : "0a3182607bc549bcb46cc9a8755761a6in04"
  },
  "options" : {
    "is_cover" : true,
    "is_default_restore" : true,
    "is_last_backup" : false,
    "is_precheck" : true,
    "is_delete_backup_file" : false,
    "recovery_mode" : "full",
    "db_names" : [ ]
  },
  "new_db_names" : "[]",
  "instance_name" : ""
}

状态码: 400

Bad Request

{
  "error_code" : "DRS.10000010",
  "error_msg" : "Job does not exist, please check job ID."
}
support.huaweicloud.com/api-drs/zh-cn_topic_0000002096187685.html