Docs
api
Cloud Memory(UMem)
DescribeUMemBlockInfo

Pull UDRedis Shard Information - DescribeUMemBlockInfo

Overview

Pull UDRedis Shard Information

💡 In the return parameters, BlockSlotBegin/BlockSlotEnd are currently supported by some data centers, and will be supported by all data centers in the future.

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeUMemBlockInfo.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
SpaceIdstringUMem Memory Resource IDYes
OffsetintThe starting offset for pagination display, the default value is 0.Yes
LimitintNumber of items displayed per page, the default value is 10Yes

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
DataSetarray[UMemBlockInfo]Distributed Redis Shard InformationNo
ReadModestringCluster read-write separation strategy. Enumeration values [‘Custom’: User-defined node weights, ‘Uniform’: All nodes, including the master node, average read requests, ‘ReadOnly’: Read requests are evenly distributed to read-only nodes].No

Data Model

UMemBlockInfo

Field NameTypeDescription InformationRequired
BlockIdstringShard IDYes
BlockPortintShard PortYes
BlockSizeintCapacity Unit GBYes
BlockStatestringInstance Status Starting // Creating Creating // Initializing CreateFail // Creation Failed Fail // Creation Failed Deleting // Deleting DeleteFail // Deletion Failed Running // Running Resizing // Resizing ResizeFail // Resize Failed Configing // Configuring ConfigFail // Configuration Failed Restarting // Restarting SetPasswordFail //Setting Password Failed
UpgradeMemInit //Task Initializing
Yes
BlockSlotBeginintStarting value of the key slot for shard maintenanceYes
BlockSlotEndintEnd value of the key slot for shard maintenanceYes
BlockVipstringSharded IPNo
BlockUsedSizeintUsage Unit MBNo
BlockTypestringShard TypeNo
BlockReadWeightintNo
BlockNamestringShard NameNo

Example

Request Example

https://api.dezai.com/?Action=DescribeUMemBlockInfo
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=tfmMJsli
&SpaceId=OGmgfZKi
&Offset=9
&Limit=6

Response Example

{
  "Action": "DescribeUMemBlockInfoResponse",
  "DataSet": [
    {
      "BlockId": "GhAwvlNF",
      "BlockPort": 8,
      "BlockSize": 5,
      "BlockSlotBegin": 9,
      "BlockSlotEnd": 8,
      "BlockState": "xaRcEEoZ",
      "BlockUsedSize": 3,
      "BlockVip": "ggWsZHay"
    }
  ],
  "ReadMode": "zrIdNFWx",
  "RetCode": 0
}