The Data ONTAP APIs are used to retrieve information about various NetApp storage system features, such as qtrees, quotas, volumes, LUNs, Snapshot, SnapMirror, and so on.
The following list describes sample codes that demonstrate the use of Data ONTAP APIs. The list also provides links to view those codes.
|
|
|
Sample code in five languages |
||||
|
Name |
Description |
C |
Perl |
Java |
C# |
VB.NET |
|
FlexClone |
This sample code demonstrates how to create a clone for a flexible volume. It estimates the size, splits the clone, and shows the status. |
flexclone.c |
flexclone.pl |
flextest.java |
- |
- |
|
Quota listing |
This sample code demonstrates how to list the quota available on a storage system. |
quotalist.c |
quotalist.pl |
quotalist.java |
- |
- |
|
Snapshot |
This sample code shows how to manage Snapshot copies. It demonstrates how to make a Snapshot copy, rename it, and delete it. The sample code also demonstrates how to get Snapshot copy lists and schedules. |
snapman.c |
snapman.pl |
- |
snapman.cs |
snapman.vb |
|
SNMP |
This sample code describes how to use the SNMP API. The following actions are performed with this sample code:
|
snmp.c |
snmp.pl |
snmp.java |
- |
- |
|
Consistency Group |
This sample code shows how to manage a consistency group (that is how to start and commit a consistency group). |
cg_operation.c |
cg_operation.pl |
- |
- |
- |
|
Volume List |
This sample code lists volumes that are available on a storage system. |
Vollist.c |
print_volume.pl |
vollist.java |
vollist.cs |
vollist.vb |
|
MAC address List |
This sample code shows a list of IP addresses and the corresponding MAC addresses. |
getmac.c |
- |
- |
- |
- |
|
Option List |
This sample code shows a list of the options and demonstrates the use of the following functions:
|
optmgmt.c |
optmgmt.pl |
optmgmt.java |
optmgmt.cs |
optmgmt.vb |
|
SnapVault |
This sample code shows the management of SnapVault. It demonstrates the use of following operations:
|
snapvault.c |
snapvault.pl |
snapvault.java |
|
|
|
SnapMirror |
This code demonstrates the management of SnapMirror operations. |
sm.cpp |
snapmirror.pl |
snapmirror.java |
|
|
|
Symlink |
This is a sample code for symbolic links from Windows. It demonstrates the use of the following functions:
|
symlink.c |
- |
- |
|
- |
|
Volume Monitor |
This sample code shows how to monitor a volume on a storage system. |
- |
monitor_volume.pl |
- |
|
- |
|
qtree |
This sample code creates a qtree on a specified volume and adds a quota entry. |
- |
qtree_quota.pl |
- |
|
- |
|
vFiler |
This sample code demonstrates how to create, destroy, and list vFiler units on the storage system. |
vfiler.c |
vfiler.pl |
vfiler.java |
|
|
|
vFiler Tunnelling |
This sample code demonstrates how to invoke Data ONTAP APIs on a vFiler through the physical storage system. |
vfiler_tunnel.c |
vfiler_tunnel.pl |
vfiler_tunnel.java |
vfiler_tunnel.cs |
vfiler_tunnel.vb |
|
Unified Capacity Management |
This sample code demonstrates the usage of Data ONTAP APIs for capacity management of NetApp storage systems. It demonstrates the following:
|
unified_capacity_mgmt.c |
unified_capacity_mgmt.pl |
- |
- |
- |
|
User administration |
This sample code demonstrates how to add, modify. and list the user administration capabilities using Data ONTAP APIs It demonstrates the following:
|
useradmin.c |
- |
- |
- |
- |
|
Performance Operation |
This sample code demonstrates the use of some of the perf family APIs. The sample code lists the system-wide performance objects, lists the counters for a given performance object, lists the object instances for a given object, and provides values for counters of a given performance object. |
perf_operation.c |
perf_operation.pl |
perf_operation.java |
perf_operation.cs |
perf_operation.vb |
|
NFS |
This sample code demonstrates the use of some of the NFS family API. The sample code enables you to start, stop, and query the status of the NFS service. It also lists the current NFS export rules. |
nfs.c |
nfs.pl |
nfs.java |
nfs.cs |
nfs.vb |
|
File SnapLock |
This sample code demonstrates how to get the retention time and how to set the retention for SnapLock files. |
file_snaplock.c |
file_snaplock.pl |
file_snaplock.java |
- |
- |
|
SAN Management |
This sample code demonstrates the following:
|
san_mgmt.c |
san_mgmt.pl |
- |
- |
- |