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.
- Open the navigation menu and click Storage. Under File Storage, click Mount Targets.
- In the List scope section, under Compartment, select a compartment.
- Click the name of the mount target that you're interested in.
- On the mount target's details page, in the Mount Target information tab, click the Edit link next to Network Security Groups.
- Select a NSG from the list. Click Change compartment to choose the NSG from another compartment.
- (Optional) Click +Another Network Security Group to add more NSGs.
- Click 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 flags and variable options for CLI commands, see the Command Line 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.