修改端口转发规则__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 | 400 | 指定的<源IP ,协议, 源端口号>已经存在 |
Forbidden.InternalIpAndInternalPortDuplicate | The specified | 400 | 指定的<目的IP地址, 目的端口号>重复 |
Forbidden.PortsAndIpProtocol | ExternalPort/InternalPort/IpProtocol must be all Any or all not Any. | 400 | ExternalPort/InternalPort/IpProtocol必须同时为Any或者同时不为Any |
示例
请求示例
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
格式
{
"RequestId": "24CC85DC-7700-4F09-9624-99E988C7DD03"
}
最后更新:2016-11-23 16:04:11
上一篇:
查询端口转发规则列表__NAT网关相关接口_API 参考_云服务器 ECS-阿里云
下一篇:
删除端口转发规则__NAT网关相关接口_API 参考_云服务器 ECS-阿里云
数量限制__使用须知_用户指南_弹性伸缩-阿里云
OSS API 文档简介__API 参考_对象存储 OSS-阿里云
Direction__DataType_API 参考_表格存储-阿里云
触发器__API参考_容器服务-阿里云
创建主题__主题操作_快速入门_消息服务-阿里云
写入数据__从 SQL 到 NoSQL_快速入门_表格存储-阿里云
安全组设置__ECS设置_操作指南_高性能计算-阿里云
删除索引__结构管理_DMS for MongoDB_用户指南(NoSQL)_数据管理-阿里云
日志分析__快速开始_移动数据分析-阿里云
域名转入操作说明__域名转入/转出_管理操作_域名-阿里云
相关内容
常见错误说明__附录_大数据计算服务-阿里云
发送短信接口__API使用手册_短信服务-阿里云
接口文档__Android_安全组件教程_移动安全-阿里云
运营商错误码(联通)__常见问题_短信服务-阿里云
设置短信模板__使用手册_短信服务-阿里云
OSS 权限问题及排查__常见错误及排除_最佳实践_对象存储 OSS-阿里云
消息通知__操作指南_批量计算-阿里云
设备端快速接入(MQTT)__快速开始_阿里云物联网套件-阿里云
查询API调用流量数据__API管理相关接口_API_API 网关-阿里云
使用STS访问__JavaScript-SDK_SDK 参考_对象存储 OSS-阿里云