阿里云如何修改端口轉發規則
來源:技術員聯盟┆發布時間:2017-05-02 13:32┆點擊:
修改端口轉發規則
描述
對某一條指定的端口轉發規則進行修改
對端口轉發規則合法性的所有約束,同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
示例
請求示例