UpdateRouteTargetGroup
更新路由目標群組執行個體資訊,包括名稱、描述、未使能的成員。
介面說明
- 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. | |
| 400 | IncorrectStatus.RouteTargetGroup | The status of %s [%s] is incorrect. | |
| 400 | Mismatch.GroupVpcIdAndInstanceVpcId | The RouteTargetGroup VPC %s and the RouteTargetConfig VPC %s are mismatched. | |
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。