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

变更Lindorm实例的计费方式。

接口说明

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

请确保在使用该接口前,已充分了解 Lindorm 产品的收费方式和价格。只发布国内站

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

InstanceId

string

实例 ID

ld-bp1z3506imz2f****

Duration

integer

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

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

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

1

PricingCycle

string

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

  • Month:月。

  • Year:年。

Month

PayType

string

实例的付费类型,返回:

  • PREPAY:包年包月。

  • POSTPAY:按量付费。

POSTPAY

返回参数

名称

类型

描述

示例值

object

返回结果

RequestId

string

请求 ID

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

OrderId

integer

订单 ID

211662251220224

InstanceId

string

实例 ID

ld-bp1z3506imz2f****

AccessDeniedDetail

string

访问被拒绝的详细原因。

{"AuthAction":"xxx","AuthPrincipalDisplayName":"222","AuthPrincipalOwnerId":"111","AuthPrincipalType":"SubUser",,"NoPermissionType":"ImplicitDeny","PolicyType":"AccountLevelIdentityBasedPolicy","EncodedDiagnosticMessage":"xxxxxx"}

示例

正常返回示例

JSON格式

{
  "RequestId": "587BCA54-50DA-4885-ADE9-80A848339151",
  "OrderId": 211662251220224,
  "InstanceId": "ld-bp1z3506imz2f****",
  "AccessDeniedDetail": "{\"AuthAction\":\"xxx\",\"AuthPrincipalDisplayName\":\"222\",\"AuthPrincipalOwnerId\":\"111\",\"AuthPrincipalType\":\"SubUser\",,\"NoPermissionType\":\"ImplicitDeny\",\"PolicyType\":\"AccountLevelIdentityBasedPolicy\",\"EncodedDiagnosticMessage\":\"xxxxxx\"}"
}

错误码

HTTP status code

错误码

错误信息

描述

400 Instance.IsDeleted The instance is deleted. 操作失败,该实例已删除。
400 Instance.IsNotAvailable The instance is unavailable. 操作失败,实例不可用。
403 API.Forbidden The API operation is forbidden in this environment. 操作失败,当前环境中该API无法使用。
403 Lindorm.Errorcode.OperationDenied You are not authorized to operate on the specified resource. 操作失败,请先申请指定资源的操作权限。
403 Lindorm.Errorcode.ServiceLinkedRoleNoPermission No permission to create service linked role. 操作失败,请先申请创建服务关联角色的权限。
404 Lindorm.Errorcode.InstanceNotFound The instance is not found. 操作失败,该实例不存在。

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

变更历史

更多信息,参考变更详情