Updating the Network Security Group of a Database System
Change the network security group of an OCI Database with PostgreSQL database system.
- Open the navigation menu and click Databases. Under PostgreSQL, click DB Systems.
- (Optional) In the List scope section, under Compartment, select a compartment.
- Click the name of the database system that you want to edit.
- On the database system details page, in the Network configuration section, select Edit next to NSGs.
- 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.
- 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.