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.
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.