Upgrades a pay-as-you-go 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 UpgradePostPayOrder

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

UpgradePostPayOrder.

DiskSize Integer Yes 1500

The disk size for the instance.

The specified disk size must be at least the current disk size of the instance.

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

The ID of the instance that you want to upgrade.

RegionId String Yes cn-hangzhou

The ID of the region where the instance is located.

TopicQuota Integer Yes 80

The number of topics for the instance.

The specified number of topics must be at least the current number of topics for the instance.

IoMax Integer Yes 90

The peak traffic for the instance.

The specified peak traffic must be at least the current peak traffic for the instance.

SpecType String No professional

The edition of the instance. Valid values:

  • professional: Professional Edition
  • normal: Standard Edition

A Message Queue for Apache Kafka instance can only be upgraded from Standard Edition to Professional Edition. You cannot downgrade a Professional Edition instance to Standard Edition.

EipModel Boolean No true

Specifies whether to enable Internet access for the instance. Valid values:

  • true: enables Internet access.
  • false: disables Internet access.
EipMax Integer No 300

The public traffic for the instance.

  • The public bandwidth that you specify must be greater than or equal to the current public bandwidth of the instance.
  • For more information about the valid values, see Billing.
Note
  • If EipModel is set to true, set EipMax to a value that is greater than 0.
  • If EipModel is set to false, set EipMax to 0.
IoMaxSpec String No alikafka.hw.2xlarge

The traffic specification of the instance. We recommend that you specify this parameter.

  • The traffic specification that you specify must be greater than or equal to the current traffic specification of the instance.
  • You must specify at least one of the IoMax and IoMaxSpec parameters. If you specify IoMax and IoMaxSpec at the same time, the IoMaxSpec value prevails. 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 response code. The HTTP 200 code indicates that the request was successful.

Message String operation success.

The response message.

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

The ID of the request.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample requests

http(s)://alikafka.cn-hangzhou.aliyuncs.com/?Action=UpgradePostPayOrder
&InstanceId=alikafka_post-cn-m7r20thf****
&TopicQuota=80
&DiskSize=1500
&RegionId=cn-hangzhou
&IoMax=90
&SpecType=professional
&EipModel=true
&EipMax=300
&IoMaxSpec=alikafka.hw.6xlarge
&<Common request parameters>

Sample success responses

XML format

<UpgradePostPayOrderResponse>
      <Message>operation success. </Message>
      <RequestId>ABA4A7FD-E10F-45C7-9774-A5236015A***</RequestId>
      <Success>true</Success>
      <Code>200</Code>
</UpgradePostPayOrderResponse>

JSON format

{
    "RequestId":"ABA4A7FD-E10F-45C7-9774-A5236015A***",
    "Message":"operation success.",
    "Code":"200",
    "Success":"true"
}

Error codes

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