Query NAT Gateway Details
Last Updated:2020-07-20
Description
Query the NAT gateway details.
- The NAT gateway details can be queried according to the NAT gateway ID.
Request Structure
GET /v{version}/nat/{natId} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
Request Parameter
Parameter name | Type | Required or not | Parameter position | Description |
---|---|---|---|---|
version | String | Yes | URL parameter | API version number (the current value is 1) |
natId | String | Yes | URL parameter | ID of NAT |
Return Header
There are no other special headers except the public headers.
Return Parameter
Parameter name | Type | Description |
---|---|---|
id | String | ID of NAT gateway |
name | String | NAT gateway name |
vpcId | String | ID of VPC to which NAT gateway belongs |
spec | String | The size of NAT gateway is divided into three kinds: small (supporting binding a maximum of 5 public network IPs), medium (supporting binding a maximum of 10 public network IPs) and large (supporting binding a maximum of 15 public network IPs). |
eips | List |
IP address list of EIP bound to NAT gateway |
status | Natstatus | Status of NAT gateway |
paymentTiming | String | Payment mode: Prepaid and Postpaid |
expireTime | String | Expiration time |
Request Example
GET /v1/nat/nat-bir8biqwr45e HTTP/1.1
Host: bcc.bj.baidubce.com
authorization: bce-auth-v1/bf427691810a11e8a106475a8496ca04/2018-07-06T11:02:49Z/3600/host;x-bce-account;x-bce-client-ip;x -bce-date;x-bce-request-id;x-bce-security-token/e84ee938f6466428ff5c16b3562a1cbf3db5928e7f863cedec8820b5d98aa474
Return Example
HTTP/1.1 200 OK
Date: Fri, 06 Jul 2018 11:12:34 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS
{
"id":"nat-bir8biqwr45e",
"name":"mynat",
"vpcId":"vpc-13vuxu016dew",
"spec":"small",
"status":"unconfigured",
"eips":[
],
"paymentTiming":"Prepaid",
"expiredTime":"2018-08-13T08:10:59Z"
}