apitest
apitest is a command-line utility to test APIs. This utility is suitable for API users who are at the beginner's level. This utility is available in C, Java, Perl, C#, VB.NET, PowerShell in Windows, Python, and Ruby. In UNIX-like environments, apitest is available in C, Java, Perl, Python, and Ruby.
How to use the apitest utility:
apitest in C
For Windows, complete the following steps:
1.
2.
Open apitest.sln in Visual Studio 2013.
3.
4.
5.
6.
For a UNIX-like environment, complete the following steps:
1.
2.
3.
Run make to create the executable file.
apitest in Java
For Windows, complete the following steps:
1.
2.
3.
Run MAKE.BAT file to create the class file.
For a UNIX-like environment, complete the following steps:
1.
2.
3.
Run make to create the class file.
apitest in Perl
Complete the following steps:
1.
2.
3.
Run the perl apitest.pl command.
apitest in C#
Complete the following steps:
1.
2.
apitest in VB.NET
Complete the following steps:
1.
2.
apitest in PowerShell
Complete the following steps:
1.
2.
3.
Run the .\apitest.ps1 command.
apitest in Python
Complete the following steps:
1.
2.
3.
Run the python apitest.py command.
apitest in Ruby
Complete the following steps:
1.
2.
3.
Run the ruby apitest.rb command.
Command syntax
The command syntax is as follows:
apitest {options} <host> <user> <password> <API> [ <paramname> <arg> ...]
Following are the options of the apitest command:
•
•
•
To view more options for certificate-based authentication, see the following language-specific links:
•
•
•
•
•
•
•
The -v, -r, and -h options are not applicable for DataFabric Manager server.
The following are examples of the apitest command:
Sending an API query to a storage system running ONTAP
Sending an API query to a DataFabric Manager server
•
Parent topic: Utilities of the SDK

Was this topic helpful? Send comments to NetApp.