查询空间-DescribeUMemSpace
获取UMem内存空间列表
Request Parameters
Response Elements
Parameter name | Type | Description | Required |
RetCode | int | 操作返回码 | Yes |
Action | string | 操作名称 | Yes |
DataSet | array | JSON 格式的UMem内存空间实例列表, 详细参见 UMemSpaceSet | No |
TotalCount | int | 根据过滤条件得到的总数 | No |
UMemSpaceSet
Parameter name | Type | Description | Required |
SpaceId | string | 内存空间ID | No |
Name | string | 内存空间名称 | No |
Zone | string | 可用区,参见可用区列表 | No |
CreateTime | int | 创建时间 | No |
ExpireTime | int | 到期时间 | No |
Type | string | 空间类型:single(无热备),double(热备) | No |
Protocol | string | 协议类型: memcache, redis | No |
Size | int | 容量单位GB | No |
UsedSize | int | 使用量单位MB | No |
State | string | Starting:创建中 Running:运行中 Fail:失败 | No |
ChargeType | string | Year, Month, Dynamic, Trial | No |
Address | array | IP端口信息请参见 UMemSpaceAddressSet | No |
UMemSpaceAddressSet
Parameter name | Type | Description | Required |
IP | string | UMem实例访问IP | No |
Port | int | UMem实例访问Port | No |
Request Example
https://api.ucloud.cn/?Action=DescribeUMemSpace &Region=cn-north-02 &Zone=cn-bj2-04 &Offset=0 &Limit=20
Response Example
{ "Action": "DescribeUMemSpaceResponse", "TotalCount": 2, "DateSet": [ { "Protocol": "redis", "Name": "test", "Zone": "cn-bj2-04", "UsedSize": 120, "ID": "umem-868a5a", "ExpireTime": 1414381592, "State": "Running", "ChargeType": "Month", "Address": [ { "IP": "10.10.8.12", "Port": "6379" }, { "IP": "10.10.8.25", "Port": "6379" } ], "Type": "double", "CreateTime": 1234567890, "Size": 160 }, { "Protocol": "redis", "Name": "test", "Zone": "cn-bj2-04", "UsedSize": 120, "ID": "umem-e6caa4", "ExpireTime": 1414381592, "State": "Running", "ChargeType": "Month", "Address": [ { "IP": "10.10.8.12", "Port": "6379" }, { "IP": "10.10.8.25", "Port": "6379" } ], "Type": "double", "CreateTime": 1234567890, "Size": 160 } ], "RetCode": 0 }