Updating the Network Security Group of an OCI Database with PostgreSQL Database System

Change the network security group of an OCI Database with PostgreSQL database system.

For more information, see Network Security Groups.
    1. On the Database systems list page, select the database system that you want to work with. If you need help finding the list page or the database system, see Listing OCI Database with PostgreSQL Database Systems.
      The database system's details page opens.
    2. Find the Network configuration section and select Edit next to NSGs.
      The Edit network security groups panel opens.
    3. Select the network security group or network security groups for the database system. Add or remove NSGs as needed.
    4. Select Save changes.
  • Use the oci psql db-system update command and required parameters to update the NSG of a database system:

    oci psql db-system update --db-system-id <db-system_OCID> --network-details <network_details_json> [OPTIONS]

    To get your database system's OCID, see Listing Database Systems.

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

  • Run the UpdateDbSystem operation with the networkDetails attribute to update the network security group of the database system.