Actions27
CIFS Share → Create
AI-generatedSummary
Create a new CIFS (SMB) share on a specified Storage Virtual Machine (SVM) within a NetApp ONTAP cluster.
Inputs
- Cluster Host (required) — The hostname or IP address of the ONTAP cluster management LIF.
- Port — HTTPS port for the ONTAP REST API, defaults to 443.
- Share Name (required) — Name for the new CIFS share to be created.
- SVM (required) — The Storage Virtual Machine (SVM) by name under which the share will be created.
- Path (required) — The file system path to be shared through CIFS.
- Additional Options — Optional CIFS share properties such as comment, continuously available flag, encryption requirement, namespace caching, offline files mode, oplocks usage, and Unix symlink behavior.
Output shape
a JSON object representing the created CIFS share or the completed asynchronous job information if creation runs as a job
If the creation triggers an asynchronous job, the node polls the job until completion and returns the job details alongside the original response. Otherwise, it returns the share creation response directly.
Examples
Example 1: Create a CIFS share named 'Documents' on SVM 'svm1' sharing path '/vol1/documents', setting a comment and enabling oplocks.
Set 'newShareName' to 'Documents', 'newShareSvm' to 'svm1', 'sharePath' to '/vol1/documents', and under 'Additional Options', set 'comment' to a descriptive string and 'oplocks' to true.