All Products
Search
Document Center

ApsaraMQ for Kafka:CreatePrePayOrder

Last Updated:Mar 15, 2024

Creates a subscription ApsaraMQ for Kafka instance. You can use subscription instances only after you pay for them. Subscription instances are suitable for long-term and stable business scenarios.

Operation description

  • Before you call this operation, make sure that you understand the billing methods and pricing of subscription ApsaraMQ for Kafka instances. For more information, see Billing .
  • If you create an ApsaraMQ for Kafka instance by calling this operation, the subscription duration is one month and the auto-renewal feature is enabled by default. The auto-renewal cycle is also one month. If you want to change the auto-renewal cycle or disable the auto-renewal feature, you can go to the Renewal page in the Alibaba Cloud Management Console.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alikafka:CreatePrePayOrderWrite
  • Instance
    acs:alikafka:{#regionId}:{#accountId}:instance/*
  • alikafka:SpecType
  • alikafka:DeployModule
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance.

cn-hangzhou
DiskTypestringYes

The disk type. Valid values:

  • 0: ultra disk
  • 1: standard SSD
0
DiskSizeintegerYes

The disk size. Unit: GB.

For more information about the valid values, see Billing .

500
PartitionNumintegerNo

The number of partitions. We recommend that you configure this parameter.

  • You must specify at least one of the PartitionNum and TopicQuota parameters. We recommend that you configure only the PartitionNum parameter.
  • If you specify both parameters, the topic-based sales model is used to check whether the PartitionNum value and the TopicQuota value are the same. If they are not the same, a failure response is returned. If they are the same, the order is placed based on the PartitionNum value.
  • For more information about the valid values, see Billing .
50
TopicQuotaintegerNo

The number of topics. We recommend that you do not configure this parameter.

  • You must specify at least one of the PartitionNum and TopicQuota parameters. We recommend that you configure only the PartitionNum parameter.
  • If you specify both parameters, the topic-based sales model is used to check whether the PartitionNum value and the TopicQuota value are the same. If they are not the same, a failure response is returned. If they are the same, the order is placed based on the PartitionNum value.
  • The default value of the TopicQuota parameter varies based on the value of the IoMaxSpec parameter. If the number of topics that you consume exceeds the default value, you are charged additional fees.
  • For more information about the valid values, see Billing .
50
DeployTypeintegerYes

The deployment mode of the instance. Valid values:

  • 4: deploys the instance that allows access from the Internet and a VPC.
  • 5: deploys the instance that allows access only from a VPC.
5
EipMaxintegerNo

The Internet traffic for the instance.

  • This parameter is required if the DeployType parameter is set to 4.
  • For more information about the valid values, see Pay-as-you-go.
0
SpecTypestringNo

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, see Billing .

normal
IoMaxSpecstringNo

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

  • You must configure at least one of the IoMax and IoMaxSpec parameters. If both parameters are configured, the value of the IoMaxSpec parameter takes effect. We recommend that you configure only the IoMaxSpec parameter.
  • For more information about the valid values, see Billing .
alikafka.hw.2xlarge
IoMaxintegerNo

The maximum traffic for the instance. We recommend that you do not configure this parameter.

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

The ID of the resource group.

If this parameter is left empty, the default resource group is used. You can view the resource group ID on the Resource Group page in the Resource Management console.

rg-ac***********7q
Tagobject []No

The tags.

KeystringYes

The key of tag N.

  • Valid values of N: 1 to 20.
  • If this parameter is left empty, the keys of all tags are matched.
  • The tag key can be up to 128 characters in length and cannot start with acs: or aliyun or contain http:// or https://.
FinanceDept
ValuestringNo

The value of tag N.

  • Valid values of N: 1 to 20.
  • This parameter can be left empty.
  • The tag value can be 1 to 128 characters in length and cannot start with acs: or aliyun or contain http:// or https://.
FinanceJoshua

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

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

200
Messagestring

The message returned.

operation success.
RequestIdstring

The ID of the request.

06084011-E093-46F3-A51F-4B19A8AD****
Successboolean

Indicates whether the request is successful.

true
OrderIdstring

The ID of the order.

20497346575****

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError message
400BIZ.LIMIT.PUBNETWORKEipMax is invalid.
400BIZ.LIMIT.QUOTA.DOWNInvalid.%s
400BIZ.LIMIT.QUOTA.DOWN.1Invalid.%s
400BIZ.LIMIT.QUOTA.DOWN.2Invalid.%s
400Invalid.Partition.%sInvalid.%s
400BIZ_FIELD_CHECK_INVALID%s. Please check and try again later.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-01The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
2024-02-27The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ConfluentConfig
2022-10-28The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Tag
2022-08-31The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400