Actions36
- FC Interface Actions
- FCP Service Actions
- Igroup Actions
- iSCSI Service Actions
- LUN Actions
- LUN Map Actions
LUN → Get Many
AI-generatedSummary
Retrieve multiple LUN (Logical Unit Number) records from a NetApp ONTAP SAN cluster with optional filtering, field selection, and result limits.
Inputs
- Cluster Host (required) — The hostname or IP address of the ONTAP cluster management LIF to which API requests are sent.
- Port — HTTPS port number for the ONTAP REST API (default is 443).
- Filters — Configure API filter expression (e.g., 'type=rw,state=!offline') to limit returned LUNs; choose to return all results or limit the number returned.
- Options — Specify a comma-separated list of fields to include in the output for each LUN, or use '*' to fetch all fields.
Output shape
a list of LUN objects retrieved from the ONTAP cluster.
Output includes all LUN records matching the specified filters. Pagination is supported internally to retrieve all records if 'Return All' is true; otherwise, the maximum number of results is limited by the 'Limit' parameter. The response format matches the ONTAP REST API LUN resource representation. Errors occurring during the API call will be returned as error messages within the workflow if 'Continue On Fail' is enabled.
Examples
Example 1: Get all LUNs on the cluster
Set 'Return All' to true to retrieve the full list of LUNs.
Example 2: Get a limited number of LUNs, filtered by type
Set 'API Filters' to filter (e.g., 'type=rw') and 'Return All' to false with 'Limit' to desired count.