ModifyElasticityAssurance_云服务器 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)。

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
RegionIdstring

弹性保障服务所属地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
PrivatePoolOptions.Idstring

弹性保障服务 ID。

示例值:eap-bp67acfmxazb4****
PrivatePoolOptions.Namestring

弹性保障服务的名称。长度为 2~128 个英文或中文字符。必须以大小写字母或中文开头,不能以 http://和 https://开头。可以包含数字、半角冒号(:)、下划线(_)或者连字符(-)。

示例值:eapTestName
Descriptionstring

弹性保障服务的描述信息。长度为 2~256 个英文或中文字符,不能以http://https://开头。

示例值:This is description.
InstanceAmountinteger<int32>

弹性保障服务需要预留的实例总数量。取值范围:已使用的实例数量~1000。该参数不能与其他参数同时修改。

示例值:10
ClientTokenstring

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性

示例值:123e4567-e89b-12d3-a456-426655440000
RecurrenceRulesarray<object>

弹性保障-分时保障重复规则列表。展开详情

子级条数 <= 20

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:8455DD10-84F8-43C9-8365-5F448EB169B6

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidRecurrenceRules.CountLimitExceeded
The count of RecurrenceRules exceeds the limit.诊断
400
InvalidRecurrenceRules.Unsupported
The specified parameter RecurrenceRules does not support for this resource package.诊断
400
InvalidRecurrenceRulesStartHourEndHour.TooShort
The recurrence hour between RecurrenceRules.StartHour and RecurrenceRules.EndHour is too short.诊断
400
InvalidParameter.RecurrenceRulesStartHourEndHour
The specified parameter RecurrenceRules.StartHour or RecurrenceRules.EndHour is invalid.诊断
400
InvalidParameter.RecurrenceRulesRecurrenceValueMonthly
The specified parameter RecurrenceRules.RecurrenceValue for Monthly is invalid.诊断
400
InvalidParameter.RecurrenceRulesRecurrenceValueWeekly
The specified parameter RecurrenceRules.RecurrenceValue for Weekly is invalid.诊断
400
InvalidParameter.RecurrenceRulesRecurrenceValueDaily
The specified parameter RecurrenceRules.RecurrenceValue for Daily is invalid.诊断
400
InvalidParameter.RecurrenceRulesRecurrenceType
The specified parameter RecurrenceRules.RecurrenceType is invalid.诊断
400
InvalidInstanceAmount.ValueNotSupported
The specified parameter InstanceAmount is not valid.诊断
400
InvalidDescription.ValueNotSupported
The specified Description is invalid.诊断
400
InvalidEndTime.ValueNotSupported
The specified EndTime is invalid.诊断
400
InvalidStartTime.ValueNotSupported
The specified StartTime is invalid.诊断
400
InvalidParameter.PrivatePoolOptions.Name
The parameter PrivatePoolOptions.Name is invalid.诊断
400
InvalidParameter.ClientToken
The parameter ClientToken is invalid.诊断
400
InvalidParameter.Description
The parameter Description is invalid.诊断
401
InvalidUser.Unauthorized
The user is not authorized.诊断
403
InvalidOperation.ModifyTotalActiveTimeUnsupported
Not support to modify the total active time of resource package.诊断
403
IncorrectPrivatePoolStatus
The current status of the private pool does not support this operation.诊断
403
OperationDenied.NoStock
The requested resource is sold out in the specified zone; try other types of resources or other regions and zones.诊断
403
InvalidPrivatePoolOptionsName.ValueNotSupported
The specified PrivatePoolOptions.Name is invalid.诊断
403
InvalidPlatform.ValueNotSupported
The specified Platform is invalid.诊断
403
OperationDenied.PlatformNotSupported
The specified private pool does not support this operation.诊断
403
OperationDenied.EndTimeTypeNotSupported
The specified private pool does not support this operation.诊断
403
OperationDenied.StartTimeNotSupported
The specified private pool does not support this operation.诊断
403
OperationDenied.InstanceAmountNotSupported
The specified private pool does not support this operation.诊断
403
InvalidInstanceAmount.ValueNotSupported
The specified InstanceAmount is invalid.诊断
403
InvalidPrivatePoolOptions.Id
The specified private pool does not support this operation.诊断
403
InvalidInstanceAmount.LessThanUsedAmount
The specified parameter InstanceAmount is less than UsedAmount.诊断
403
InvalidOperation.InstanceAmountAndOtherAttributesUnsupported
Modify InstanceAmount and other attributes simultaneously is not supported.诊断
404
InvalidPrivatePoolId.NotFound
The specified private pool does not exist.诊断
500
InternalError
The request processing has failed due to some unknown error.诊断

变更历史

变更时间变更内容概要操作
2025-02-19
变更错误码400
变更错误码403
新增错误码500
新增请求参数RecurrenceRules
2024-09-27
变更错误码400
变更错误码403
新增请求参数InstanceAmount
2023-12-06
变更错误码401

相关示例