Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Software Development Kit (SDK) and API Discussions

Netapp sdk LunInfo object returns null for volume


I am able to connect to NetApp filer and get a list of LunInfo objects, but all LUN report null for volume. What am I missing? Here is code snippet:

LunListInfoRequest lunReq = new LunListInfoRequest();
LunListInfoResponse lunListInfoResp = runner.run(lunReq);
 for (LunInfo lun : lunListInfoResp.getLuns()) {
            System.out.println("Serial Number       : " + lun.getSerialNumber());
            System.out.println("Device Text Id      : " + lun.getDeviceTextId());
            System.out.println("Device Id           : " + lun.getDeviceId());
            System.out.println("Volume              : " + lun.getVolume());
            System.out.println("Uuid                : " + lun.getUuid());
            System.out.println("State               : " + lun.getState());
            System.out.println("Path                : " + lun.getPath());
            System.out.println("Size                : " + lun.getSize());
            System.out.println("Used                : " + lun.getSizeUsed());

Result: LUNs:
Serial Number : XXXXXXXXXX
Device Text Id : null
Device Id : null
Volume : null
Uuid : 4f316a95-5ac3-5555-ad9b-a197023fc43b
State : null
Path : /vol/netapp1/netapp1
Size : 15393162788864
Used : 2068916805632

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner