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

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 UpgradePrePayOrder

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

DiskSize Integer Yes 900

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

Note:The specified disk size must be at least the current disk size of the Message Queue for Apache Kafka instance.

EipMax Integer Yes 20

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

Note:The specified public traffic must be at least the current public traffic configured for the Message Queue for Apache Kafka instance.

InstanceId String Yes alikafka_post-cn-mp919o4v****

The ID of the Message Queue for Apache Kafka instance.

IoMax Integer Yes 40

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

Note:The specified peak traffic must be at least the current peak traffic configured for the Message Queue for Apache Kafka instance.

RegionId String Yes cn-hangzhou

The ID of the region where the Message Queue for Apache Kafka instance is to be upgraded.

TopicQuota Integer Yes 50

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

Note:The specified number of topics must be at least the current number of topics for the Message Queue for Apache Kafka instance.

SpecType String No professional

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

  • professional: Professional Edition
  • normal: Standard Edition

Note:A Message Queue for Apache Kafka instance can only be upgraded from the Standard Edition to the Professional Edition, but cannot be downgraded from the Professional Edition to the Standard Edition.

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.

RequestId String ABA4A7FD-E10F-45C7-9774-A5236015****

The ID of the request.

Success Boolean true

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/? Action=UpgradePrePayOrder
&DiskSize=900
&EipMax=20
&InstanceId=alikafka_post-cn-mp919o4v****
&IoMax=40
&RegionId=cn-hangzhou
&TopicQuota=50
&<Common request parameters>

Sample success responses

XML format

<Message>operation success. </Message>
<RequestId>0220FACD-4D57-4F46-BA77-AD333498****</RequestId>
<Success>true</Success>
<Code>200</Code>

JSON format

{
    "Message": "operation success.",
    "RequestId": "0220FACD-4D57-4F46-BA77-AD333498****",
    "Success": true,
    "Code": 200
}

Error codes

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