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

In listing all volumes, online filter not working

neha_T

operations i perform:

            vol_url = baseurl + "ontap/volumes/"

            params = { "state": "online" }

            list_volumes = self.get(vol_url, params).json()

 

but in list_volumes i am getting offline volume also...

is there something i am missing ??

1 REPLY 1

AkashShukla

The query shoule be similar to 

 

URL : base-url/ontap/volumes?state=online

 

The URL should be modified to do the filter-ing (Instead of the GET parameters).

 

Changes to be done in above code:

 

vol_url = baseurl + "ontap/volumes/"

vol_url += "?state=online"

list_volumes = self.get(vol_url).json()

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