文档

ModifyInstancePayType - 变更Lindorm实例的计费方式

更新时间:

变更Lindorm实例的计费方式。

接口说明

调整实例的付费类型,支持包年包月与按量付费类型之间进行切换。

请确保在使用该接口前,已充分了解 Lindorm 产品的收费方式和价格

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
InstanceIdstring

实例 ID

ld-bp1z3506imz2f****
Durationinteger

购买时长,转成包年包月类型时需要传入。

  • PricingCycle 为 Month 时,取值范围为[1,9]。

  • PricingCycle 为 Year 时,取值范围为[1,3]。

1
PricingCyclestring

转成包年包月类型时的购买时长单位。

  • Month:月。

  • Year:年。

Month
PayTypestring

实例的付费类型,返回:

  • PREPAY:包年包月。
  • POSTPAY:按量付费。
POSTPAY

返回参数

名称类型描述示例值
object

返回结果

RequestIdstring

请求 ID

587BCA54-50DA-4885-ADE9-80A848339151
OrderIdlong

订单 ID

211662251220224
InstanceIdstring

实例 ID

ld-bp1z3506imz2f****

示例

正常返回示例

JSON格式

{
  "RequestId": "587BCA54-50DA-4885-ADE9-80A848339151",
  "OrderId": 211662251220224,
  "InstanceId": "ld-bp1z3506imz2f****"
}

错误码

HTTP status code错误码错误信息描述
400Instance.IsDeletedThe instance is deleted.操作失败,该实例已删除。
400Instance.IsNotAvailableThe instance is unavailable.操作失败,实例不可用。
403API.ForbiddenThe API operation is forbidden in this environment.操作失败,当前环境中该API无法使用。
403Lindorm.Errorcode.OperationDeniedYou are not authorized to operate on the specified resource.操作失败,请先申请指定资源的操作权限。
403Lindorm.Errorcode.ServiceLinkedRoleNoPermissionNo permission to create service linked role.操作失败,请先申请创建服务关联角色的权限。
404Lindorm.Errorcode.InstanceNotFoundThe instance is not found.操作失败,该实例不存在。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈