Listing Service Gateways

List the service gateways (SGWs) available in a particular compartment.

The Console can only show the service gateway attached to a specific VCN (only one SGW is needed in a VCN), but the API and CLI can show all SGWs in a specified compartment.

    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 Service Gateways section.
      • Under Resources, select Service Gateways.

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

    A VCN only requires one service gateway.

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

    oci network service-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 ListServiceGateways operation to list service gateways in a specified compartment.