查询空间-DescribeUMemSpace

获取UMem内存空间列表

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域,参见 地域和可用区列表Yes
Zonestring可用区,参见 可用区列表No
Offsetint数据偏移量, 默认为0No
Limitint返回数据长度, 默认为20No
SpaceIdstring内存空间ID (无ID,则获取所有)No
ProjectIdstring项目编号No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
DataSetarrayJSON 格式的UMem内存空间实例列表, 详细参见 UMemSpaceSetNo
TotalCountint根据过滤条件得到的总数No

UMemSpaceSet

Parameter nameTypeDescriptionRequired
SpaceIdstring内存空间IDNo
Namestring内存空间名称No
Zonestring可用区,参见可用区列表No
CreateTimeint创建时间No
ExpireTimeint到期时间No
Typestring空间类型:single(无热备),double(热备)No
Protocolstring协议类型: memcache, redisNo
Sizeint容量单位GBNo
UsedSizeint使用量单位MBNo
StatestringStarting:创建中 Running:运行中 Fail:失败No
ChargeTypestringYear, Month, Dynamic, TrialNo
AddressarrayIP端口信息请参见 UMemSpaceAddressSetNo

UMemSpaceAddressSet

Parameter nameTypeDescriptionRequired
IPstringUMem实例访问IPNo
PortintUMem实例访问PortNo

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
}