NetApp ONTAP NAS icon

NetApp ONTAP NAS

Manage NetApp ONTAP CIFS shares, NFS exports, and NAS protocols

Actions27

CIFS Session → Delete

AI-generated

Summary

Disconnect a specific CIFS session on a NetApp ONTAP cluster by its Session ID and Connection ID within a given Storage Virtual Machine (SVM).

Inputs

  • Cluster Host (required) — Hostname or IP of the ONTAP cluster management LIF to connect to.
  • Port — HTTPS port for ONTAP REST API, defaults to 443.
  • SVM (required) — Name of the Storage Virtual Machine (SVM) where the CIFS session exists.
  • Session ID (required) — Identifier of the CIFS session to disconnect.
  • Connection ID (required) — Identifier of the connection within the CIFS session to disconnect.
  • Options — Optional parameters including a comma-separated list of fields to include in the response.

Output shape

a JSON object confirming success with deleted session and connection IDs or containing job info if asynchronous

The operation performs a DELETE request to the ONTAP API to disconnect the CIFS session connection. If the API returns a job for async processing, it waits for completion and includes job details in the output. Otherwise, it returns a success confirmation with the deleted session/connection. Errors are thrown if the session or SVM is not found.

Examples

Example 1: Disconnect a CIFS session connection

Provide the Cluster Host, optionally Port (defaults to 443), specify the SVM by name, and supply the Session ID and Connection ID to disconnect. Optionally specify fields to include in the response.

Links

Discussion