调用ModifyHaVipAttribute接口修改HaVip的名称和描述。
接口说明
ModifyHaVipAttribute 不支持并发修改同一个 HaVip 的名称和描述。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
02fb3da4-130e-11e9-8e44-0016e0**** |
| RegionId |
string |
是 |
HaVip 所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-shanghai |
| HaVipId |
string |
是 |
要修改的 HaVip 的 ID。 |
havip-2zeo05qre24nhrqp**** |
| Description |
string |
否 |
HaVip 的描述。 描述长度为 1~255 个字符,不能以 |
This is my HaVip. |
| Name |
string |
否 |
HaVip 的名称。 名称长度为 1~128 个字符,不能以 |
test |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求 ID。 |
||
| RequestId |
string |
请求 ID。 |
C44F62BE-9CE7-4277-B117-69243F3988BF |
示例
正常返回示例
JSON格式
{
"RequestId": "C44F62BE-9CE7-4277-B117-69243F3988BF"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IncorrectStatus | HaVip can be deleted only when it's status is Available or InUse. | |
| 400 | InvalidDescription.Malformed | The specified Description is wrongly formed. | 入参Description无效 |
| 400 | Abs.Vpc.InvalidName.Malformed | The specified Name is not valid. | 传入的Name无效 |
| 400 | Forbidden.HaVip | No permissions to perform operations on HAVIPs. Please apply for privilege--vpc_privilege_allow_buy_havip_instance. | 操作HaVip没有权限,请到配额中心申请权限。 |
| 400 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 404 | InvalidHaVipId.NotFound | The specified HaVip does not exist in the specified region. | 指定的HaVip不在指定的地域中,请您检查选择的地域是否正确。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。