接口说明
本接口用于修改指定专属宿主机集群超分比。修改超分比,不会影响集群内现有的云主机业务,但是需要注意修改后的vCPU数量如果已经小于当前使用的量,将无法创建新的云主机。
URL
PUT https://ecloud.10086.cn/api/openapi-ddh/customer/v3/dedicatedHost/cloudApi/v2/clusters/{dedicatedHostClusterId}/updateAllocationRatio
请求参数
Path
|
参数名称
|
类型
|
必填
|
描述
|
|
dedicatedHostClusterId
|
string
|
是
|
专属宿主机集群ID |
Body
|
参数名称
|
类型
|
必填
|
描述
|
|
dedicatedHostClusterAllocationRatioReq
|
专属宿主机集群修改超分比
|
是
|
dedicatedHostClusterAllocationRatioReq |
|
allocationRatio
|
integer(int32)
|
是
|
该集群专属宿主机vCPU超分比 |
|
dedicatedHostClusterId
|
string
|
是
|
专属云专属宿主机集群ID |
|
region
|
string
|
是
|
可用区,可通过查询属地的可用区信息获取。 |
请求示例
PUT https://ecloud.10086.cn/api/openapi-ddh/customer/v3/dedicatedHost/cloudApi/v2/clusters/{dedicatedHostClusterId}/updateAllocationRatio
{
"allocationRatio":1,
"dedicatedHostClusterId":"string",
"region":"string"
}
返回参数
返回码:200
OK
|
参数名称
|
类型
|
描述
|
|
body
|
boolean
|
请求成功时返回的数据 |
|
errorCode
|
string
|
统一错误码 |
|
errorMessage
|
string
|
页面国际化错误提示 |
|
errorParams
|
<string> array
|
统一错误码的自定义参数 |
|
requestId
|
string
|
每个请求的序列号 |
|
state
|
enum(OK,ERROR,EXCEPTION,ALARM,FORBIDDEN)
|
返回状态码,返回正常:OK,返回错误:ERROR,返回异常:EXCEPTION,需要告警实现的:ALARM,禁止访问:FORBIDDEN |
返回示例
返回码:200
OK
{
"body":false,
"errorCode":"string",
"errorMessage":"string",
"errorParams":[
"string"
],
"requestId":"string",
"state":"string"
}