閱讀1036 返回首頁    go 阿裏雲


修改端口轉發規則__NAT網關相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

對某一條指定的端口轉發規則進行修改

  • 對端口轉發規則合法性的所有約束,同CreateForwardEntry。
  • 每條端口轉發規則都有狀態,取值為Available |Pending |Modifying;當端口裝發表中任意一條規則的狀態處於Pending 或 Modifying時,不允許對端口轉發表進行規則修改;

請求參數

名稱 類型 是否必須 描述
Action String 係統規定參數,取值:ModifyForwardEntry
RegionId String Region ID
ForwardTableId String ForwardTableId
ForwardEntryId String Forward表條目ID
ExternalIp String 端口轉發規則中的源IP被轉發的IP地址,必須是一個綁定在FowardTable所屬VRouter上的EIP的地址。
IpProtocol String IpProtocol類型,可選TCP|UDP|Any。
ExternalPort String 取值範圍為1~65535。。
InternalIp String 端口轉發規則中轉發成的IP地址,是一個私網IP地址。
InternalPort String 取值範圍為1~65535。

返回參數

全是公共返回參數,詳見公共返回參數

錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
InvalidRegionId.NotFound The specified RegionId is not found in our record. 404 指定的Region ID不存在
InvalidForwardTableId.NotFound Specified forward table does not exist. 404 指定的轉發表不存在
InvalidForwardEntryId.NotFound Specified forward entry ID does not exist 404 指定的轉發條目ID不存在
InvalidExternalIp.NotFound Specified Source Ip address does not found on the VRouter 404 指定的源IP地址在VRouter上沒有找到
QuotaExceeded Forward entry quota exceeded in this route table. 400 同一個轉發表條目不能超過 40條
IncorretForwardEntryStatus Some Forward entry status blocked this operation. 400 同一個 VPC 下麵的轉發表中的任一個轉發條目處在中間狀態(添加中,修改中,刪除中),不能創建轉發條目
InvalidProtocal.ValueNotSupportedc The specified IpProtocol does not exist or IpProtocol and ExternalPort or InternalPort do not match. 400 協議不存在
InvalidInternalIp.Malformed The specified InternalIp is not a valid IP address. 400 指定的目的IP地址不合法
InvalidExternalIp.Malformed The specified ExternalIp is not a valid IP address. 400 指定的源IP地址不合法
InvalidExternalPort.Malformed The specified ExternalPort is not a valid port. 400 指定的源端口號不合法
InvalidInternalPort.Malformed The specified InternalPort is not a valid port. 400 指定的目的端口號不合法
ForwardEntry.Duplicated The specified is duplicated,> 400 指定的<源IP ,協議, 源端口號>已經存在
Forbidden.InternalIpAndInternalPortDuplicate The specified is duplicated.,> 400 指定的<目的IP地址, 目的端口號>重複
Forbidden.PortsAndIpProtocol ExternalPort/InternalPort/IpProtocol must be all Any or all not Any. 400 ExternalPort/InternalPort/IpProtocol必須同時為Any或者同時不為Any

示例

請求示例

  1. https://ecs.aliyuncs.com/?SignatureVersion=1.0&Format=json&TimeStamp=2016-05-23T04%3A09%3A16Z&RegionId=cn-shanghai&ForwardEntryId=fwd-11iv34uj7&InternalIp=192.168.1.3&AccessKeyId=jZgi0oyrQ6ihgKp9&ForwardTableId=ftb-11tc6xgmv&SignatureMethod=HMAC-SHA1&Version=2014-05-26&Signature=DM6q9yvEuEPSryxJtyLlN4S2hXE%3D&action=ModifyForwardEntry&SignatureNonce=1daf567d-209c-11e6-aba8-2cf0ee28adf2

返回示例

XML格式

暫略

JSON格式

  1. {
  2. "RequestId": "24CC85DC-7700-4F09-9624-99E988C7DD03"
  3. }

最後更新:2016-11-23 16:04:11

  上一篇:go 查詢端口轉發規則列表__NAT網關相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 刪除端口轉發規則__NAT網關相關接口_API 參考_雲服務器 ECS-阿裏雲