Aliyun How to query the list of port forwarding rules

Source: Internet
Author: User
Tags error code json aliyun

  Query port forwarding rules list

Describe

The query specifies the contents of the forwarding item.

This interface supports paging queries, with a default number of 10 per page.

Request parameters

name type must describe
action system specified parameters, values: describeforwardtableentries
regionid string region ID
forwardtableid string is the
page Number integer forwardentry the page number of the list,The starting value is 1, the default value is 1
integer no

return parameters

name type Description
Forwardtableentries Forwardtableentrysettype The list of entry in the forwarding publication
TotalCount Integer Number of list bar entries
PageNumber Integer Current page number
PageSize Integer How many entries are present in the paging

Error code

tr>
error code Description Http status code semantics
invalidregionid.notfound the specified RegionID is not found in our record. 404
invalidvrouterid.notfound Specified Vrouter is not found during access authentication. 404 ram authentication failed, could not find Vrouterid
invalidforwardtable.notfound 404 authentication failed, Vrouterid was not found
one of Vrouterid and Fowardtableid must be specified. 400 vrouterid and Forwardtableid must specify at least one.

Example

Request sample

https://ecs.aliyuncs.com/? signatureversion=1.0&format=json&timestamp=2016-05-23t04%3a10%3a16z&regionid=cn-shanghai& accesskeyid=jzgi0oyrq6ihgkp9&forwardtableid=ftb-11tc6xgmv&signaturemethod=hmac-sha1&version= 2014-05-26&signature=9oetvlgybtn8unf81za0%2by3q8q0%3d&action=describeforwardtableentries& Signaturenonce=41541235-209c-11e6-b0d5-2cf0ee28adf2

Return sample

XML format

Temporary slightly

JSON format

{"Forwardtableentries": {"Forwardtableentry": [{"Externalip": "139.224.22.107", "Externalport": "Any", "Forwarden Tryid ":" FWD-119SMW5TK "," Forwardtableid ":" FTB-11TC6XGMV "," Internalip ":" 192.168.1.1 "," Internalport ":" Any "," Ipprotocol ": Any", "Status": "Available"}, {"Externalip": "139.224.22.79", "Externalport": "443", "Forwardentryid": "F Wd-11cdhpjlk "," Forwardtableid ":" FTB-11TC6XGMV "," Internalip ":" 192.168.1.4 "," Internalport ":" 443 "," Ipprotocol ":" TCP ", Status": "Available"}, {"Externalip": "139.224.22.55", "Externalport": "Any", "Forwardentryid": "fwd-11dz3ly9l" , "Forwardtableid": "FTB-11TC6XGMV", "Internalip": "192.168.1.2", "Internalport": "Any", "Ipprotocol": "Any", "Status": "Available"}, {"Externalip": "139.224.22.59", "Externalport": "All", "Forwardentryid": "Fwd-11iv34uj7", " Forwardtableid ":" FTB-11TC6XGMV "," Internalip ":" 192.168.1.5 "," Internalport ":" All "," Ipprotocol ":" TCP "," Status ":" Available "}, {" Externalip ":" 139.224.22.79 "," Externalport ":""," Forwardentryid ":" Fwd-11r23r7p5 "," Forwardtableid ":" FTB-11TC6XGMV "," Internalip ":" 192.168.1.3 "," Internalport ":", "Ipprotocol": "TCP", "Status": "Available"}], "PageNumber": 1, "PageSize": Ten, "RequestID": "A6c4a8b1-7561-45 09-949c-20deb40d71e6 "," TotalCount ": 5}

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.