数据复制服务 DRS-获取数据库对象信息的结果:响应示例

时间:2025-01-10 11:17:14

响应示例

状态码: 200

OK

{
  "object_scope" : "table",
  "target_root_db" : {
    "db_name" : "mytest",
    "db_encoding" : "utf8"
  },
  "object_info" : {
    "TEST" : {
      "name" : "TEST",
      "tables" : {
        "TBL_2" : {
          "name" : "TBL_2",
          "type" : "table",
          "all" : true,
          "is_synchronized" : true
        }
      },
      "is_synchronized" : true,
      "total_table_num" : 1
    }
  },
  "max_table_num" : 50000,
  "id" : "0eacda0b-9422-4535-8b62-537d1833638b",
  "status" : "success"
}

状态码: 400

Bad Request

{
  "error_code" : "DRS.10030014",
  "error_msg" : "Firstly, please the query object info."
}
support.huaweicloud.com/api-drs/drs_03_0183.html