Query NAT gateway details
Updated at:2025-10-16
Description
Query the details of a NAT gateway.
- Details of a NAT gateway can be obtained using its ID.
Request structure
Plain Text
1GET /v{version}/nat/{natId} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| natId | String | Yes | URL parameter | NAT ID |
Response headers
No additional headers beyond standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| id | String | NAT gateway ID |
| name | String | NAT (Network Address Translation) name |
| natType | String | NAT gateway type: "enhanced" indicates the enhanced type, "normal" indicates the normal type |
| vpcId | String | ID of VPC to which the NAT gateway belongs |
| spec | String | Standard NAT gateway sizes include small (supporting up to 5 public IPs), medium (supporting up to 10 public IPs), and large (supporting up to 15 public IPs). |
| eips | List of IP addresses for the SNAT EIP bound to the NAT gateway | |
| dnatEips | List of IP addresses for the Dnat EIP bound to the NAT gateway | |
| bindEips | List of IP addresses of EIPs bound to the NAT gateway, applicable only to enhanced NAT gateways | |
| status | [natStatus](VPC/API Reference/Appendix.md#natStatus) | Status of the NAT gateway |
| paymentTiming | String | Bill type: prepaid, postpaid |
| expiredTime | String | Expiration time |
| createTime | String | Creation time |
| tags | List<[TagModel](VPC/API Reference/Appendix.md#tagmodel)> | List of tags bound to the NAT gateway |
| deleteProtect | Boolean | Whether to enable release protection |
Request example
Plain Text
1GET /v1/nat/nat-bir8biqwr45e HTTP/1.1
2Host: bcc.bj.baidubce.com
3authorization: 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
Response example
Plain Text
1HTTP/1.1 200 OK
2Date: Fri, 06 Jul 2018 11:12:34 GMT
3Content-Type: application/json;charset=UTF-8
4Server: BWS
5{
6 "id":"nat-bir8biqwr45e",
7 "name":"mynat",
8 "vpcId":"vpc-13vuxu016dew",
9 "natType":"enhanced",
10 "status":"unconfigured",
11 "eips":[
12 ],
13 "dnatEips":[
14 ],
15 "bindEips": [
16 "100.89.0.91"
17 ],
18 "paymentTiming":"Prepaid",
19 "expiredTime":"2018-08-13T08:10:59Z",
20 "createTime": "2021-04-25 17:22:34",
21 "tags":[
22 {
23 "tagKey": "tagKey",
24 "tagValue": "tagValue"
25 }
26 ],
27 "deleteProtect":true
28}
