基本信息

Action

ModifyNextChargeMode

Path

/iaas

Method

GET

请求参数

此接口除公共参数外,还包含以下参数。关于公共参数的更多信息,请参见前文内容

参数名 类型 是否必须 描述

auto_renew

Integer

否,仅弹性转包月时需要

console

String

Console ID

immediate

Integer

是否立即转,0:当前周期到期后转,1:立即转

is_confirm

Integer

是否确认要转换

months

Integer

转成几个月周期的,

next_charge_mode

String

目标计费周期,包月转弹性为elastic,

next_price_info

String

refund_policy

String

private

resource

String

资源 ID

root_user

String

主账号 ID

user

String

用户 ID

返回数据

此接口除公共返回参数外,还包含以下返回参数。关于公共返回参数的更多信息,请参见前文内容

参数名 类型 是否必须 描述

failed

Array

失败未处理的资源 ID

success

Array

成功处理的资源 ID

请求示例

{
  "action": "ModifyNextChargeMode",
  "auto_renew": 0,
  "console": "qingcloud",
  "immediate": 1,
  "months": 1,
  "next_charge_mode": "monthly",
  "resource": "i-ob7ft6fe",
  "root_user": "usr-w9XhbDCL",
  "user": "usr-w9XhbDCL",
  "zone": "sh1a"
}

返回示例

{
  "action": "ModifyNextChargeModeResponse",
  "failed": [],
  "ret_code": 0,
  "success": [
    "i-ob7ft6fe"
  ]
}