查询端口转发规则列表
描述
查询指定转发表的条目内容。
此接口支持分页查询,每页的数量默认为 10 条。
请求参数
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
Action | String | 是 | 系统规定参数,取值:DescribeForwardTableEntries |
RegionId | String | 是 | Region ID |
ForwardTableId | String | 是 | 要查询的端口转发表ID |
PageNumber | Integer | 否 | ForwardEntry列表的页码,起始值为 1,默认值为 1 |
PageSize | Integer | 否 | 分页查询时设置的每页行数,最大值 50 ;默认为 10 |
返回参数
名称 | 类型 | 描述 |
---|---|---|
ForwardTableEntries | ForwardTableEntrySetType | 该转发表中的Entry列表 |
TotalCount | Integer | 列表条条目数 |
PageNumber | Integer | 当前页码 |
PageSize | Integer | 当前分页包含多少条目 |
错误码
错误代码 | 描述 | Http 状态码 | 语义 |
---|---|---|---|
InvalidRegionId.NotFound | The specified RegionId is not found in our record. | 404 | 指定的Region ID不存在 |
InvalidVRouterId.NotFound | Specified VRouter is not found during access authentication. | 404 | RAM鉴权 失败,找不到VRouterID |
InvalidForwardTable.NotFound | Specified ForwardTable is not found during access authentication. | 404 | 鉴权失败,找不到VRouterID |
MissingParameter.VRouterIdOrFowardTableId | One of VRouterId and FowardTableId must be specified. | 400 | VRouterId和ForwardTableId必须至少指定一个。 |
示例
请求示例
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
返回示例
XML格式
暂略
JSON格式
{ "ForwardTableEntries": { "ForwardTableEntry": [ { "ExternalIp": "139.224.22.107", "ExternalPort": "any", "ForwardEntryId": "fwd-119smw5tk", "ForwardTableId": "ftb-11tc6xgmv", "InternalIp": "192.168.1.1", "InternalPort": "any", "IpProtocol": "any", "Status": "Available" }, { "ExternalIp": "139.224.22.79", "ExternalPort": "443", "ForwardEntryId": "fwd-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": "22", "ForwardEntryId": "fwd-11iv34uj7", "ForwardTableId": "ftb-11tc6xgmv", "InternalIp": "192.168.1.5", "InternalPort": "22", "IpProtocol": "tcp", "Status": "Available" }, { "ExternalIp": "139.224.22.79", "ExternalPort": "80", "ForwardEntryId": "fwd-11r23r7p5", "ForwardTableId": "ftb-11tc6xgmv", "InternalIp": "192.168.1.3", "InternalPort": "80", "IpProtocol": "tcp", "Status": "Available" } ] }, "PageNumber": 1, "PageSize": 10, "RequestId": "A6C4A8B1-7561-4509-949C-20DEB40D71E6", "TotalCount": 5}