UpdateRouteTargetGroup

更新時間:
Copy as MD

更新路由目標群組執行個體資訊,包括名稱、描述、未使能的成員。

介面說明

  • UpdateRouteTargetGroup 介面屬於非同步介面,即系統會返回一個請求 ID,但該路由目標群組尚未更新完成,系統後台的更新任務仍在進行。您可以呼叫 ListRouteTargetGroup 查詢路由目標群組的更新狀態:
    • 當路由目標群組處於 Updating 狀態時,表示路由目標群組建立中。

    • 當路由目標群組處於 AvailableUnavailableSwitchedAbnormal 狀態時,表示路由目標群組更新完成。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

vpc:UpdateRouteTargetGroup

update

*RouteTargetGroup

acs:vpc:{#regionId}:{#accountId}:routetargetgroup/{#RouteTargetGroupId}

請求文法

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>

路由目標群組的成員列表。

主備模式下,對路由目標群組成員有如下限制:

  1. 路由目標群組成員數量必須為 2

  2. 路由目標群組成員必須屬於不同可用區。

object

MemberId

string

路由目標群組成員執行個體 ID。

ep-xxxx

MemberType

string

路由目標群組的成員類型。

當前支援的類型:

  • GatewayLoadBalancerEndpoint

主備模式下,路由目標群組所有成員的類型必須相同。

GatewayLoadBalancerEndpoint

Weight

integer

路由目標群組成員的權重值。取值:

  • 100:表示成員為主執行個體。

  • 0:表示成員為備執行個體。

權重值僅支援在建立時設定,不支援修改。

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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情