更新路由目标组实例信息,包括名称、描述、未使能的成员。
接口说明
- UpdateRouteTargetGroup 接口属于异步接口,即系统会返回一个请求 ID,但该路由目标组尚未更新完成,系统后台的更新任务仍在进行。您可以调用 ListRouteTargetGroup 查询路由目标组的更新状态:
当路由目标组处于 Updating 状态时,表示路由目标组创建中。
当路由目标组处于 Available、Unavailable、Switched、Abnormal 状态时,表示路由目标组更新完成。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:UpdateRouteTargetGroup |
update |
*RouteTargetGroup
|
无 | 无 |
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RouteTargetGroupId |
string |
是 |
路由目标组实例 ID。 |
rtg-xxx |
| RouteTargetGroupName |
string |
否 |
路由目标组的名称。 名称长度为 1~128 个字符,不能以 http://或 https://开头。 |
myRouteTargetGroupName |
| RouteTargetGroupDescription |
string |
否 |
路由目标组的描述信息。 描述长度为 1~256 个字符,不能以 http://或 https://开头。 |
myRouteTargetGroupDescription |
| RouteTargetMemberList |
array<object> |
否 |
路由目标组的成员列表。 主备模式下,对路由目标组成员有如下限制:
|
|
|
object |
否 |
|||
| MemberId |
string |
否 |
路由目标组成员实例 ID。 |
ep-xxxx |
| MemberType |
string |
否 |
路由目标组的成员类型。 当前支持的类型:
主备模式下,路由目标组所有成员的类型必须相同。 |
GatewayLoadBalancerEndpoint |
| Weight |
integer |
否 |
路由目标组成员的权重值。取值:
权重值仅支持在创建时设置,不支持修改。 |
100 |
| RegionId |
string |
是 |
路由目标组实例所属地域 ID。您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。说明 若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。 |
123e4567-e89b-12d3-a456-426655440000 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
0ED8D006-F706-4D23-88ED-E11ED28DCAC |
示例
正常返回示例
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ResourceNotFound.RouteTargetGroup | The specified resource of %s is not found. | 指定资源%s不存在。 |
| 400 | IncorrectStatus.RouteTargetGroup | The status of %s [%s] is incorrect. | 路由目标组当前状态禁止操作。 |
| 400 | Mismatch.GroupVpcIdAndInstanceVpcId | The RouteTargetGroup VPC %s and the RouteTargetConfig VPC %s are mismatched. | 路由目标组所属的VPC和路由目标配置实例所属的VPC不一致。 |
| 400 | OperationDenied.UpdateMemberType | The operation is not allowed because of the inability to update memberType. | 禁止更新路由目标组成员中的实例类型。 |
| 400 | OperationDenied.MemberWithSameAz | The operation is not allowed because of all members being in the same availability zone. | 路由目标组成员实例禁止属于同一个可用区。 |
| 400 | OperationDenied.UpdateEnableRouteTargetMember | The operation is not allowed because of the inability to update the RouteTargetMember when it is in the enabled state. | 禁止更新路由目标组中已使能的成员。 |
| 400 | OperationDenied.NatGatewayIcmpReplyDisabled | NAT gateway ICMP reply is disabled. | 路由目标组中的NAT网关必须开启ICMP代回功能,确保ICMP探测报文可被正常响应。 |
| 400 | OperationDenied.NatGatewayNotSingleAZ | NAT gateway must be in SingleAZ mode. | 路由目标组仅支持单AZ类型的NAT网关。 |
| 400 | ResourceNotFound.NatGatewayVSwitch | The VSwitch information associated with the selected NAT gateway was not found. | 未找到所选NAT网关关联的VSwitch信息。 |
| 400 | ResourceNotFound.NatGateway | The selected NAT gateway was not found when creating or modifying the route target group. | 创建或修改路由目标组时,未发现所选的NAT网关资源。 |
| 404 | ResourceNotFound.GatewayLoadBalancerEndpoint | GatewayLoadBalancerEndpoint instance not found. | 未找到GatewayLoadBalancerEndpoint实例。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。