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