接口名
RenewInstance
描述
对相关实例进行续费。调用接口会创建一个续费订单,并自动支付,如因为某些原因支付失败,会作废订单。RenewInstance 不支持 ECS & RDS 产品类实例的续费,请查找对应产品的专用续费API执行续费。
请求参数
名称 | 类型 | 是否必填 | 说明 |
---|---|---|---|
OwnerId | Long | 否 | 资源所有者的阿里云账号ID,通常为16位的数字。BID场景/分销场景OwnerID必须指定 |
ProductCode | String | 是 | 产品代码 |
ProductType | String | 否 | 产品类型 |
InstanceId | String | 是 | 待续费的实例id |
RenewPeriod | String | 是 | 预付费续费时长,单位是月。 取值范围为:•1 – 9,12,24,36 |
ClientToken | String | 是 | 用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符。 |
返回参数
名称 | 类型 | 说明 |
---|---|---|
Success | Boolean | 是否成功 |
Code | String | 错误码 |
Message | String | 调用详情 |
RequestId | String | 本次调用的RequestId |
Data | RenewInstanceResponse | 参见数据字典RenewInstanceResponse |
参见数据字典RenewInstanceResponse详情
名称 | 类型 | 说明 |
---|---|---|
OrderId | Long | 创建成功的订单id |
错误码
错误码 | 错误信息 | HTTP状态码 | 语义 |
---|---|---|---|
NotApplicable | This API is not applicable for caller. | 400 | 该用户没有访问API的权限。 |
MissingParameter | The specified parameter xx is mandatory for this request. | 400 | 指定的参数未设置。 |
InvalidParameter | The specified moduleCode is not valid. | 400 | 指定的参数不合法。 |
InvalidModuleCode | The specified moduleCode is not valid. | 400 | 模块标识不合法。 |
InvalidConfigCode | The specified configCode is not valid. | 400 | 模块属性标识不合法。 |
InvalidOwner | The specified owner doesn’t belong to caller. | 400 | 指定的拥有者从属关系不属于调用者。 |
InvalidCaller | The specified caller doesn’t exists. | 400 | 调用者不合法。 |
InternalError | The request processing has failed due to some unknown error, exception or failure. | 400 | 内部未知错误。 |
请求示例
返回示例
原创文章,作者:网友投稿,如若转载,请注明出处:https://www.cloudads.cn/archives/33689.html