Updating a Service Gateway's Route Table Association

You can update a service gateway in a virtual cloud network (VCN) to associate it with a route table or change the existing route table association.

    1. In the Console, confirm that you're viewing the compartment that contains the VCN with the service gateway that you're interested in. For information about compartments and access control, see Access Control.
    2. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    3. Click the name of the VCN that has the service gateway that you want to update.
    4. Under Resources, click Service Gateways.
    5. For the service gateway you're interested in, click the Actions menu (Actions Menu), and then select one of the following options:

      • Associate With Route Table: If the service gateway has no route table associated with it yet.
      • Associate Different Route Table: If you're changing which route table is associated with the service gateway.
    6. Select the compartment where the route table resides, and then select the route table itself.
    7. Click Associate.
  • Use the network service-gateway update command and required parameters to update details for a service gateway:

    oci network service-gateway update --service-gateway-id sgw-ocid ... [OPTIONS]

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

  • Run the UpdateServiceGateway operation to update details for a service gateway.