Updating the Network Security Group of a Database System

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

For more information, see Network Security Groups.
    1. Open the navigation menu and click Databases. Under PostgreSQL, click DB Systems.
    2. (Optional) In the List scope section, under Compartment, select a compartment.
    3. Click the name of the database system that you want to edit.
    4. On the database system details page, in the Network configuration section, select Edit next to NSGs.
    5. In the Edit network security groups panel, select the network security group or network security groups for the database system. Add or remove NSGs as needed.
    6. 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 <database_OCID> --network-details <network_details_json> [OPTIONS]

    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.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.