ModifyDedicatedHostsChargeType_云服务器 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:ModifyDedicatedHostsChargeType
Update
全部资源
*

请求参数

字段名称字段详情
DedicatedHostIdsstring

专有宿主机 ID。取值可以由多台专有宿主机 ID 组成一个 JSON 数组,最多支持 20 个 ID,ID 之间用半角逗号(,)隔开。

示例值:["dh-bp181e5064b5sotr****","dh-bp18064b5sotrr9c****"]参考取值来源:
    DescribeDedicatedHosts
    AllocateDedicatedHosts
RegionIdstring

专有宿主机所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。

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

包年包月续费时长。取值范围:展开详情

示例值:1
PeriodUnitstring

续费时长的时间单位,即参数Period的单位。取值范围:展开详情

示例值:Month
DryRunboolean

是否只预检此次请求。取值范围:展开详情

示例值:false
AutoPayboolean

是否自动支付。取值范围:展开详情

示例值:false
DedicatedHostChargeTypestring

专有宿主机需要修改的目标计费方式。取值范围:展开详情

示例值:PrePaid
ClientTokenstring

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

示例值:e4567-e89b-12d3-a456-426655440000
DetailFeeboolean

包年包月转换为按量付费时,是否返回订单费用详情。展开详情

示例值:false

返回参数

字段名称字段详情
OrderIdstring

生成的订单 ID。

示例值:20413515388****
RequestIdstring

请求 ID。

示例值:B61C08E5-403A-46A2-96C1-F7B1216DB10C
FeeOfInstancesobject

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidParameter.InstanceIds
The specified InstanceIds are invalid.诊断
400
InvalidParameter
%s诊断
400
InvalidStatus.ValueNotSupported
%s诊断
400
InvalidInstanceChargeType.ValueNotSupported
%s诊断
400
InvalidSpotStrategy
The specified spotStrategy is not valid.诊断
400
ExpiredInstance
The specified instance has expired.诊断
400
InstancesIdQuotaExceed
The maximum number of Instances is exceeded.诊断
400
InvalidClientToken.ValueNotSupported
The ClientToken provided is invalid.诊断
400
InvalidInstance.UnpaidOrder
The specified instance has unpaid order.诊断
400
ReleaseTimeHaveBeenSet
The specified instance has been set released time.诊断
400
Throttling
Request was denied due to request throttling, please try again after 5 minutes.诊断
400
InvalidPeriod.UnitMismatch
The specified Period must be correlated with the PeriodUnit.诊断
400
InvalidImageType.NotSupported
%s诊断
400
InvalidPeriod.ExceededDedicatedHost
Instance expired date can't exceed dedicated host expired date.诊断
400
InvalidSystemDiskCategory.ValueNotSupported
%s诊断
400
InvalidAccountStatus.PayAmountLimitExceeded
Your account is being restricted, due to no default payment method is set or you has not being authorized.诊断
400
QuotaExceed.AfterpayInstance
The maximum number of Pay-As-You-Go instances is exceeded.诊断
400
QuotaExceed.RufundVcpu
The maximum number of refunded vcpu is exceeded: %s .诊断
403
InvalidInstanceType.ValueNotSupported
The specified InstanceType does not exist or beyond the permitted range.诊断
403
InstanceType.Offline
%s诊断
403
InvalidAccountStatus.NotEnoughBalance
Your account does not have enough balance.诊断
403
Account.Arrearage
Your account has an outstanding payment.诊断
403
InvalidParameter.NotMatch
%s诊断
403
InvalidAction
%s诊断
403
QuotaExceed.PostPaidDisk
Living postPaid disks quota exceeded.诊断
403
ImageNotSupportInstanceType
The specified instanceType is not supported by instance with marketplace image.诊断
403
InvalidInstanceType.PhasedOut
This instanceType is no longer offered.诊断
403
InvalidPeriod.ExceededDedicatedHost
Instance expired date can't exceed dedicated host expired date.诊断
403
RealNameAuthenticationError
Your account has not passed the real-name authentication yet.诊断
403
InvalidOperation.NotSupport
Instance on dedicated host not support modify charge type.诊断
404
InvalidInstanceId.NotFound
The specified instanceId does not exist.诊断
500
InternalError
The request processing has failed due to some unknown error, exception or failure.诊断

变更历史

变更时间变更内容概要操作
2023-11-24
变更错误码400

相关示例