全部产品
Search
文档中心

专有宿主机:ModifyDedicatedHostClusterAttribute

更新时间:Sep 11, 2023

调用ModifyDedicatedHostClusterAttribute修改一台专有宿主机集群的部分信息,包括专有宿主机集群的名称、描述信息、属性等。

请求参数

名称

类型

是否必选

示例值

描述

Action String ModifyDedicatedHostClusterAttribute

系统规定参数。取值:ModifyDedicatedHostClusterAttribute

RegionId String cn-hangzhou

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

DedicatedHostClusterId String dc-bp12wlf6am0vz9v2****

专有宿主机集群ID。

DedicatedHostClusterName String newClusterName

专有宿主机集群的名称。长度为2~128个英文或中文字符,必须以大小写字母或中文开头,可包含数字、英文句号(.)、下划线(_)或连字符(-)。不能包含http://https://

Description String newClusterDescription

专有宿主机集群的描述。长度为2~256个字符。不能以http://https://开头。

返回数据

名称

类型

示例值

描述

RequestId String 11B55F58-D3A4-4A9B-9596-342420D02FF8

请求ID。

示例

请求示例

https://ecs.aliyuncs.com/?Action=ModifyDedicatedHostClusterAttribute
&RegionId=cn-hangzhou
&DedicatedHostClusterId=dc-bp12wlf6am0vz9v2****
&DedicatedHostClusterName=newClusterName
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyDedicatedHostClusterAttributeResponse>
    <RequestId>11B55F58-D3A4-4A9B-9596-342420D02FF8</RequestId>
</ModifyDedicatedHostClusterAttributeResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "11B55F58-D3A4-4A9B-9596-342420D02FF8"
}

错误码

HttpCode

错误码

错误信息

描述

400 InvalidDescription.Malformed The specified parameter Description is not valid. 指定的资源描述格式不合法。长度为 2-256 个字符,不能以 http:// 和 https:// 开头。
403 InvalidUser.Unauthorized The user is not authorized 您当前使用的账号无权限。

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