Software Development Kit (SDK) and API Discussions

What is the difference between runner.run(request) and runner.list(request)?

lb98

I can get List of VserverInfo in these two ways:

 

1)  VserverGetIterRequest vServerListReq = new VserverGetIterRequest();
      List<VserverInfo> vServers = runner.list(vServerListReq);

 

2)

VserverGetIterRequest vServerListReq = new VserverGetIterRequest();
VserverGetIterResponse vServerListResp = runner.run(vServerListReq);

List<VserverInfo> vServers = vServerListResp.getAttributesList();

 

Are they equivalent? Which one is better besides that first way saves one line of code?

Thanks!

0 REPLIES 0
Announcements
Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

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
Public