预付费实例需要先付费才能使用资源,主要适用于长期稳定的业务运行场景。本文介绍调用CreatePrePayOrder创建预付费实例。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
alikafka:CreatePrePayOrder | Write |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 实例的地域 ID。 | cn-hangzhou |
DiskType | string | 是 | 磁盘类型。取值:
| 0 |
DiskSize | integer | 是 | 磁盘容量。单位:GB。 取值范围请参见计费说明。 | 500 |
PartitionNum | integer | 否 | 分区数(推荐)。
| 50 |
TopicQuota | integer | 否 | Topic 的数量(不推荐)。
| 50 |
DeployType | integer | 是 | 部署类型。取值:
| 5 |
EipMax | integer | 否 | 公网流量。
| 0 |
SpecType | string | 否 | normal | |
IoMaxSpec | string | 否 | 流量规格(推荐)。
| alikafka.hw.2xlarge |
IoMax | integer | 否 | 流量峰值(不推荐)。
| 20 |
ResourceGroupId | string | 否 | 资源组 ID。 不设置时落在默认资源组里,可在资源组控制台查看资源组 ID。 | rg-ac***********7q |
Tag | object [] | 否 | 标签列表。 | |
Key | string | 是 | 资源的标签键。
| FinanceDept |
Value | string | 否 | 资源的标签值。
| FinanceJoshua |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 200,
"Message": "operation success.",
"RequestId": "06084011-E093-46F3-A51F-4B19A8AD****",
"Success": true,
"OrderId": "20497346575****"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | BIZ.LIMIT.PUBNETWORK | EipMax is invalid. | 公网流量参数无效。 |
400 | BIZ.LIMIT.QUOTA.DOWN | Invalid.%s | 降配失败 |
400 | BIZ.LIMIT.QUOTA.DOWN.1 | Invalid.%s | 降配失败 |
400 | BIZ.LIMIT.QUOTA.DOWN.2 | Invalid.%s | 降配失败 |
400 | Invalid.Partition.%s | Invalid.%s | 分区数和Topic不等价 |
400 | BIZ_FIELD_CHECK_INVALID | %s. Please check and try again later. | 参数错误。 |
400 | Order.Insufficient.balance | The available gold is not enough, please recharge and try again. | 可用金不够, 请充值后重试。 |
400 | Order.Create.Error | Order creation failed, please submit a work order. | 创建订单失败,请提交工单。 |
400 | InvalidParameter | The %s parameter is invalid. | 参数%s校验不通过 |
400 | InvalidParameter.DataAlreadyExist | The data already exists for the %s parameter. | %s参数对应的数据已存在 |
400 | InvalidParameter.Format | The %s format is invalid. | 参数%s格式校验不通过 |
400 | InvalidParameter.NotSupport | The %s parameter is not supported. | 参数%s当前不支持 |
400 | InvalidParameter.Range | The value of the %s parameter is not within the specified range. | 参数%s范围校验不通过 |
400 | InvalidParameter.Size | The size of the %s parameter is not within the specified range. | 参数%s长度校验不通过 |
400 | InvalidParameter.VersionNotSupport | Current version does not support the %s parameter. | 当前版本不支持参数%s |
400 | Instance.ExceedMaxLimit | The number of instances of a single account exceeds the limit. If you need to increase the limit, please submit a work order. | 单账号实例数量超限,如需要提升限额,请提交工单。 |
400 | Deploy.ResourceNotEnough | Insufficient resources, please submit work order. | 资源不足,请提交工单。 |
404 | InvalidParameter.DataNotFound | No data found for the %s parameter. | 参数%s查找不到数据 |
500 | RemoteCallError | An internal service invocation error occurred. Please try again later. | 远程调用错误 |
500 | InternalUnknownCodeError | Internal error, please try again, if still failed, please submit a work order to contact us. | 内部错误,请重试,若是仍失败请提交工单联系我们。 |
500 | InternalUnknownCodeError | Internal error, please try again. If it still fails, please submit a work order and contact us. | 内部错误,请重试,若仍然失败请提交工单联系我们。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2024-04-16 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2024-04-11 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2024-03-20 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2024-03-20 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2024-03-01 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2024-02-27 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2022-10-28 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2022-08-31 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||
|