Creates a pay-as-you-go Message Queue for Apache Kafka instance.

Before you call this operation, make sure that you understand the billing methods and pricing rules of pay-as-you-go Message Queue for Apache Kafka instances. For more information, see Billing.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreatePostPayOrder

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

RegionId String Yes cn-hangzhou

The ID of the region in which you want to create the pay-as-you-go Message Queue for Apache Kafka instance.

TopicQuota Integer Yes 50

The maximum number of topics.

  • The default value of the TopicQuota parameter varies with the traffic specification. If the number of topics that you consume exceeds the default value of the TopicQuota parameter, additional fees are charged.
  • For more information about the valid values, see Billing.
DiskType String Yes 0

The disk type for the instance. Valid values:

  • 0: ultra disk
  • 1: standard SSD
DiskSize Integer Yes 500

The disk size for the instance.

For more information about the valid values, see Billing.

DeployType Integer Yes 5

The deployment mode of the instance. Valid values:

  • 4: an instance allows access from the Internet and a virtual private cloud (VPC).
  • 5: an instance that allows access only from a VPC.
IoMax Integer No 20

The maximum traffic volume.

  • You must specify at least one of the IoMax and IoMaxSpec parameters. If you specify both, the IoMaxSpec value takes effect. We recommend that you specify only the IoMaxSpec parameter.
  • For more information about the valid values, see Billing.
EipMax Integer No 0

The Internet traffic volume.

  • This parameter is required if DeployType is set to 4.
  • For more information about the valid values, see Billing.
SpecType String No normal

The edition of the instance. Valid values:

  • normal: Standard Edition (High Write)
  • professional: Professional Edition (High Write)
  • professionalForHighRead: Professional Edition (High Read)

For more information about these instance editions, see Billing.

IoMaxSpec String No alikafka.hw.2xlarge

The traffic specification of the instance.

  • You must specify at least one of the IoMax and IoMaxSpec parameters. If you specify both, the IoMaxSpec value takes effect. We recommend that you specify only the IoMaxSpec parameter.
  • For more information about the valid values, see Billing.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code. An HTTP status code of 200 indicates that the request is successful.

Message String operation success.

The returned message.

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

The ID of the request.

Success Boolean true

Indicates whether the request is successful.

OrderId String 20497346575****

The ID of the order.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreatePostPayOrder
&RegionId=cn-hangzhou
&TopicQuota=50
&DiskType=0
&DiskSize=500
&DeployType=5
&IoMax=20
&EipMax=0
&SpecType=normal
&IoMaxSpec=alikafka.hw.2xlarge
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreatePostPayOrderResponse>
    <Code>200</Code>
    <Message>operation success.</Message>
    <RequestId>06084011-E093-46F3-A51F-4B19A8AD****</RequestId>
    <Success>true</Success>
    <OrderId>20497346575****</OrderId>
</CreatePostPayOrderResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

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