Docs
api
Cloud Memory(UMem)
CreateUMemSpace

Create Memory Space - CreateUMemSpace

Overview

Create UMem Memory Space

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateUMemSpace.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
SizeintMemory size, unit: GB, range [1~1024]Yes
NamestringSpace Name, Length (6<=size<=63)Yes
ProtocolstringProtocol: memcache, redis (default is redis). Note: redis does not have a single type.No
TypestringSpace Type: single (no hot backup), double (hot backup) (default: double)No
ChargeTypestringYearly , Monthly, Default: MonthlyNo
QuantityintPurchase Duration Default: 1No
VPCIdstringID of VPCNo
SubnetIdstringSubnet IDNo
TagstringBusiness Group NameNo
PasswordstringURedis password. Please set the password according to the field specification. The password needs to be encoded with base64, as shown in the following example: # echo -n Password1 | base64UGFzc3dvcmQx.No
SlaveZonestringCross-IDC UDRedis, the availability zone of the slave (must be in the same Region as the Zone, and cannot be the same)No
BlockCntintNumber of ShardsNo
ClusterModestringRWMode”: Indicates the creation of a read-write separation version; others are for creating a regular version.No
VersionstringDistributed Sharding Version (the default version is 4.0, for other versions see DescribeUDRedisBlockVersion)No
HighPerformancebooleanWhether to create performance-enhanced type. The default is false, or not filled in, fill in true for performance-enhanced type.No
ProxySizeintNumber of distributed proxy CPU cores, default to not create a proxy when not filled in or when 0 is passed.No
UlbModebooleanWhether to create a load-balancing distributed proxy, true means to create a load-balancing proxy.No
PortintShard port, default is 6379No
ProxyPortintProxy port, default is 6379No
BackupIdstringBackup ID, select to create a new cluster from this backupNo
SpaceIdstringSpace ID, when creating a backup, you need to fill in the source space ID.No
CouponIdstringID of the voucher usedNo

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
SpaceIdstringCreate Memory Space ID ListNo

Example

Request Example

https://api.dezai.com/?Action=CreateUMemSpace
&Region=cn-bj2
&Zone=cn-bj2-04
&Size=16
&Name=memfbs_XXXXXX
&Tag=rWEhrBRd
&Password=EodyPYWL
&Password=VzEIaMAN
&SlaveZone=ptGhogJa
&VPCId=eKWChJCJ
&SubnetId=NBKWNfXD
&BlockCnt=4
&ClusterMode=FZTxNVzD
&Version=WWTSLAYj
&HighPerformance=false
&ProxySize=5
&Port=9
&ProxyPort=9
&UlbMode=true
&SpaceId=bvfrJZyE
&BackupId=XIvJdFGm
&SpaceId=BDxakGCB

Response Example

{
  "Action": "CreateUMemSpaceResponse",
  "RetCode": 0,
  "SpaceId": "umem-opqmXXXX"
}