NSX CLI Guide

get vpc <vpc-path> nat rules

Display nat rules with expanded address sets for the specified logical router.

Parameters:

Option Description
<vpc-policy-path-string> VPC Policy path string argument
Allowed pattern: ^/([A-Za-z0-9_:./-]+)$


Example:

nsx-edge-1> get vpc /orgs/default/projects/project_2/vpcs/project_2_vpc_1 nat rules Tue Sep 09 2025 UTC 15:42:49.796 DNAT rule count: 1 Rule ID : 536870944 Rule : in inet protocol any postnat from any to addrset {151.11.1.4} dnat EIP table id: 02471b66-1e10-45df-a2d1-906b0a06f96a SNAT rule count: 1 Rule ID : 536870926 Rule : out protocol any prenat from ip 192.168.10.0/24 to any snat ip 151.11.1.2 port 37001-65535

Mode:

Basic

Availability: