查询实例详情
url参数
Action | Version | Method | 描述 |
DescribeRedis | 2018-03-22 | GET | 查询Redis实例详情 |
请求参数
参数名称 | 说明 | 参数类型 | 是否必填 | 备注 |
RedisId | 实例id | String | 是 | |
Action | DescribeRedis | String | 是 | |
Version | 2018-03-22 | String | 是 | |
返回参数
参数名称 | 参数类型 | 描述 |
RequestId | String | 请求id |
Code | String | 公共错误码, “Success”表示成功,其他值表示失败 |
Redis | Object | Redis对象 |
状态码
错误码(Code) | 错误提示(Message) | http status code | 说明 |
SUCCESS | Success | 200 | 获取redis信息成功 |
ClusterNotFound | 实例不存在,请指定正确的集群名称。 | 400 | 实例不存在 |
请求示例
GET https://open.cn-east-1.163yun.com/ncr?Action=DescribeRedis&Version=2018-03-22&RedisId=ced0adc8-732b-40ed-a4ef-e6d4500022af
返回示例
{
"RequestId": "782bb1fe-b982-446e-a6f9-56156ccfa1b9",
"Code": "Success",
"Redis": {
"RedisName": "smoke-autotest-sentinel-ld9m9",
"ProductId": "27c88bfc2b0148e88088880f0f96c040",
"RedisId": "ced0adc8-732b-40ed-a4ef-e6d4500022af",
"ZoneId": "cn-east-1b",
"VpcId": "47e88306-6e2a-4e9a-a834-27e478bae028",
"SubnetId": "a3fc3d88-1431-4779-8ad2-af177b43cc1d",
"SecurityGroupIds": [
"dd9891d7-b6f5-4371-a311-ee91e5c1a6bc"
],
"NetworkType": "private",
"EngineVersion": "2.8.24-standard",
"TypeId": 3,
"MemorySize": 2048,
"UsedMemory": 0,
"Shards": 2,
"Replicas": 2,
"NodePort": 0,
"Status": "available",
"CreateTime": "2018-08-31 09:51:57",
"EnableRollback": false,
"ReplicaGroup": [],
"SentinelGroup": [
{
"NodeIp": "192.168.0.211",
"Port": 26379
},
{
"NodeIp": "192.168.0.212",
"Port": 26379
},
{
"NodeIp": "192.168.0.213",
"Port": 26379
}
],
"ChargeType": "HOUR",
"HealthStatus": "GOOD",
"HighAvailability": true,
"ReservedPercent": 0.5,
"Series": "normal"
}
}