查询实例参数详情
url参数
Action | Version | Method | 描述 |
DescribeRedisParam | 2018-03-22 | GET | 获取Redis实例参数详情 |
请求参数
参数名称 | 说明 | 参数类型 | 是否必填 | 备注 |
RedisId | 实例id | String | 是 | |
Action | DescribeRedisParam | String | 是 | |
Version | 2018-03-22 | String | 是 | |
返回参数
参数名称 | 参数类型 | 描述 |
RequestId | String | 请求id |
Code | String | 公共错误码, “Success”表示成功,其他值表示失败 |
Params | Object | Redis集群参数信息 |
状态码
错误码(Code) | 错误提示(Message) | http status code | 说明 |
ClusterNotFound | 实例不存在,请指定正确的集群名称 | 404 | redis实例不存在 |
Success | 返回集群参数信息 | 200 | 集群参数信息 |
请求示例
GET https://open.cn-east-1.163yun.com/ncr?Action=DescribeRedisParam&Version=2018-03-22&RedisId=6dcb422c-f057-4dd2-9ec2-4c7e3eac6879
返回示例
{
"RequestId": "de830b6d-5815-4317-83c2-f4dce5e92848",
"Code": "Success",
"Params": {
"loglevel": {
"need": false,
"defaultValue": "notice",
"allow": "debug|verbose|notice|warning",
"forbidden": false,
"type": "GENERAL",
"repeat": false,
"needReboot": false,
"currentValue": "notice"
},
"maxmemory-policy": {
"need": false,
"defaultValue": "volatile-lru",
"allow": "volatile-lru|allkeys-lru|volatile-random|allkeys-random|volatile-ttl|noeviction",
"forbidden": false,
"type": "LIMITS",
"repeat": false,
"needReboot": false,
"currentValue": "volatile-lru"
},
"maxmemory-samples": {
"need": false,
"defaultValue": "3",
"allow": "^[1-9]\\d{0,1}$",
"forbidden": false,
"type": "LIMITS",
"repeat": false,
"needReboot": false,
"currentValue": "3"
},
"hash-max-ziplist-entries": {
"need": false,
"defaultValue": "512",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "512"
},
"hash-max-ziplist-value": {
"need": false,
"defaultValue": "64",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "64"
},
"list-max-ziplist-entries": {
"need": false,
"defaultValue": "512",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "512"
},
"list-max-ziplist-value": {
"need": false,
"defaultValue": "64",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "64"
},
"set-max-intset-entries": {
"need": false,
"defaultValue": "512",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "512"
},
"zset-max-ziplist-entries": {
"need": false,
"defaultValue": "512",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "512"
},
"zset-max-ziplist-value": {
"need": false,
"defaultValue": "64",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "64"
},
"hll-sparse-max-bytes": {
"need": false,
"defaultValue": "3000",
"allow": "^[1-9]\\d{0,8}$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "3000"
},
"reserved-memory-percent": {
"need": false,
"defaultValue": "25",
"allow": "^([0-9]?|[0-4][0-9]|50)$",
"forbidden": false,
"type": "ADVANCED CONFIG",
"repeat": false,
"needReboot": false,
"currentValue": "50"
}
}
}