You can call this operation to create a subscription Message Queue for Apache Kafka instance.

Debugging

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes CreatePrePayOrder

The operation that you want to perform. Set the value to CreateMasterSlaveServerGroup. Set the value to

CreatePrePayOrder.

DeployType Integer Yes. 4

The deployment mode of the Message Queue for Apache Kafka instance. Valid values:

5: Instance of the VPC type

DiskSize Integer Yes. 900

The size of the disk to be configured for the Message Queue for Apache Kafka instance.

DiskType String Yes 1

The type of the disk to be configured for the Message Queue for Apache Kafka instance. Valid values:

  • 0: Ultra disk
  • 1:SSD
IoMax Integer Yes. 20

The peak traffic to be configured for the Message Queue for Apache Kafka instance.

For more information about the value range, see Billing.

RegionId String Yes cn-hangzhou

The region ID of the Message Queue for Apache Kafka instance.

TopicQuota Integer Yes. 50

The number of topics to be configured for the Message Queue for Apache Kafka instance.

The default value of this parameter varies with different peak traffic values. Additional fees are charged if the default values are exceeded.Different specifications have different default values, and extra fees are charged. For more information, see Billing.

EipMax Integer No 40

The public traffic to be configured for the Message Queue for Apache Kafka instance.

This parameter must be specified when the DeployType parameter is set to 4.

SpecType String No professional

The edition of the Message Queue for Apache Kafka instance. Valid values:

  • professional: Professional Edition
  • normal: Normal version

Response parameters

Parameter Type Example Description
Code Integer 200

The returned status code. If "200" is returned, the request is successful.

Message String operation success.

The returned message.

OrderId String 20497346575****

The order ID of the Message Queue for Apache Kafka instance.

RequestId String 06084011-E093-46F3-A51F-4B19A8AD****

The request ID.

Success Boolean true

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/? Action=CreatePrePayOrder
&DeployType=4
&diskSize=5
&DiskType=1
&IoMax=20
&RegionId=cn-hangzhou
&TopicQuota=50
&<Common request parameters>

Sample success responses

XML format

<Message>operation success. </Message>
<OrderId>203377778550296</OrderId>
<RequestId>06084011-E093-46F3-A51F-4B19A8AD7A94</RequestId>
<Success>true</Success>
<Code>200</Code>

JSON format

{
	"Message":"operation success.",
	"OrderId":204973465750800,
	"RequestId":"06084011-E093-46F3-A51F-4B19A8AD7A94",
	"Success":true,
	"Code":"200"
}

Error codes

For a list of error codes, visit the API Error Center.