# Sample Codes

Core APIs are used to make API calls to a NetApp storage system, a DataFabric Manager server, or an IBM N series system.

The Core API sample codes demonstrate setting up the network connections, server style, and transport type, invoking commands to the server, and retrieving data. The following list describes different sample codes, and provides the links to view those codes.

|  | Sample code in six languages
Name | Description | C | Perl | Java | C# | VB.NET | PowerShell | Python | Ruby
Connecting to the NetApp storage system | This sample code demonstrates the following: Connecting to the NetApp storage system Setting the connection style Providing login credentials Invoking a simple API and retrieving the result returned from the API | hello_ontapi.c view | hello_ontapi.pl view | hello_ontapi.java view | hello_ontapi.cs view | hello_ontapi.vb view | hello_ontapi.ps1 view | hello_ontapi.py view | hello_ontapi.rb view
Using encryption | The sample code demonstrates usage of data encryption using the core API. | encrypt_string.c view | encrypt_string.pl view | - | encrypt_string.cs view | encrypt_string.vb view | encrypt_string.ps1 view | - | -
SnapVault | This sample code shows the management of SnapVault. It demonstrates the use of following operations: createSnapshot—creates Snapshot copies. relationshipStatus—gets the SnapVault relationship status scheduleList—lists configured Snapshot schedules | snapvault.c view | snapvault.pl view | snapvault.java view | - | - | - | snapvault.py view | snapvault.rb view