赛尔校园公共服务平台 Logo
平台使用
阿里云
百度云
移动云
智算服务
教育生态
登录 →
赛尔校园公共服务平台 Logo
平台使用 阿里云 百度云 移动云 智算服务 教育生态
登录
  1. 首页
  2. 阿里云
  3. 云服务器 ECS
  4. 开发参考
  5. API参考(ECS)
  6. API目录
  7. 资源保障
  8. ModifyCapacityReservation - 修改一个容量预定服务的部分信息

ModifyCapacityReservation - 修改一个容量预定服务的部分信息

  • 资源保障
  • 发布于 2025-04-01
  • 0 次阅读
文档编辑
文档编辑

调用ModifyCapacityReservation修改一个容量预定服务的部分信息,包括容量预定服务的名称、描述信息、失效方式以及预留的实例总数量。

调试

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

调试

授权信息

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

请求参数

名称类型必填描述示例值
RegionIdstring是

容量预定服务所属地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。

cn-hangzhou
PrivatePoolOptions.Idstring是

容量预定服务 ID。

crp-bp67acfmxazb4****
PrivatePoolOptions.Namestring否

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

eapTestName
Descriptionstring否

容量预定服务的描述信息。长度为 2~256 个英文或中文字符,不能以http://和https://开头。

This is description.
StartTimestring否

容量预定服务的生效方式。目前仅支持设置为立即生效,且参数无需传值。

说明 该参数不传值即表示设置为立即生效。
Now
EndTimestring否

容量预定服务的失效时间,仅EndTimeType=Limited时该参数生效。时间格式以 ISO8601 为标准,并需要使用 UTC +0 时间,格式为yyyy-MM-ddTHH:mm:ssZ。更多信息,请参见 ISO8601 。

2021-10-30T06:32:00Z
EndTimeTypestring否

容量预定服务的失效方式。取值范围:

  • Limited:指定时间释放。必须同时指定EndTime参数。
  • Unlimited:手动释放。不限制时间。
Unlimited
Platformstring否

实例使用的镜像的操作系统类型。取值范围:

  • Windows:Windows Server 类型的操作系统。
  • Linux:Linux 及类 Unix 类型的操作系统。
说明 该参数暂未开放使用。
Linux
InstanceAmountinteger否

容量预定服务需要预留的实例总数量。取值范围:已使用的实例数量~1000

说明 扩充实例总数量时,可能因库存不足导致扩充失败。
100

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

8455DD10-84F8-43C9-8365-5F448EB169B6

示例

正常返回示例

JSON格式

{
  "RequestId": "8455DD10-84F8-43C9-8365-5F448EB169B6"
}

错误码

HTTP status code错误码错误信息描述
400InvalidInstanceAmount.ValueNotSupportedThe specified parameter InstanceAmount is not valid.指定的参数InstanceAmount不符合要求。
400InvalidDescription.ValueNotSupportedThe specified Description is invalid.-
400InvalidEndTime.ValueNotSupportedThe specified EndTime is invalid.-
400InvalidStartTime.ValueNotSupportedThe specified StartTime is invalid.-
401InvalidUser.UnauthorizedThe user is not authorized.您当前使用的账号无权限。
403IncorrectPrivatePoolStatusThe current status of the private pool does not support this operation.参数中指定的私有池状态不支持当前操作
403OperationDenied.NoStockThe requested resource is sold out in the specified zone; try other types of resources or other regions and zones.库存不足。
403InvalidPrivatePoolOptionsName.ValueNotSupportedThe specified PrivatePoolOptions.Name is invalid.-
403InvalidPlatform.ValueNotSupportedThe specified Platform is invalid.-
403OperationDenied.PlatformNotSupportedThe specified private pool does not support this operation.-
403OperationDenied.EndTimeTypeNotSupportedThe specified private pool does not support this operation.-
403OperationDenied.StartTimeNotSupportedThe specified private pool does not support this operation.-
403OperationDenied.InstanceAmountNotSupportedThe specified private pool does not support this operation.-
403InvalidInstanceAmount.ValueNotSupportedThe specified InstanceAmount is invalid.-
403InvalidPrivatePoolOptions.IdThe specified private pool does not support this operation.-
403InvalidPrivatePoolOptions.IdThe specified PrivatePoolOptions.Id is invalid.指定的私有池无效
403OperationDenied.InstanceTypeNotAuthorizedThe specified InstanceType is not available or not authorized.指定的实例规格不可用或未被授权。
404InvalidPrivatePoolId.NotFoundThe specified private pool does not exist.指定的私有池不存在
500InternalErrorThe request processing has failed due to some unknown error.内部错误,请重试。

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

变更历史

变更时间变更内容概要操作
2025-02-19OpenAPI 描述信息更新、OpenAPI 错误码发生变更查看变更详情
2023-12-06OpenAPI 错误码发生变更查看变更详情
相关文章

CreateCapacityReservation - 创建容量预定服务 2025-04-01 11:58

指定需要预留的实例规格、总数量,生效方式和可用区等,创建容量预定服务。

CreateElasticityAssurance - 创建弹性保障服务 2025-04-01 11:58

通过指定弹性保障服务所属地域下的可用区、实例规格、购买时长、是否自动续费等参数创建弹性保障服务。

DescribeCapacityReservationInstances - 查询容量预定服务已匹配的实例列表 2025-04-01 11:58

查询容量预定服务已匹配的实例列表。

DescribeCapacityReservations - 查询容量预定服务的信息 2025-04-01 11:58

查询一个或多个容量预定服务的详细信息,例如服务的状态、服务的生效与失效时间、私有池的模式和已使用的实例的数量等。

DescribeElasticityAssuranceAutoRenewAttribute - 查询弹性保障服务自动续费 2025-04-01 11:58

查询一个或多个弹性保障服务的自动续费属性。

DescribeElasticityAssuranceInstances - 查询弹性保障服务已匹配实例列表 2025-04-01 11:58

调用DescribeElasticityAssuranceInstances查询弹性保障服务已匹配的运行状态的实例列表。

目录
Copyright © 2025 your company All Rights Reserved. Powered by 赛尔网络.
京ICP备14022346号-15
gongan beian 京公网安备11010802041014号