查询参数组列表
url参数
Action | Version | Method | 描述 |
ListParameterGroup | 2018-03-22 | GET | 删除参数组 |
请求参数
参数名称 | 说明 | 参数类型 | 是否必填 |
TypeId | 实例类型, 0: 基础版; 1:主从版; 2: 集群版; 3: Sentinel版,不传将获取所有实例类型的参数组。 | Integer | 否 |
EngineVersion | 实例类型对应的引擎版本; 基础版: 2.8.24,主从版: 2.8.24; 集群版: 3.2.5或4.0.0; Sentinel: 2.8.24-standard,不传将获取所有引擎版本信息。 | String | 否 |
Limit | 分页大小,1~1000 | Integer | 是 |
Offset | 偏移量,最小值:0 | Integer | 是 |
Action | ListParameterGroup | String | 是 |
Version | 2018-03-22 | String | 是 |
返回参数
参数名称 | 参数类型 | 描述 |
RequestId | String | 请求id |
Code | String | 公共状态码, “Success”表示成功,其他值表示失败。 |
Message | String | 信息描述 |
TotalCount | Integer | 参数组总数 |
ParameterGroupSet | Array | 参数组列表 |
状态码
错误码(Code) | 错误提示(Message) | HTTP状态码 | 说明 |
Success | | 200 | 请求成功 |
InvalidParameterValue | 参数XX不合法 | 400 | 参数不合法 |
请求示例
GET https://open.cn-east-1.163yun.com/ncr?Action=ListParameterGroup&Version=2018-03-22&EngineVersion=2.8.24&TypeId=1&Limit=10&Offset=0
返回示例
{
"RequestId": "re3344",
"Code": "Success",
"TotalCount": 2,
"ParameterGroupSet": [
{
"Id": 0,
"Name": "default-ha-redis2.8",
"TypeId": 1,
"EngineVersion": "2.8",
"Parameters": {
"maxmemory-policy": "volatile-lru",
"hash-max-ziplist-entries": "512",
"activedefrag": "no",
"zset-max-ziplist-entries": "512",
"maxmemory-samples": "3",
"active-defrag-cycle-max": "75",
"active-defrag-ignore-bytes": "100mb",
"reserved-memory-percent": "25",
"hll-sparse-max-bytes": "3000",
"notify-keyspace-events": "",
"active-defrag-threshold-lower": "10",
"loglevel": "notice",
"list-max-ziplist-entries": "512",
"list-max-ziplist-value": "64",
"set-max-intset-entries": "512",
"zset-max-ziplist-value": "64",
"hash-max-ziplist-value": "64",
"active-defrag-threshold-upper": "100",
"active-defrag-cycle-min": "25"
},
"Description": "Default parameter group",
"IsDefault": true,
"CreteTime": 0,
"UpdateTime": 0
},
{
"Id": 18,
"Name": "parametergrouptest4",
"TypeId": 1,
"EngineVersion": "2.8",
"Parameters": {
"maxmemory-policy": "volatile-random",
"hash-max-ziplist-entries": "512",
"activedefrag": "no",
"zset-max-ziplist-entries": "512",
"maxmemory-samples": "3",
"active-defrag-cycle-max": "75",
"active-defrag-ignore-bytes": "100mb",
"reserved-memory-percent": "25",
"hll-sparse-max-bytes": "3000",
"notify-keyspace-events": null,
"active-defrag-threshold-lower": "10",
"loglevel": "notice",
"list-max-ziplist-entries": "512",
"list-max-ziplist-value": "64",
"set-max-intset-entries": "512",
"zset-max-ziplist-value": "64",
"hash-max-ziplist-value": "64",
"active-defrag-threshold-upper": "100",
"active-defrag-cycle-min": "25"
},
"Description": "test",
"IsDefault": false,
"CreteTime": 1547627418684,
"UpdateTime": 1547627418684
}
]
}