Docs
api
Cloud Database(UDB)
CreateUDBRouteInstance

Create mongos instance - CreateUDBRouteInstance

Overview

Create mongos instance

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateUDBRouteInstance.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 ListNo
ProjectIdstringProject ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface.No
DBTypeIdstringDB type id, mongodb is subdivided by version into 1: mongodb-2.4, 2: mongodb-2.6, 3: mongodb-3.0, 4: mongodb-3.2Yes
NamestringInstance name, at least 6 charactersYes
PortintPort number, mongodb default 27017Yes
ParamGroupIdintConfiguration parameter group id used by the DB instanceYes
MemoryLimitintMemory Limit (MB), currently supports the following levels 600M/1500M/3000M /6000M/15000M/30000MYes
DiskSpaceintDisk Space (GB), temporarily supports 20G - 500GYes
ConfigsvrId.NstringConfigure the server’s dbid, allow one or three.Yes
ChargeTypestringYearly, Monthly, Dynamic, Trial, Default: MonthlyNo
QuantityintPurchase duration, default value 1No
UseSSDbooleanUse SSD, default is trueNo
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
DBIdstringdb instance idNo

Example

Request Example

https://api.dezai.com/?Action=CreateUDBRouteInstance
&Region=cn-bj2
&DBTypeId=mongodb-2.6
&ChargeType=Month   
&Name=udb-xxxxxxx
&Port=27017
&ParamGroupId=23
&MemoryLimit=600
&DiskSpace=20
&ConfigsvrId.0=udb-xxxxx
&ConfigsvrId.1=udb-xxxxx
&ConfigsvrId.2=udb-xxxxx
&ShardedClusterId=EmlJjnIa

Response Example

{
  "Action": "CreateUDBRouteInstanceResponse",
  "DBId": "udb-xxxxx",
  "RetCode": 0
}