RenewElasticityAssurances_云服务器 ECS_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

请求速率为1000/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
ecs:RenewElasticityAssurances
Create
ElasticityAssurance
acs:ecs:{#regionId}:{#accountId}:elasticityassurance/{#ElasticityAssuranceId}

请求参数

字段名称字段详情
RegionIdstring

弹性保障服务所属地域 ID。展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
Periodinteger<int32>

续费时长。时长单位由PeriodUnit参数确定。取值范围:展开详情

示例值:1
PeriodUnitstring

续费时长单位。取值范围:展开详情

示例值:Year
ClientTokenstring

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。展开详情

示例值:123e4567-e89b-12d3-a456-426655440000
AutoPayboolean

是否自动支付。可能值:展开详情

示例值:true
PrivatePoolOptions.Idarray<string>

弹性保障服务 ID 列表。展开详情

子级条数 <= 20子级条数 >= 1
AutoRenewboolean

是否自动续费。取值范围:展开详情

示例值:true
AutoRenewPeriodinteger<int32>

自动续费的时长,单位:月。取值范围:1、2、3、6、12、24、36。展开详情

示例值:1

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
OrderIdstring

续费订单 ID。

示例值:182372800****
PrivatePoolOptionsIdSetobject

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidPeriodUnit.ValueNotSupported
The specified parameter PeriodUnit is not valid.诊断
400
InvalidChargeType.ValueNotSupported
ChargeType is not valid.诊断
400
MissingParameter.PrivatePoolOptions.Id
The specified parameter PrivatePoolOptions.Id does not exist.诊断
400
InvalidParameter.PeriodUnit
The specified PeriodUnit is invalid.诊断
400
InvalidParameter.Period
The specified parameter Period or PeriodUnit is invalid.诊断
400
InvalidParameter.PrivatePoolOptionsId
The specified parameter PrivatePoolOptions.Id is invalid.诊断
400
InvalidAutoRenewPeriod.ValueNotSupported
The specified autoRenewPeriod is invalid.诊断
403
InvalidParameter.ResourceOwnerAccount
ResourceOwnerAccount is Invalid.诊断
403
Account.Arrearage
Your account has been in arrears.诊断
403
ChargeTypeViolation
The operation is not permitted due to charge type of the instance.诊断
403
InvalidOperation.PackageTypeUnsupported
Not support to renew this type of resource package.诊断
500
InternalError
The request processing has failed due to some unknown error.诊断
500
IncorrectPrivatePoolStatus
The current status of the private pool does not support this operation.诊断
500
InvalidPrivatePoolId.NotFound
The specified private pool does not exist.诊断

变更历史

变更时间变更内容概要操作
2025-03-17
变更请求参数PeriodUnit
2025-02-19
变更错误码403
2025-02-13
变更错误码400
新增请求参数AutoRenew
新增请求参数AutoRenewPeriod

相关示例