呼叫 UpdateTransitRouterVpcAttachmentAttribute 介面修改企業版轉發路由器下 VPC 連線的名稱和描述資訊以及是否需要使企業版轉發路由器自動發佈路由到 VPC 執行個體。
介面說明
UpdateTransitRouterVpcAttachmentAttribute 介面屬於非同步介面,即系統會先返回一個 RequestId,但該 VPC 連線並未修改完成,系統背景的修改任務仍在進行。您可以呼叫 ListTransitRouterVpcAttachments 介面查詢 VPC 連線的狀態。
當 VPC 連線處於 Modifying 狀態時,表示 VPC 連線正在修改中,在該狀態下,您只能對 VPC 連線執行查詢操作,不能執行其他操作。
當 VPC 連線處於 Attached 狀態時,表示 VPC 連線修改完成。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:UpdateTransitRouterVpcAttachmentAttribute |
update |
*TransitRouterVpcAttachment
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的冪等性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
02fb3da4-130e-11e9-8e44-001**** |
| TransitRouterAttachmentId |
string |
是 |
VPC 連線 ID。 |
tr-attach-nls9fzkfat8934**** |
| TransitRouterAttachmentName |
string |
否 |
VPC 連線的名稱。 名稱可以為空或長度為 1~128 個字元,不能以 http:// 或 https:// 開頭。 |
testname |
| TransitRouterAttachmentDescription |
string |
否 |
VPC 連線的描述資訊。 描述可以為空或長度為 1~256 個字元,不能以 http:// 或 https:// 開頭。 |
testdesc |
| DryRun |
boolean |
否 |
是否對此次請求執行預檢,包括權限、執行個體狀態校驗等。取值:
|
false |
| TransitRouterVPCAttachmentOptions |
object |
否 |
VPC 連線的功能屬性清單(即將廢棄,請使用新入參 Options)。 |
|
|
string |
否 |
VPC 連線的功能屬性(即將廢棄,請使用新入參 Options)。 ipv6Support:是否開啟 IPv6 功能。
說明
為 VPC 連線開啟 IPv6 功能前,請確保 VPC 執行個體及其關聯的交換器執行個體已經開啟 IPv6 功能。具體操作,請參見 AllocateVpcIpv6Cidr 和 CreateVSwitchCidrReservation 。 |
ipv6Support:enable |
|
| AutoPublishRouteEnabled |
boolean |
否 |
是否允許企業版轉發路由器自動發佈路由到 VPC 執行個體。
|
true |
| Options |
object |
否 |
功能屬性集合。 |
|
| Ipv6Support |
string |
否 |
是否支援 IPv6。
|
enable |
| ApplianceModeSupport |
string |
否 |
是否開啟網路元素導流模式。
|
enable |
| OrderType |
string |
否 |
網路執行個體的付費方。 枚舉值:
|
PayByCenOwner |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
7E61D334-4025-41EF-9145-FC327B35301D |
樣本
正常返回樣本
JSON格式
{
"RequestId": "7E61D334-4025-41EF-9145-FC327B35301D"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IncorrectStatus.TransitRouterAttachmentId | TransitRouterAttachmentId status is invalid. | 目前該 Attachment 未處於穩定狀態,不支援此操作。 |
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | 參數中指定的 TransitRouterAttachmentId 不存在。 |
| 400 | InvalidOperation.RegionNotSupport | The operation is not supported in this region. | 目前區域不支援此操作。 |
| 400 | InvalidOperation.VpcAutoRoutesPublishInOtherCEN | The operation is not supported because the VPC is already set autoRoutesPublish in other CEN. | |
| 400 | QuotaExceeded.VpcAutoRoutesPublishPerTransitRouter | The count of VPC instance which set autoRoutesPublish in transitRouter is over limit. | |
| 400 | InvalidOperation.VpnAssociated | The operation is not supported because the VPC is associated with VPN. | 目前 VPC 與 VPN 綁定,無法開啟路由自動同步功能。 |
| 400 | IllegalParam.Ipv6Support | Ipv6Support is illegal. Valid Values are [enable, disable]. | 請求參數 Ipv6Support 值無效,有效值為 enable 或 disable。 |
| 400 | OperationFailed.VSwitchNotFound | The specified vswitch not found. | 指定的 VSwitchId 不存在,請確認該 VSwitch 狀態是否可用,或指定其他可用的 VSwitch。 |
| 400 | OperationFailed.VSwitchIpv6CidrNotAllocated | The specified vswitch does not have IPv6 address allocated. | 指定的 VSwitch 未啟用 IPv6,請啟用 IPv6 後再進行此操作。 |
| 400 | OperationInvalid.AttachmentReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is the specified attachment. | 存在指向 attachment 的 IPv6 路由條目,無法進行此操作。 |
| 400 | OperationInvalid.AttachmentReferencedVpcIPv6RouteEntryExisted | The specified attachment is referenced by vpc route entry(IPv6). | VPC 中存在指向 attachment 的 IPv6 路由條目,無法支援此操作。請先至 VPC 清除此路由條目,再執行此操作。 |
| 400 | OperationInvalid.EniReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is network interface that the specified attachment referenced. | VPC 中存在指向 attachment 相關 ENI 的 IPv6 路由條目,無法支援此操作。請先清除此路由條目,再執行此操作。 |
| 400 | OperationUnsupported.VpcRoutePropagationSource | The operation on this VPC route propagation source is not supported. | 不支援對此 VPC 路由傳播來源的操作。 |
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | 目前的 TransitRouter 類型不支援此操作。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無權限操作。 |
| 400 | INVALID_OPERATION_RESOURCE_NOT_SUPPORT_APPLIANCE_MODE | Only VPC attachment support appliance mode. | 只有專用網路連線支援網元導流模式。 |
| 400 | InvalidParameter.Ipv6Support | The specified parameter Ipv6Support is invalid. | 輸入的參數 Ipv6Support 不合法。 |
| 400 | InvalidParameter.ApplianceModeSupport | The specified parameter ApplianceModeSupport is invalid. | 輸入的參數 ApplianceModeSupport 不合法。 |
| 400 | ParamExclusive.TransitRouterVPCAttachmentOptionsAndOptions | When creating or modifying a VPC attachment, the input parameter TransitRouterVPCAttachmentOptions and Options cannot be used at the same time. | 建立或修改專用網路連線時,不支援同時使用入參 TransitRouterVPCAttachmentOptions 和 Options。 |
| 400 | InvalidParameter.OrderType | The specified parameter OrderType is invalid. | 請求參數 OrderType 不合法。 |
| 400 | InvalidOperation.OrderTypeMustMatchGrantCrossAccount | The OrderType must be the same as the OrderType in the grant cross-account record. | 更新後的網路執行個體連線的付費方必須與跨帳號授權記錄的付費方一致。 |
| 400 | OperationFailed.GrantCrossAccountNotExist | Cross-account authorization does not exist. | 跨帳號授權不存在。 |
| 400 | InvalidParameter.CenBandwidthPackageId | The specified parameter CenBandwidthPackageId is invalid. | 輸入的參數 CenBandwidthPackageId 不合法。 |
| 400 | InvalidParameter.TransitRouterAttachmentId | The specified parameter TransitRouterAttachmentId is invalid. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。