检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
安装Python和Python Redis客户端redis-py。 如果系统没有自带Python,可以使用yum方式安装。 下载并解压redis-py。 wget https://github.com/andymccurdy/redis-py/archive/master.zip unzip master.zip
登录弹性云服务器。 安装Node.js。 apt install nodejs-legacy 如果以上命令安装不了,备选方式如下: wget https://nodejs.org/dist/v0.12.4/node-v0.12.4.tar.gz --no-check-certificate
约束与限制 Redis实例 表1 Redis实例约束与限制 限制项 约束与限制 实例版本 DCS目前支持的Redis版本为:Redis 3.0(已停售)、Redis 4.0、Redis 5.0、Redis 6.0和Redis 7.0(公测)。 Redis实例创建后,不支持直接升级
仅当URI中参数allFailure值为“false”或者其他值时,才需要配置该参数。 一次最多可删除50个实例。 请求URL: DELETE https://{dcs_endpoint}/v1.0/{project_id}/instances?allFailure={allFailure}
表1 参数说明 参数 类型 必选 说明 project_id String 是 项目ID。 请求消息 请求参数 无。 请求示例 GET https://{dcs_endpoint}/v1.0/{project_id}/instances/statistic 响应消息 响应参数 参数说明见表2。
String 否 查询结束时间。格式:yyyyMMddHHmmss,如:20170718235959。 请求消息 请求参数 无 请求示例 GET https://{dcs_endpoint}/v1.0/{project_id}/instances/{instance_id}/restores
扩展错误信息(暂未使用,赋值为null)。 请求示例 获取指定实例的备份文件下载链接,下载备份文件,设置URL有效期为1800秒。 POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/backups/{backup_id}/links
error_ext_msg String 参数解释: 扩展错误信息(暂未使用,赋值为null)。 取值范围: 不涉及。 请求示例 POST https://{dcs_endpoint}/v2/0524e839a54847039e9b2b46e8aa788a/instances/5c59
创建DCS时选择不到需要的企业项目处理。 设置实例密码。 “访问方式”:支持“密码访问”和“免密访问”,您可以设置访问实例时是否要进行密码验证。 选择免密访问方式时,存在安全风险,请谨慎使用。 若申请免密模式的Redis实例,申请成功后,可以通过重置密码进行密码设置,具体可参考修改Redis实例的访问方式。
error_ext_msg String 参数解释: 扩展错误信息(暂未使用,赋值为null)。 取值范围: 不涉及。 请求示例 GET https://{dcs_endpoint}/v2/instances/maintain-windows 响应示例 状态码: 200 查询维护时间窗时间段成功。
error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 请求示例 启用白名单,配置允许访问的IP地址。 PUT https://{dcs_endpoint}/v2/{project_id}/instance/{instance_id}/whitelist {
error_ext_msg String 参数解释: 扩展错误信息(暂未使用,赋值为null)。 取值范围: 不涉及。 请求示例 POST https://{dcs_endpoint}/v2/{project_id}/instance/{instance_id}/groups/{gro
最大长度:9 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 最大长度:1024 请求示例 PUT https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/bandwidth 响应示例
QueryResourceTag 参数 参数类型 描述 key String 标签键。 value String 标签值。 请求示例 GET https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/tags 响应示例 状态码:
error_code String 错误码。 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 请求示例 POST https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/auto-expire/scan
每个实例最多可以添加20个IP地址/地址段。如果有多个,可以用逗号分隔。不支持的IP和地址段:0.0.0.0和0.0.0.0/0。 请求示例 GET https://{dcs_endpoint}/v2/{project_id}/instance/{instance_id}/whitelist 响应示例
error_ext_msg String 参数解释: 扩展错误信息(暂未使用,赋值为null)。 取值范围: 不涉及。 请求示例 PUT https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/bandwidth 响应示例
String 错误码。 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 请求示例 DELETE https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/backups/{backup_id}
String 错误码。 error_ext_msg String 扩展错误信息(暂未使用,赋值为null)。 请求示例 DELETE https://{dcs_endpoint}/v2/{project_id}/tasks/{task_id} 响应示例 无 SDK代码示例 SDK代码示例如下。
error_ext_msg String 参数解释: 扩展错误信息(暂未使用,赋值为null)。 取值范围: 不涉及。 请求示例 POST https://{dcs_endpoint}/v2/{project_id}/dcs/tags 响应示例 状态码: 200 查询租户所有标签成功。