Iterative APIs allow you to operate on a large set of objects by dividing that set of objects into manageable sub-sets, repeatedly executing an API call.
To repeatedly call a Data ONTAP 7-Mode API, you can use *-iter-start, *-iter-next, and *-iter-end. In clustered environments, you can use a single API *-get-iter.
*-get-iter API supports queries, which can be used to return all objects that match the query. The objects are sorted alphabetically (default) in ascending order of the keys. It can be sorted numerically too.
Following are the input elements of an iterative API:
max-records—determines the maximum objects that can be sent as response, in a one API call.
Each iterative API, for an API category, has a set upper limit and a default value. This element is supported for all APIs that support queries.
tag— specifies a value used by the server to identify the next set of records to return.
If tag value is not specified, the server starts from the first record of the query result.
query—specifies the query and must be specified for each iteration of an API.
You can use wildcards and range in a query.
desired-attributes—specifies the number of elements that can be returned for each record.
This is an optional value. If it is not specified, elements, which contain values, are returned.
Following are the output elements of an iterative API:
next-tag—specifies the tag value passed to the tag input element in the next call to the same API.
num-records—specifies the total number of records returned for the API call.
attributes-list—specifies the actual list of records in the *-get-iter API call.
Data ONTAP 8.1 and later provides APIs for both cluster and non-cluster nodes. Data ONTAP 7G-like APIs are APIs for non-cluster environment for those storage systems that have upgraded from Data ONTAP 7-Mode to clustered Data ONTAP. Upon upgrade, the storage system retains 7-Mode functionality, such as the IP address, and the cluster nodes can be accessed by using Vserver tunneling mechanism.
You can find the list here.
The Data ONTAP 7-Mode APIs that do not create, modify, or delete a cluster object are called Data ONTAP White-list APIs. A user in a cluster environment can use these 7-Mode API by using Vserver tunneling.
You can find the list here.
The mechanism of accessing 7G-like APIs to a Vserver through a cluster-management interface is called Vserver tunneling. This is for storage systems that have been upgraded from Data ONTAP 7-Mode to clustered Data ONTAP. If you want to access such a system, you have to use the Data ONTAP 7G-like API set.
Data ONTAP responds to a tunneled API based on the tunnel destination, target interface and the API family, as described in the following cases:
Data ONTAP Vserver APIs can be executed if they are sent through a cluster-management LIF to an Admin Vserver.
Data ONTAP Vserver APIs can be executed if they are sent through a Vserver-management LIF to a Data Vserver.
Data ONTAP Vserver APIs can be executed if they are sent through a cluster-management LIF to a Data Vserver.
Data ONTAP clustered APIs can be executed if they are sent through a cluster-management LIF to a Node Vserver
|
To view information about role-based access on clustered Data ONTAP, see the System Administration Guide. |
Related Topics
Clustered Data ONTAP System Administration Guide: NetApp Support Site