Listing NAT Gateways

List the NAT gateway in a VCN.

    1. On the Virtual Cloud Networks list page, select the VCN that contains the gateway that you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the Gateways tab, go to the NAT Gateways section.
      • Under Resources, select NAT Gateways.

      All NAT gateways in the VCN are displayed in a table.

  • Use the network nat-gateway list command and required parameters to list the NAT gateways in a compartment:

    oci network nat-gateway list --compartment-id compartment-ocid ... [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ListNatGateways operation to list the NAT gateways in a compartment.