Aliyun How to query the NAT gateway list

Source: Internet
Author: User
Tags error code json aliyun

  Query NAT Gateway List

Describe

Queries the Natgateway list for the specified region. This interface supports paging queries, with a default number of 10 per page.

Request parameters

no /tr>
name type must describe
action system specified parameters, values: Describenatgateways
string is
natgatewayid string no does not specify this parameter is not filtered.
string > no filter class parameter, that is, return only the Natgateway within the specified VPC. The
does not specify this parameter is not filtered.
pagenumber integer The page number of the instance status list, the starting value is 1, and the default value is 1
integer The number of rows per page set when paging query, maximum 50 lines, default to ten

return parameters

name type Description
Natgateways Natgatewaysettype Natgateway List
TotalCount Integer Number of list bar entries
PageNumber Integer Current page number
PageSize Integer How many entries are present in the paging

Error code

Error code Description Http Status Code Semantics
Invalidregionid.notfound Specified value of "RegionID" is not supported. 60v The specified Region does not exist

Example

Request sample

https://ecs.aliyuncs.com/? signatureversion=1.0&vpcid=vpc-11af8lp67&format=json&timestamp=2016-05-23t03%3a27%3a14z& Regionid=cn-shanghai&accesskeyid=jzgi0oyrq6ihgkp9&signaturemethod=hmac-sha1&version=2014-05-26 &signature=jvxerso9g0fzdrtgbtnlepe%2f1e4%3d&action=describenatgateways&signaturenonce= 3e1424eb-2096-11e6-bc31-2cf0ee28adf2

Return sample

JSON format

{"Natgateways": {"Natgateway": [{"Bandwidthpackageids": {"Bandwidthpackageid": ["Bwp-11odxu2k7"]}, "Businessstatus ": Normal", "CreationTime": "2016-05-23t03:26:23z", "Description": "My I-NAT Gateway", "Forwardtableids": {"Forward TableId ": [" FTB-11TC6XGMV "]}," Instancechargetype ":" postpaid "," Name ":" MYNATGW "," Natgatewayid ":" Ngw-112za33e4 "," R Egionid ":" Cn-shanghai "," Spec ":" Small "," Status ":" Available "," Vpcid ":" Vpc-11af8lp67 "}]}," PageNumber ": 1," Pagesiz E ": Ten," RequestID ":" fe4c442c-9778-449a-bf7f-7f36c3af5611 "," TotalCount ": 1}

XML format

temporary;

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.