Listing Internet Gateways

List the internet gateway.

A VCN normally only needs one internet gateway. Any public subnet in a VCN can use the internet gateway, if the route table and security list it uses allows the traffic.
    1. On the Virtual Cloud Networks list page, select the VCN that contains the gateway 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 Internet Gateways section.
      • Under Resources, select Internet Gateways.

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

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

    oci network internet-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 ListInternetGateways operation to list the internet gateways.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.