Managing file shares
You can use the /storage-provider/file-shares API to view, add, modify, and delete the CIFS and NFS file share volumes in your data center environment.
Before provisioning the file share volumes, ensure that the SVM has been created and provisioned with the supported protocols. If you are assigning Performance Service Levels (PSLs) or Storage Efficiency Policies (SEPs), while provisioning, the PSLs or SEPs should be created before creating the file shares.
View file shares
You can use the following method to view file share vulumes available in your Unified Manager environment. When you have added an ONTAP cluster as a datasource on Unified Manager for DM Series, the storage workloads for those clusters are automatically added to your Unified Manager instance. This API retrieves the file shares automatically and manually added to your Unified Manager instance. You can view the details of a specific file share by running this API with the file share key.
Category | HTTP verb | Path |
---|---|---|
storage-provider | GET | /storage-provider/file-shares /storage-provider/file-shares/{key} |
Add file shares
You can use the following method to add CIFS and NFS file shares in your SVM. You must enter the details of the file share that you want to create, as the input parameters. You cannot use this API for adding FlexGroup volumes.
Category | HTTP verb | Path |
---|---|---|
storage-provider | POST | /storage-provider/file-shares |
Creating data-protection volumes: When you add file shares to your SVM, the type of the volume that is mounted, by default, is rw (read-write). For creating data-protection (DP) volumes, specify dp as the value for the type parameter.
Delete file shares
You can use the following method to delete a specific file share. You need to enter the file share key as an input parameter to delete a particular file share.
Category | HTTP verb | Path |
---|---|---|
storage-provider | DELETE | /storage-provider/file-shares/{key} |
Modify file shares
You can use the following method to modify a file share and update its properties.
You need to provide the file share key to modify a particular file share. Additionally, you need to enter the property that you want to update, along with its value.
Category | HTTP verb | Path |
---|---|---|
storage-provider | PATCH | /storage-provider/file-shares/{key} |