技术员联盟提供win764位系统下载,win10,win7,xp,装机纯净版,64位旗舰版,绿色软件,免费软件下载基地!

当前位置:主页 > 教程 > 服务器类 >

阿里云如何修改端口转发规则

来源:技术员联盟┆发布时间: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  

  示例

  请求示例