Adding a Mount Target to a Network Security Group
Add a File Storage mount target to one or more Network Security Groups (NSGs).
File Storage requires specific rules to be configured for NSGs that are associated with mount targets. For more information, see Configuring VCN Security Rules for File Storage.
- On the Mount Targets list page, select the mount target that you want to work with. If you need help finding the list page or the mount target, see Listing Mount Targets.
- On the details page, in the Mount Target information tab, select the Edit link next to Network Security Groups.
- Select an NSG from the list. Select Change compartment to choose the NSG from another compartment.
- (Optional) Select +Another Network Security Group to add more NSGs.
- Select Save changes.
Use the
fs mount-target update
command and the--nsg-ids
parameter to add a mount target to an NSG:oci fs mount-target update --mount-target-id <mount_target_OCID> --nsg-ids '["<nsg1_OCID>", "<nsg2_OCID>"]'
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateMountTarget operation and include the
nsgIds
parameter to add a mount target to an NSG.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.