技術(shù)員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機(jī)純凈版,64位旗艦版,綠色軟件,免費(fèi)軟件下載基地!

當(dāng)前位置:主頁 > 教程 > 服務(wù)器類 >

阿里云如何修改端口轉(zhuǎn)發(fā)規(guī)則

來源:技術(shù)員聯(lián)盟┆發(fā)布時(shí)間:2017-05-02 13:32┆點(diǎn)擊:

  修改端口轉(zhuǎn)發(fā)規(guī)則

  描述

  對某一條指定的端口轉(zhuǎn)發(fā)規(guī)則進(jìn)行修改

  對端口轉(zhuǎn)發(fā)規(guī)則合法性的所有約束,同CreateForwardEntry。

  每條端口轉(zhuǎn)發(fā)規(guī)則都有狀態(tài),取值為Available |Pending |Modifying;當(dāng)端口裝發(fā)表中任意一條規(guī)則的狀態(tài)處于Pending 或 Modifying時(shí),不允許對端口轉(zhuǎn)發(fā)表進(jìn)行規(guī)則修改;

  請求參數(shù)

名稱 類型 是否必須 描述
Action   String     系統(tǒng)規(guī)定參數(shù),取值:ModifyForwardEntry  
RegionId   String     Region ID  
ForwardTableId   String     ForwardTableId  
ForwardEntryId   String     Forward表?xiàng)l目ID  
ExternalIp   String     端口轉(zhuǎn)發(fā)規(guī)則中的源IP被轉(zhuǎn)發(fā)的IP地址,必須是一個(gè)綁定在FowardTable所屬VRouter上的EIP的地址。  
IpProtocol   String     IpProtocol類型,可選TCP|UDP|Any。  
ExternalPort   String     取值范圍為1~65535。。  
InternalIp   String     端口轉(zhuǎn)發(fā)規(guī)則中轉(zhuǎn)發(fā)成的IP地址,是一個(gè)私網(wǎng)IP地址。  
InternalPort   String     取值范圍為1~65535。  

  返回參數(shù)

  全是公共返回參數(shù),詳見公共返回參數(shù)

  錯(cuò)誤碼

錯(cuò)誤代碼 描述 Http 狀態(tài)碼 語義
InvalidRegionId.NotFound   The specified RegionId is not found in our record.   404   指定的Region ID不存在  
InvalidForwardTableId.NotFound   Specified forward table does not exist.   404   指定的轉(zhuǎn)發(fā)表不存在  
InvalidForwardEntryId.NotFound   Specified forward entry ID does not exist   404   指定的轉(zhuǎn)發(fā)條目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   同一個(gè)轉(zhuǎn)發(fā)表?xiàng)l目不能超過 40條  
IncorretForwardEntryStatus   Some Forward entry status blocked this operation.   400   同一個(gè) VPC 下面的轉(zhuǎn)發(fā)表中的任一個(gè)轉(zhuǎn)發(fā)條目處在中間狀態(tài)(添加中,修改中,刪除中),不能創(chuàng)建轉(zhuǎn)發(fā)條目  
InvalidProtocal.ValueNotSupportedc   The specified IpProtocol does not exist or IpProtocol and ExternalPort or InternalPort do not match.   400   協(xié)議不存在  
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 ,協(xié)議, 源端口號>已經(jīng)存在  
Forbidden.InternalIpAndInternalPortDuplicate   The specified is duplicated.   400   指定的<目的IP地址, 目的端口號>重復(fù)  
Forbidden.PortsAndIpProtocol   ExternalPort/InternalPort/IpProtocol must be all Any or all not Any.   400   ExternalPort/InternalPort/IpProtocol必須同時(shí)為Any或者同時(shí)不為Any  

  示例

  請求示例