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. 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.
    3. For the service gateway you're interested in, select 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.
    4. Select the compartment where the route table resides, and then select the route table itself.
    5. Select 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.