Aliyun How to modify port forwarding rules

Source: Internet
Author: User
Tags error code json range valid port number aliyun

  Modify Port Forwarding Rules

Describe

Modifies a specified port forwarding rule

All constraints on the legality of the port forwarding rule are the same as createforwardentry.

Each port forwarding rule has a state, value of available | Pending | modifying; When the status of any rule in the port is in pending or modifying, it is not allowed to modify the port transfer.

Request parameters

name type whether you must Description
Action String Is System specified parameters, values: Modifyforwardentry
RegionID String Is Region ID
Forwardtableid String Is Forwardtableid
Forwardentryid String Is Forward table Entry ID
Externalip String Whether The IP address of the source IP that is forwarded in the port forwarding rule must be the address of an EIP that is bound to the fowardtable-owned Vrouter.
Ipprotocol String Whether Ipprotocol type, optional tcp| udp| Any.
Externalport String Whether The value range is 1~65535.
Internalip String Whether The IP address forwarded in the port forwarding rule is a private network IP address.
Internalport String Whether The value range is 1~65535.

return parameters

All public return parameters, as detailed in the public return parameters

Error code

Error code Description Http Status Code Semantics
Invalidregionid.notfound The specified RegionID is isn't found in our record. 404 The specified region ID does not exist
Invalidforwardtableid.notfound Specified forward table does not exist. 60v The specified forwarding publication does not exist
Invalidforwardentryid.notfound Specified forward entry ID does not exist 60v The specified forwarding entry ID does not exist
Invalidexternalip.notfound Specified Source Ip address does not found on the Vrouter 60v The specified source IP address was not found on the Vrouter
quotaexceeded Forward entry quota exceeded in this route table. 400 No more than 40 items in the same forwarding post
Incorretforwardentrystatus Some Forward Entry status blocked this operation. 400 Same VPC any forwarding entry in the forwarding table below is in the middle State (add, modify, delete) and cannot create a forwarding entry
Invalidprotocal.valuenotsupportedc The specified Ipprotocol does not exist or Ipprotocol and Externalport or Internalport does not match. 400 Protocol does not exist
Invalidinternalip.malformed The specified internalip is isn't a valid IP address. 400 The specified destination IP address is illegal
Invalidexternalip.malformed The specified externalip is isn't a valid IP address. 400 The specified source IP address is not valid
Invalidexternalport.malformed The specified externalport is not a valid port. 400 The specified source port number is not valid
Invalidinternalport.malformed The specified internalport is not a valid port. 400 The specified destination port number is not valid
forwardentry.duplicated The specified is duplicated 400 The specified < source IP, protocol, source port number > already exists
Forbidden.internalipandinternalportduplicate The specified is duplicated. 400 Specified < destination IP address, destination port number > duplicate
Forbidden.portsandipprotocol Externalport/internalport/ipprotocol must be all or all. 400 Externalport/internalport/ipprotocol must be either any or not at the same time

Example

Request sample

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

Return sample

XML format

Temporary slightly

JSON format

{"RequestID": "24cc85dc-7700-4f09-9624-99e988c7dd03"}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.