Skip to Content
RMQ Message Queue(URocketMQ)CreateURocketMQService

CreateURocketMQService - CreateURocketMQService

Overview

Create a URocketMQ service

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateURocketMQService.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 Region and Availability Zone ListYes
ProjectIdstringProject ID. Please refer to GetProjectList interfaceYes
NamestringService name. Regular expression check: ^[a-zA-Z0-9-_]{1,36}$Yes
StorageintMessage storage space, in GB, with different optional values ​​depending on TPS. 20000: [300, 2000], 50000: [700, 2800], 100000: [1500, 5000], 200000: [2000, 8000]Yes
VPCIdstringVPC ID, the default is the default VPC in the current regionYes
SubnetIdstringSubnet ID, the default subnet is the default subnet of the current regionYes
ChargeTypestringBilling mode. The enumeration value is: Year, pay annually; Month, pay monthly; Dynamic, pay in advance by the hourYes
TpsstringTransaction volume per second. Supports 20000, 50000, 100000, 200000Yes
ModestringInstance network type, unique value: PrivateNetYes
EditionstringVersion, unique value: EnterpriseYes
QuantityintPurchase duration. When paying monthly, quantity 0 means the purchase will be made until the end of the month. Hourly payment only supports quantity 0 or no quantity. Annual payment does not support quantity 0.No
RemarkstringremarkNo
TagstringBusiness group tag, default value: DefaultNo
FileReservedTimestringThe maximum retention time of a message, default value: 3No

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
ServiceIdstringService IDYes

Example

Request Example

https://api.ucloud-global.com/?Action=CreateURocketMQService &Region=cn-zj &ProjectId=edbKnkbr &Name=zhQpmDFA &TPS=tZiqcgLK &TopicLimit=25 &Storage=1 &VPCId=IWYGphNn &SubnetId=VeERPmRM &ChargeType=Year &Quantity=9 &Remark=EdQGxpHS &Remark=iNqWLhHU &Mode=PrivateNet:内网模式;PublicNet:外网模式 &Tag=idcfHQMY &Edition=cJUoTkTu &FileReservedTime=fhRWEiwS

Response Example

{ "Action": "CreateURocketMQServiceResponse", "Message": "bjtIbiDr", "RetCode": 0, "ServiceId": "amhugDFb" }