华为云用户手册

  • 响应示例 状态码: 200 查询在线迁移进度明细成功。 { "full_migration_progress" : 100, "offset" : 100, "source_dbsize" : 531221, "target_dbsize" : 531211, "target_input_kbps" : 50, "target_ops" : 5300, "is_migrating" : true } 状态码: 400 非法请求。 { "error_code" : "D CS .4133", "error_msg" : "Instance job is not found." }
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 full_migration_progress String 全量迁移进度百分比。 offset String 增量迁移偏移量。 source_dbsize String 源redis键数量。 target_dbsize String 目标redis键数量。 target_input_kbps String 目标redis键写入流量,单位KB/s。 target_ops String 目标redis每秒并发操作数。 is_migrating Boolean 迁移任务是否在进行。 状态码: 400 表3 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 401 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 403 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 404 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024
  • 响应参数 状态码: 400 表2 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 401 表3 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 403 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 404 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024
  • 请求示例 PUT https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/scan-expire-keys/autoscan-config { "enable_auto_scan" : "true", "first_scan_at" : "2023-02-07T15:00:05.000Z", "interval" : 86400, "timeout" : 172800, "scan_keys_count" : 10 }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 instance_id String 实例ID。 enable_auto_scan Boolean 是否开启自动扫描。 first_scan_at String 首次扫描时间,例如:2023-07-07T15:00:05.000。 interval Integer 间隔时间(单位:秒)。 timeout Integer 超时时间(单位:秒)。 scan_keys_count Integer 扫描密钥计数。 updated_at String 更新时间,例如:2023-06-15T06:20:13.283Z 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 401 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 403 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 404 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表8 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024
  • 响应示例 状态码: 200 修改自动扫描配置成功。 { "instance_id" : "162d315d-a67d-4ba1-8ca5-8d0e95c5bf7c", "enable_auto_scan" : true, "first_scan_at" : "2023-06-13T21:00:00.000Z", "interval" : 86400, "timeout" : 172800, "scan_keys_count" : 10, "updated_at" : "2023-06-13T13:13:12.685Z" } 状态码: 400 非法请求。 { "error_code" : "DCS.4822", "error_msg" : "The scan_keys_count parameter is invalid. Its must Greater than or equal to 10, and Less than or equal to 1000." }
  • 请求参数 表2 请求Body参数 参数 是否必选 参数类型 描述 enable_auto_scan 否 Boolean 启用自动扫描。 first_scan_at 否 String 首次扫描时间,例如:2023-07-07T15:00:05.000。 interval 否 Integer 间隔时间(单位:秒)。 timeout 否 Integer 超时时间(单位:秒)。 scan_keys_count 否 Integer 扫描密钥计数。
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 code String 任务执行成功代码。 message String 重置结果说明信息。 lock_time String 锁定时间。验证失败时和锁定时该参数返回不为null。 lock_time_left String 锁定剩余时间。锁定时该参数返回不为null。 retry_times_left String 密码验证剩余次数。验证失败时该参数返回不为null。 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 401 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 403 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 404 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 500 表8 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024
  • 响应示例 状态码: 200 重置密码成功。 { "code" : "1", "message" : "Reset DCSInstance password success.", "lock_time" : "0", "lock_time_left" : "0", "retry_times_left" : "5" } 状态码: 400 非法请求。 { "error_code" : "DCS.4961" }
  • URI PUT /v2/{project_id}/instances/{instance_id}/accounts/{account_id}/password/reset 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID。获取方法请参见获取项目ID。 instance_id 是 String 实例ID。 account_id 是 String ACL账号ID。
  • 响应参数 状态码: 200 表1 响应Body参数 参数 参数类型 描述 maintain_windows Array of MaintainWindowsEntity objects 支持的维护时间窗列表。 表2 MaintainWindowsEntity 参数 参数类型 描述 seq Integer 序号。 default Boolean 是否为默认时间段。 begin String 维护时间窗开始时间,时间为UTC时间,格式为HH:mm:ss。 end String 维护时间窗结束时间,时间为UTC时间,格式为HH:mm:ss。 状态码: 500 表3 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024
  • 响应示例 状态码: 200 查询维护时间窗时间段成功。 { "maintain_windows" : [ { "default" : true, "end" : "19", "begin" : "18", "seq" : 1 }, { "default" : false, "end" : "20", "begin" : "19", "seq" : 2 }, { "default" : false, "end" : "21", "begin" : "20", "seq" : 3 }, { "default" : false, "end" : "22", "begin" : "21", "seq" : 4 }, { "default" : false, "end" : "23", "begin" : "22", "seq" : 5 }, { "default" : false, "end" : "00", "begin" : "23", "seq" : 6 }, { "default" : false, "end" : "01", "begin" : "00", "seq" : 1 }, { "default" : false, "end" : "02", "begin" : "01", "seq" : 2 }, { "default" : false, "end" : "03", "begin" : "02", "seq" : 3 }, { "default" : false, "end" : "04", "begin" : "03", "seq" : 3 }, { "default" : false, "end" : "05", "begin" : "04", "seq" : 4 }, { "default" : false, "end" : "06", "begin" : "05", "seq" : 5 }, { "default" : false, "end" : "07", "begin" : "06", "seq" : 6 }, { "default" : false, "end" : "08", "begin" : "07", "seq" : 1 }, { "default" : true, "end" : "09", "begin" : "08", "seq" : 2 }, { "default" : false, "end" : "10", "begin" : "09", "seq" : 3 }, { "default" : false, "end" : "11", "begin" : "10", "seq" : 4 }, { "default" : false, "end" : "12", "begin" : "11", "seq" : 5 }, { "default" : false, "end" : "13", "begin" : "12", "seq" : 6 }, { "default" : false, "end" : "14", "begin" : "13", "seq" : 1 }, { "default" : true, "end" : "15", "begin" : "14", "seq" : 2 }, { "default" : false, "end" : "16", "begin" : "15", "seq" : 3 }, { "default" : false, "end" : "17", "begin" : "16", "seq" : 4 }, { "default" : false, "end" : "18", "begin" : "17", "seq" : 5 } ] }
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 [数组元素] Array of InstanceReplicationListInfo objects 查询分片和副本信息成功。 表3 InstanceReplicationListInfo 参数 参数类型 描述 replication_role String 副本角色,取值有: master:表示主节点。 slave:表示从节点。 replication_ip String 副本IP。 is_replication Boolean 是否是新加副本。 replication_id String 副本ID。 node_id String 节点ID。 status String 副本状态。 枚举值: Active Inactive az_code String 副本所在的可用区。 dimensions Array of InstanceReplicationDimensionsInfo objects 副本对应的监控指标维度信息。可用于调用 云监控服务 的查询监控数据指标相关接口 副本的监控维度为多维度,返回数组中包含两个维度信息。从 云监控 查询监控数据时,要按多维度传递指标维度参数,才能查询到监控指标值。 第一个维度为副本父维度信息,维度名称为dcs_instance_id,维度值对应副本所在的实例ID。 第二个维度,维度名称为dcs_cluster_redis_node,维度值为副本的监控对象ID,与副本ID和节点ID不同。 表4 InstanceReplicationDimensionsInfo 参数 参数类型 描述 name String 监控维度名称。 value String 维度取值。 状态码: 500 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 400 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024
  • 响应示例 状态码: 200 查询分片和副本信息成功。 [ { "az_code" : "region01", "is_replication" : false, "node_id" : "8abfa7aa73291f15017329e1cda0002d", "replication_id" : "dfbd3f84-08bc-42f0-b538-01d03e6dc178", "replication_ip" : "192.168.76.25", "replication_role" : "master", "status" : "Active", "dimensions" : [ { "name" : "dcs_instance_id", "value" : "caf2d19f-7783-44b0-be46-8c9da3ef1e94" } ] } ]
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 result String 删除自定义模板的结果,success表示成功,如果失败则会返回对应的报错信息。 枚举值: success 状态码: 400 表3 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 401 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 403 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 404 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024 状态码: 500 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息 最大长度:1024 error_code String 错误码 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null) 最大长度:1024
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 restore_id String 恢复记录ID。 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024
  • 响应参数 状态码: 400 表2 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表3 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024
  • 响应示例 状态码: 200 查询迁移任务详情成功。 { "task_name" : "migration1", "task_id" : "a276c1ffa0a54c2597fc824b917db317", "status" : "MIGRATING", "migration_type" : "incremental_migration", "network_type" : "vpc", "source_instance" : { "addrs" : "192.168.1.2:6379" }, "target_instance" : { "id" : "86157b69-8a62-47f9-8c55-fa6ddc8927ee", "name" : "test-instance" }, "created_at" : "2019/10/22 14:44:30", "updated_at" : "2019/10/22 18:00:00" }
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 task_id String 迁移任务ID。 task_name String 迁移任务名称。 description String 迁移任务描述。 status String 迁移任务状态,这个字段的值包括:SUC CES S(成功), FAILED(失败), MIGRATING(迁移中),TERMINATED(已结束),TERMINATING(停止中),INCRMIGRATING(增量迁移中),FULLMIGRATING(全量迁移中),RUNNING(待配置),MIGRATION_FAILED(迁移失败),RELEASED(已释放)。 枚举值: SUCCESS FAILED MIGRATING TERMINATED TERMINATING INCRMIGEATING FULLMIGRATING RUNNING MIGRATION_FAILED RELEASED migration_type String 迁移任务类型,包括备份文件导入和在线迁移两种类型。 枚举值: backupfile_import online_migration migration_method String 迁移方式,包括全量迁移和增量迁移两种类型。 枚举值: full_amount_migration incremental_migration ecs_tenant_private_ip String 迁移机租户侧私有IP,与目的/源redis私有IP处于同VPC,可将此IP加入白名单。 backup_files BackupFilesBody object 备份文件导入场景的备份文件列表。 network_type String 网络类型,包括vpc和vpn两种类型。 枚举值: vpc vpn source_instance SourceInstanceBody object 源Redis信息。在线迁移场景需要填写。 target_instance TargetInstanceBody object 目标Redis信息。 created_at String 迁移任务创建时间。 updated_at String 迁移任务完成时间。 表3 BackupFilesBody 参数 参数类型 描述 file_source String 数据来源,包含OBS桶和备份记录两种类型。 枚举值: self_build_obs backup_record bucket_name String OBS桶名。 files Array of Files objects 导入的备份文件文件列表,数据来源为OBS桶时必须填写。 backup_id String 备份记录ID,数据来源为备份记录时必须填写。 表4 Files 参数 参数类型 描述 file_name String 备份文件名。 size String 文件大小(单位:Byte)。 update_at String 文件最后修改时间(格式YYYY-MM-DD HH:MM:SS)。 表5 SourceInstanceBody 参数 参数类型 描述 addrs String Redis实例地址(source_instance信息中填写)。 password String Redis密码,如果设置了密码,则必须填写。 表6 TargetInstanceBody 参数 参数类型 描述 id String Redis实例ID(target_instance信息中必须填写)。 name String Redis实例名称(target_instance信息中填写)。 password String Redis密码,如果设置了密码,则必须填写。 状态码: 400 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 401 表8 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 403 表9 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 404 表10 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表11 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024
  • 响应示例 状态码: 200 查询热key分析详情成功。 { "id" : "858ee14c-2271-4489-8b82-7bda7459ae3e", "instance_id" : "5f9057b5-c330-4ee2-8138-7e69896eeec3", "status" : "success", "scan_type" : "manual", "created_at" : "2020-06-15T02:21:18.669Z", "started_at" : "2020-06-15T02:21:23.534Z", "finished_at" : "2020-06-15T02:21:25.588Z", "keys" : [ { "name" : "dcs-hotkey-test", "type" : "string", "shard" : "192.168.1.134:6379", "db" : 0, "size" : 3000, "unit" : "byte", "freq" : 4 } ] } 状态码: 400 非法请求。 { "error_code" : "DCS.4922", "error_msg" : "Does not support hotkey analyze." }
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 id String 热key分析记录ID。 instance_id String 实例ID。 status String 分析任务状态。 枚举值: waiting running success failed scan_type String 分析方式。 枚举值: manual auto created_at String 分析任务创建时间,格式为:"2020-06-15T02:21:18.669Z"。 started_at String 分析任务开始时间,格式为:"2020-06-15T02:21:18.669Z"(创建分析任务时此值为null,不返回)。 finished_at String 分析任务结束时间,格式为:"2020-06-15T02:21:18.669Z"(创建分析任务时此值为null,不返回)。 num Integer 热key的数量。 keys Array of HotkeysBody objects 热key记录(创建分析任务时此值为null,不返回)。 表3 HotkeysBody 参数 参数类型 描述 name String Key名称。 type String Key类型。 枚举值: string list set zset hash shard String 热key所在的分片,仅在实例类型为集群时支持,格式为ip:port。 db Integer 热key所在的DB。 size Long Key的value大小。 unit String 表示key的单位。count:key的数量,byte:key的大小。 freq Integer 表示某个key在一段时间的访问频度,会随着访问的频率而变化。 该值并不是简单的访问频率值,而是一个基于概率的对数计数器结果,最大为255(可表示100万次访问),超过255后如果继续频繁访问该值并不会继续增大,同时默认如果每过一分钟没有访问,该值会衰减1。 状态码: 400 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 401 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 403 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 404 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表8 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信(暂未使用,赋值为null)。 最大长度:1024
  • URI POST /v2/{project_id}/instances/{instance_id}/groups/{group_id}/replications/{node_id}/slave-priority 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID。获取方法请参见获取项目ID。 instance_id 是 String 实例ID。 group_id 是 String 分片ID。 node_id 是 String 节点ID。
  • 响应参数 状态码: 400 表3 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 401 表4 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 403 表5 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 404 表6 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 状态码: 500 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 最大长度:1024 error_code String 错误码。 最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024
  • 客户端出现概率性超时错误 针对低概率超时错误,是Redis使用的正常现象。Redis使用受到网络传输、客户端设置超时时间等因素影响,可能出现单个请求超时问题。 建议客户业务编码时,具备重试操作,提升业务的可靠性,避免低概率的单次请求失败时业务失败。 当出现了连接超时问题时,可以优先检查Redis是否开启了AOF持久化功能,并根据业务需求,决定是否开启AOF持久化(开启/关闭AOF持久化的影响)。关闭AOF持久化可以提升客户端连接的稳定性,减少出现阻塞,连接不上的情况。 如果出现超时错误概率频繁,请联系技术服务人员。 父主题: 客户端和网络连接
  • 响应示例 状态码: 200 支持的云服务类型 { [ "AWS", "Aliyun", "Qiniu", "QingCloud", "Tencent", "Baidu", "KingsoftCloud", "Azure", "UCloud", "Google", "HuaweiCloud", "URLSource" ] }
  • 请求示例 查询2c0689c860ad4728a497c91ec0844383项目下的0d146099-8cf4-437d-b6ef-88e043771c8b任务的统计 GET https://{endpoint}/v2/2c0689c860ad4728a497c91ec0844383/sync-tasks/0d146099-8cf4-437d-b6ef-88e043771c8b/statistics?data_type=REQUEST { "sync_task_id" : "4fb05cd2-c94e-44e4-a07f-e65a2f01ebcb", "statistic_time_type" : "FIVE_MINUTES", "statistic_datas" : [ { "data_type" : "REQUEST", "data" : [ { "time_stamp" : 1700150400000, "statistic_num" : 1 }, { "time_stamp" : 1700151000000, "statistic_num" : 20 }, { "time_stamp" : 1700151300000, "statistic_num" : 13 }, { "time_stamp" : 1700151600000, "statistic_num" : 12 }, { "time_stamp" : 1700151900000, "statistic_num" : 10 }, { "time_stamp" : 1700152200000, "statistic_num" : 11 }, { "time_stamp" : 1700152500000, "statistic_num" : 9 }, { "time_stamp" : 1700152800000, "statistic_num" : 12 }, { "time_stamp" : 1700153100000, "statistic_num" : 9 }, { "time_stamp" : 1700153400000, "statistic_num" : 10 }, { "time_stamp" : 1700153700000, "statistic_num" : 7 }, { "time_stamp" : 1700154000000, "statistic_num" : 13 }, { "time_stamp" : 1700154300000, "statistic_num" : 9 }, { "time_stamp" : 1700154600000, "statistic_num" : 9 }, { "time_stamp" : 1700154900000, "statistic_num" : 9 }, { "time_stamp" : 1700155200000, "statistic_num" : 10 }, { "time_stamp" : 1700155500000, "statistic_num" : 11 }, { "time_stamp" : 1700155800000, "statistic_num" : 9 }, { "time_stamp" : 1700156100000, "statistic_num" : 8 }, { "time_stamp" : 1700156400000, "statistic_num" : 11 }, { "time_stamp" : 1700156700000, "statistic_num" : 10 }, { "time_stamp" : 1700157000000, "statistic_num" : 8 }, { "time_stamp" : 1700157300000, "statistic_num" : 10 }, { "time_stamp" : 1700157600000, "statistic_num" : 11 }, { "time_stamp" : 1700157900000, "statistic_num" : 9 }, { "time_stamp" : 1700158200000, "statistic_num" : 11 }, { "time_stamp" : 1700158500000, "statistic_num" : 9 }, { "time_stamp" : 1700158800000, "statistic_num" : 10 }, { "time_stamp" : 1700159100000, "statistic_num" : 11 }, { "time_stamp" : 1700159400000, "statistic_num" : 9 }, { "time_stamp" : 1700159700000, "statistic_num" : 11 }, { "time_stamp" : 1700160000000, "statistic_num" : 10 }, { "time_stamp" : 1700160300000, "statistic_num" : 10 }, { "time_stamp" : 1700160600000, "statistic_num" : 9 }, { "time_stamp" : 1700160900000, "statistic_num" : 8 }, { "time_stamp" : 1700161200000, "statistic_num" : 11 }, { "time_stamp" : 1700161500000, "statistic_num" : 9 }, { "time_stamp" : 1700161800000, "statistic_num" : 9 }, { "time_stamp" : 1700162100000, "statistic_num" : 9 }, { "time_stamp" : 1700162400000, "statistic_num" : 10 }, { "time_stamp" : 1700162700000, "statistic_num" : 11 }, { "time_stamp" : 1700163000000, "statistic_num" : 9 }, { "time_stamp" : 1700163300000, "statistic_num" : 9 }, { "time_stamp" : 1700163600000, "statistic_num" : 11 }, { "time_stamp" : 1700163900000, "statistic_num" : 10 }, { "time_stamp" : 1700164200000, "statistic_num" : 9 }, { "time_stamp" : 1700164500000, "statistic_num" : 10 }, { "time_stamp" : 1700164800000, "statistic_num" : 9 }, { "time_stamp" : 1700165100000, "statistic_num" : 11 }, { "time_stamp" : 1700165400000, "statistic_num" : 10 }, { "time_stamp" : 1700165700000, "statistic_num" : 10 }, { "time_stamp" : 1700166000000, "statistic_num" : 11 }, { "time_stamp" : 1700166300000, "statistic_num" : 10 }, { "time_stamp" : 1700166600000, "statistic_num" : 9 }, { "time_stamp" : 1700166900000, "statistic_num" : 9 }, { "time_stamp" : 1700167200000, "statistic_num" : 11 }, { "time_stamp" : 1700167500000, "statistic_num" : 10 }, { "time_stamp" : 1700167800000, "statistic_num" : 8 }, { "time_stamp" : 1700168100000, "statistic_num" : 11 }, { "time_stamp" : 1700168400000, "statistic_num" : 8 }, { "time_stamp" : 1700168700000, "statistic_num" : 10 }, { "time_stamp" : 1700169000000, "statistic_num" : 10 }, { "time_stamp" : 1700169300000, "statistic_num" : 9 }, { "time_stamp" : 1700169600000, "statistic_num" : 10 }, { "time_stamp" : 1700169900000, "statistic_num" : 8 }, { "time_stamp" : 1700170200000, "statistic_num" : 11 }, { "time_stamp" : 1700170500000, "statistic_num" : 9 }, { "time_stamp" : 1700170800000, "statistic_num" : 13 }, { "time_stamp" : 1700171100000, "statistic_num" : 10 }, { "time_stamp" : 1700171400000, "statistic_num" : 8 }, { "time_stamp" : 1700171700000, "statistic_num" : 10 }, { "time_stamp" : 1700172000000, "statistic_num" : 11 }, { "time_stamp" : 1700172300000, "statistic_num" : 11 }, { "time_stamp" : 1700172600000, "statistic_num" : 10 }, { "time_stamp" : 1700172900000, "statistic_num" : 11 }, { "time_stamp" : 1700173200000, "statistic_num" : 9 }, { "time_stamp" : 1700173500000, "statistic_num" : 9 }, { "time_stamp" : 1700173800000, "statistic_num" : 12 }, { "time_stamp" : 1700174100000, "statistic_num" : 9 }, { "time_stamp" : 1700174400000, "statistic_num" : 11 }, { "time_stamp" : 1700174700000, "statistic_num" : 10 }, { "time_stamp" : 1700175000000, "statistic_num" : 10 }, { "time_stamp" : 1700175300000, "statistic_num" : 11 }, { "time_stamp" : 1700175600000, "statistic_num" : 9 }, { "time_stamp" : 1700175900000, "statistic_num" : 11 }, { "time_stamp" : 1700176200000, "statistic_num" : 10 }, { "time_stamp" : 1700176500000, "statistic_num" : 9 }, { "time_stamp" : 1700176800000, "statistic_num" : 11 }, { "time_stamp" : 1700177100000, "statistic_num" : 9 }, { "time_stamp" : 1700177400000, "statistic_num" : 11 }, { "time_stamp" : 1700177700000, "statistic_num" : 9 }, { "time_stamp" : 1700178000000, "statistic_num" : 12 }, { "time_stamp" : 1700178300000, "statistic_num" : 10 }, { "time_stamp" : 1700178600000, "statistic_num" : 9 }, { "time_stamp" : 1700178900000, "statistic_num" : 11 }, { "time_stamp" : 1700179200000, "statistic_num" : 9 }, { "time_stamp" : 1700179500000, "statistic_num" : 10 }, { "time_stamp" : 1700179800000, "statistic_num" : 10 }, { "time_stamp" : 1700180100000, "statistic_num" : 11 }, { "time_stamp" : 1700180400000, "statistic_num" : 10 }, { "time_stamp" : 1700180700000, "statistic_num" : 9 }, { "time_stamp" : 1700181000000, "statistic_num" : 12 }, { "time_stamp" : 1700181300000, "statistic_num" : 9 }, { "time_stamp" : 1700181600000, "statistic_num" : 12 }, { "time_stamp" : 1700181900000, "statistic_num" : 9 }, { "time_stamp" : 1700182200000, "statistic_num" : 11 }, { "time_stamp" : 1700182500000, "statistic_num" : 9 }, { "time_stamp" : 1700182800000, "statistic_num" : 10 }, { "time_stamp" : 1700183100000, "statistic_num" : 11 }, { "time_stamp" : 1700183400000, "statistic_num" : 10 }, { "time_stamp" : 1700183700000, "statistic_num" : 9 }, { "time_stamp" : 1700184000000, "statistic_num" : 8 }, { "time_stamp" : 1700188200000, "statistic_num" : 1 } ] } ] }
  • 响应示例 状态码: 200 OK { "sync_task_id" : "4fb05cd2-c94e-44e4-a07f-e65a2f01ebcb", "statistic_time_type" : "FIVE_MINUTES", "statistic_datas" : [ { "data_type" : "REQUEST", "data" : [ { "time_stamp" : 1700150400000, "statistic_num" : 1 }, { "time_stamp" : 1700151000000, "statistic_num" : 20 }, { "time_stamp" : 1700151300000, "statistic_num" : 13 }, { "time_stamp" : 1700151600000, "statistic_num" : 12 }, { "time_stamp" : 1700151900000, "statistic_num" : 10 }, { "time_stamp" : 1700152200000, "statistic_num" : 11 }, { "time_stamp" : 1700152500000, "statistic_num" : 9 }, { "time_stamp" : 1700152800000, "statistic_num" : 12 }, { "time_stamp" : 1700153100000, "statistic_num" : 9 }, { "time_stamp" : 1700153400000, "statistic_num" : 10 }, { "time_stamp" : 1700153700000, "statistic_num" : 7 }, { "time_stamp" : 1700154000000, "statistic_num" : 13 }, { "time_stamp" : 1700154300000, "statistic_num" : 9 }, { "time_stamp" : 1700154600000, "statistic_num" : 9 }, { "time_stamp" : 1700154900000, "statistic_num" : 9 }, { "time_stamp" : 1700155200000, "statistic_num" : 10 }, { "time_stamp" : 1700155500000, "statistic_num" : 11 }, { "time_stamp" : 1700155800000, "statistic_num" : 9 }, { "time_stamp" : 1700156100000, "statistic_num" : 8 }, { "time_stamp" : 1700156400000, "statistic_num" : 11 }, { "time_stamp" : 1700156700000, "statistic_num" : 10 }, { "time_stamp" : 1700157000000, "statistic_num" : 8 }, { "time_stamp" : 1700157300000, "statistic_num" : 10 }, { "time_stamp" : 1700157600000, "statistic_num" : 11 }, { "time_stamp" : 1700157900000, "statistic_num" : 9 }, { "time_stamp" : 1700158200000, "statistic_num" : 11 }, { "time_stamp" : 1700158500000, "statistic_num" : 9 }, { "time_stamp" : 1700158800000, "statistic_num" : 10 }, { "time_stamp" : 1700159100000, "statistic_num" : 11 }, { "time_stamp" : 1700159400000, "statistic_num" : 9 }, { "time_stamp" : 1700159700000, "statistic_num" : 11 }, { "time_stamp" : 1700160000000, "statistic_num" : 10 }, { "time_stamp" : 1700160300000, "statistic_num" : 10 }, { "time_stamp" : 1700160600000, "statistic_num" : 9 }, { "time_stamp" : 1700160900000, "statistic_num" : 8 }, { "time_stamp" : 1700161200000, "statistic_num" : 11 }, { "time_stamp" : 1700161500000, "statistic_num" : 9 }, { "time_stamp" : 1700161800000, "statistic_num" : 9 }, { "time_stamp" : 1700162100000, "statistic_num" : 9 }, { "time_stamp" : 1700162400000, "statistic_num" : 10 }, { "time_stamp" : 1700162700000, "statistic_num" : 11 }, { "time_stamp" : 1700163000000, "statistic_num" : 9 }, { "time_stamp" : 1700163300000, "statistic_num" : 9 }, { "time_stamp" : 1700163600000, "statistic_num" : 11 }, { "time_stamp" : 1700163900000, "statistic_num" : 10 }, { "time_stamp" : 1700164200000, "statistic_num" : 9 }, { "time_stamp" : 1700164500000, "statistic_num" : 10 }, { "time_stamp" : 1700164800000, "statistic_num" : 9 }, { "time_stamp" : 1700165100000, "statistic_num" : 11 }, { "time_stamp" : 1700165400000, "statistic_num" : 10 }, { "time_stamp" : 1700165700000, "statistic_num" : 10 }, { "time_stamp" : 1700166000000, "statistic_num" : 11 }, { "time_stamp" : 1700166300000, "statistic_num" : 10 }, { "time_stamp" : 1700166600000, "statistic_num" : 9 }, { "time_stamp" : 1700166900000, "statistic_num" : 9 }, { "time_stamp" : 1700167200000, "statistic_num" : 11 }, { "time_stamp" : 1700167500000, "statistic_num" : 10 }, { "time_stamp" : 1700167800000, "statistic_num" : 8 }, { "time_stamp" : 1700168100000, "statistic_num" : 11 }, { "time_stamp" : 1700168400000, "statistic_num" : 8 }, { "time_stamp" : 1700168700000, "statistic_num" : 10 }, { "time_stamp" : 1700169000000, "statistic_num" : 10 }, { "time_stamp" : 1700169300000, "statistic_num" : 9 }, { "time_stamp" : 1700169600000, "statistic_num" : 10 }, { "time_stamp" : 1700169900000, "statistic_num" : 8 }, { "time_stamp" : 1700170200000, "statistic_num" : 11 }, { "time_stamp" : 1700170500000, "statistic_num" : 9 }, { "time_stamp" : 1700170800000, "statistic_num" : 13 }, { "time_stamp" : 1700171100000, "statistic_num" : 10 }, { "time_stamp" : 1700171400000, "statistic_num" : 8 }, { "time_stamp" : 1700171700000, "statistic_num" : 10 }, { "time_stamp" : 1700172000000, "statistic_num" : 11 }, { "time_stamp" : 1700172300000, "statistic_num" : 11 }, { "time_stamp" : 1700172600000, "statistic_num" : 10 }, { "time_stamp" : 1700172900000, "statistic_num" : 11 }, { "time_stamp" : 1700173200000, "statistic_num" : 9 }, { "time_stamp" : 1700173500000, "statistic_num" : 9 }, { "time_stamp" : 1700173800000, "statistic_num" : 12 }, { "time_stamp" : 1700174100000, "statistic_num" : 9 }, { "time_stamp" : 1700174400000, "statistic_num" : 11 }, { "time_stamp" : 1700174700000, "statistic_num" : 10 }, { "time_stamp" : 1700175000000, "statistic_num" : 10 }, { "time_stamp" : 1700175300000, "statistic_num" : 11 }, { "time_stamp" : 1700175600000, "statistic_num" : 9 }, { "time_stamp" : 1700175900000, "statistic_num" : 11 }, { "time_stamp" : 1700176200000, "statistic_num" : 10 }, { "time_stamp" : 1700176500000, "statistic_num" : 9 }, { "time_stamp" : 1700176800000, "statistic_num" : 11 }, { "time_stamp" : 1700177100000, "statistic_num" : 9 }, { "time_stamp" : 1700177400000, "statistic_num" : 11 }, { "time_stamp" : 1700177700000, "statistic_num" : 9 }, { "time_stamp" : 1700178000000, "statistic_num" : 12 }, { "time_stamp" : 1700178300000, "statistic_num" : 10 }, { "time_stamp" : 1700178600000, "statistic_num" : 9 }, { "time_stamp" : 1700178900000, "statistic_num" : 11 }, { "time_stamp" : 1700179200000, "statistic_num" : 9 }, { "time_stamp" : 1700179500000, "statistic_num" : 10 }, { "time_stamp" : 1700179800000, "statistic_num" : 10 }, { "time_stamp" : 1700180100000, "statistic_num" : 11 }, { "time_stamp" : 1700180400000, "statistic_num" : 10 }, { "time_stamp" : 1700180700000, "statistic_num" : 9 }, { "time_stamp" : 1700181000000, "statistic_num" : 12 }, { "time_stamp" : 1700181300000, "statistic_num" : 9 }, { "time_stamp" : 1700181600000, "statistic_num" : 12 }, { "time_stamp" : 1700181900000, "statistic_num" : 9 }, { "time_stamp" : 1700182200000, "statistic_num" : 11 }, { "time_stamp" : 1700182500000, "statistic_num" : 9 }, { "time_stamp" : 1700182800000, "statistic_num" : 10 }, { "time_stamp" : 1700183100000, "statistic_num" : 11 }, { "time_stamp" : 1700183400000, "statistic_num" : 10 }, { "time_stamp" : 1700183700000, "statistic_num" : 9 }, { "time_stamp" : 1700184000000, "statistic_num" : 8 }, { "time_stamp" : 1700188200000, "statistic_num" : 1 } ] } ] }
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 sync_task_id String 同步任务id 最小长度:1 最大长度:255 statistic_time_type String 统计结果时间间隔说明描述 FIVE_MINUTES:5分钟 ONE_HOUR:1小时 最小长度:1 最大长度:255 枚举值: FIVE_MINUTES ONE_HOUR statistic_datas Array of StatisticTypeData objects 查询的同步任务统计结果集 数组长度:0 - 1000 表5 StatisticTypeData 参数 参数类型 描述 data_type String 统计数据类型: REQUEST:请求对象数 SUCCESS:成功对象数 FAILURE:失败对象数 SKIP:跳过对象数 SIZE:对象容量(Byte) 最小长度:1 最大长度:255 枚举值: REQUEST SUCCESS FAILURE SKIP SIZE data Array of StatisticData objects 查询的同步任务统计结果集 数组长度:0 - 1000 表6 StatisticData 参数 参数类型 描述 time_stamp Long 统计时间戳 最小值:0 最大值:9223372036854775807 statistic_num Long 统计数量 最小值:0 最大值:9223372036854775807 状态码: 404 表7 响应Body参数 参数 参数类型 描述 error_msg String 错误信息。 error_code String 错误码。
  • URI GET /v2/{project_id}/sync-tasks/{sync_task_id}/statistics 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 项目ID 最小长度:1 最大长度:1024 sync_task_id 是 String 同步任务ID。 最小长度:0 最大长度:255 表2 Query参数 参数 是否必选 参数类型 描述 data_type 是 String 统计数据类型: 多类型查询用‘,’分割; REQUEST:接收同步请求对象数 SUCCESS:同步成功对象数 FAILURE:同步失败对象数 SKIP:同步跳过对象数 SIZE:同步成功对象容量(Byte) 最小长度:1 最大长度:255 枚举值: REQUEST SUCCESS FAILURE SKIP SIZE start_time 是 String 查询开始时间 最小长度:1 最大长度:1024 end_time 是 String 查询开始时间 最小长度:1 最大长度:1024
  • 查看设备 登录迁移中心管理控制台。 单击左侧导航栏的“迁移工具”,在页面右上角的当前项目下拉列表中选择迁移项目,即可查看当前项目下的所有Edge设备以及设备状态。 设备状态说明参见下表。 表1 设备状态说明 设备状态 说明 在线 Edge与MgC控制台之间一直连接,无断开。 离线 Edge运行程序退出与MgC控制台之间的连接断开1分钟后,置为“离线”状态。 未激活 已在Edge完成注册但设备还未接入平台。 异常 无此状态,如出现该状态,请联系华为云技术支持。 冻结 无此状态,如出现该状态,请联系华为云技术支持。 单击设备名称前的下拉按钮,可以查看该Edge设备所安装的采集器类型、版本和状态等信息。
共100000条