docs
api
Private Network(UVPC)
DescribeNATGWPolicy

Display NAT Gateway Port Forwarding Rules - DescribeNATGWPolicy

Overview

Display NAT Gateway Port Forwarding Rules

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is DescribeNATGWPolicy.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ProjectIdstringProject Id. If not filled in, the default project is used. Sub-accounts must be filled in. Please refer to the GetProjectList interface.No
NATGWIdstringNAT Gateway IdYes
LimitintReturn data length, default is 10000No
OffsetintList start position offset, default is 0No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
TotalCountintTotal number of satisfied forwarding strategiesYes
DataSetarray[NATGWPolicyDataSet]Detailed information of the found NATGW forwarding policyNo

Data Model

NATGWPolicyDataSet

Field NameTypeDescription InformationRequired
NATGWIdstringNAT Gateway IdYes
PolicyIdstringForwarding Strategy IdYes
ProtocolstringProtocol TypeYes
SrcEIPstringEIP Frontend Port ForwardingYes
SrcEIPIdstringFront-end EIP Id for Port ForwardingYes
SrcPortstringSource PortYes
DstIPstringDestination AddressYes
DstPortstringDestination PortYes
PolicyNamestringForwarding Strategy NameNo

Example

Request Example

https://api.surfercloud.com/?Action=DescribeNATGWPolicy
&Region=xxx
&ProjectId=xxx
&NATGWId=NdvawRZz
&Limit=1000
&Offset=0

Response Example

{
  "Action": "DescribeNATGWPolicyResponse",
  "DataSet": [
    {
      "DstIP": "10.0.0.190",
      "DstPort": "80",
      "NATGWId": "natgw-anbgfu",
      "PolicyId": "policy-sh2Qhg",
      "PolicyName": "port_80",
      "Protocol": "TCP",
      "SrcEIP": "106.75.101.196",
      "SrcEIPId": "eip-aeeiew",
      "SrcPort": "80"
    },
    {
      "DstIP": "10.0.2.71",
      "DstPort": "0",
      "NATGWId": "natgw-anbgfu",
      "PolicyId": "policy-vQyaKW",
      "PolicyName": "port_81",
      "Protocol": "TCP",
      "SrcEIP": "106.75.101.196",
      "SrcEIPId": "eip-aeeiew",
      "SrcPort": "22"
    }
  ],
  "RetCode": 0,
  "TotalCount": 2
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved