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 Cluster-Mode, 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 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 Data ONTAP Cluster-Mode. 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 Cluster-Mode. 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 C-Mode APIs can be executed if they are sent through a cluster-management LIF to a Node Vserver
A logical interface (LIF) is an IP address with associated characteristics, such as a home port, a list of ports for failover, a firewall policy, a routing group. Logical interface is also known as virtual interface. For more information, see Data ONTAP documentation.
Each logical interface has a role associated with it and must be assigned to the correct type of network port. A logical interface can have any one of the following four roles: node-management, cluster-management, cluster, or data.
A node-management logical interfaceprovides a dedicated IP address for managing a particular node and is created at the time when a cluster is created or added to the cluster. Node-management logical interfaces can be configured on either node-management ports or data ports.
A cluster-management logical interface provides a single management interface for the entire cluster. Cluster-management logical interfaces can be configured only on data ports.
A cluster logical interface is used for intracluster traffic. Cluster logical interfaces can be configured only on cluster ports.
A data logical interface is used for communicating with clients. Data logical interfaces can be configured only on data ports.
In Data ONTAP C-Mode, a virtual server provides network access through unique network addresses, serves data out of a distinct namespace, and administered separately from the rest of the cluster. There are three types of Vservers: admin, data, and node. However, Vserver usually refers to data Vserver unless there is a specific need to identify different types of Vservers.
A Vserver that has overall administrative access to all objects in the cluster, including the objects owned by other Vservers is an Admin Vserver. It does not provide data access to clients or hosts.
A Vserver that is restricted to operation in a single node of the cluster at any one time, and provides administrative access to some objects owned by that node. It does not provide data access to clients or hosts.
A virtual server that facilitates data access from the cluster; the hardware and storage resources of the cluster are dynamically shared by data Vservers within a cluster. Also known as a cluster Vserver.
|
|
To view information about role-based access on Data ONTAP C-Mode, see the Data ONTAP Cluster-Mode System Administration Guide. |
Cluster APIs are used to access and manage NetApp storage systems that exist in a cluster.
Vserver APIs are usesd to access Vservers and the Vserver-owned objects, such as volumes and protocol services.
Related Topics
Data ONTAP 8.1 Cluster-Mode System
Administration Guide