查询Redis实例的配置参数和运行参数。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 否 | 地域ID,可调用DescribeRegions查询,使用此参数指定要创建实例的地域。 | cn-hangzhou |
DBInstanceId | string | 是 | 实例ID。 | r-bp1zxszhcgatnx**** |
NodeId | string | 否 | 节点ID。 说明传入本参数可查询集群实例中指定节点的参数配置。 | r-bp1xxxxxxxxxxxxx-db-0 |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "9C1338BE-8DE8-4890-A900-E1BC06BF****",
"Engine": "redis",
"EngineVersion": "4.0",
"ConfigParameters": {
"Parameter": [
{
"CheckingCode": "[0|1]",
"ParameterName": "script_check_enable",
"ParameterValue": "1",
"ForceRestart": true,
"ParameterDescription": "Check all keys passed in the KEYS array map to the same slot.",
"ModifiableStatus": true
}
]
},
"RunningParameters": {
"Parameter": [
{
"CheckingCode": "[0|1]",
"ParameterName": "#no_loose_disabled-commands",
"ParameterValue": "keys,flushall,flushdb",
"ForceRestart": "true",
"ParameterDescription": "You can disable some dangerous commands, for example \\\"keys,flushdb,flushall\\\", the commands must be in [flushall,flushdb,keys,hgetall,eval,evalsha,script].",
"ModifiableStatus": "true"
}
]
}
}
错误码
Http code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | 由于实例类型不允许该操作,只读实例允许克隆和备份实例 |
404 | InvalidDBInstanceClass.NotFound | Specified DB instance class is not found. | 实例规格无效,请检查该参数是否正确。 |
访问错误中心查看更多错误码。