SDK Core APIs

Core APIs are used to make ONTAPI calls to a NetApp storage system or an IBM N-series.

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 five languages

Name

Description

C

Perl

Java

C#

VB.NET

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

Using the iterative API

This sample code demonstrates the usage of the iterative API.

snapvault.c

view

snapvault.pl

view

snapvault.java

view

-

-

Using encryption

The sample code demonstrates usage of data encryption using the core API.

encrypt_string.c

view

-

-

encrypt_string.cs

view

encrypt_string.vb

view