ONTAP Rest API Discussions

RestApi storage/volumes doesn't show all volumes.

rendbruin

Hi all.

I'm struggling with a problem using the restapi storage/volumes, it doesn't retrieve all volume information!

I'm missing 1 volume flexgroup volume (size >200TB). 

At the start, after creating the volume, it was displayed correctly.

But after filling it with data it isn't anymore. Also qtree/quota information using the restapi cannot be retrieved from this volume. It is as the volume is invisible!

Using : https://cluster-mgmtIP/api/private/cli/volume does show the volume

Using: https://cluster-mgmtIP/api/storage/volumes/ does NOT show the volume

Anyone idea's what can be wrong ? Is it a setting or are the RestAPI not working correctly? Any help is appreciated.

 

Kind regards, René

5 REPLIES 5

VaniVully

Hi Rene,

 

Please share the response of https://cluster-mgmtIP/api/private/cli/volume request.

Is the volume either TEMP or DEL type?

 

Thanks,

Vani

rendbruin

Hello Vani 

 

What do you mean with DEL or TEMP volume type ?

 

The output is in the form of 

{
"records": [
{
"vserver": "vservername",
"volume": "volumename"
},
{.....

 

The volume I use shows up in this out, as all the other existing ones

I rather share not the original names, sorry for that

 

best René

 

VaniVully

I understand about not revealing the vserver and volume names.

Please rerun the request with "?fields=state%2Ctype"

 

The request must have "https://cluster-mgmtIP/api/private/cli/volume?fields=state%2Ctype"

The response will  be as below:


"records": [
{
"vserver": "vservername",
"volume": "volumename"

"state": "online",
"type": "rw"  <----------- Please check this value and share.
},
{.....

 

Temporary and deleted volumes are not reported in the https://cluster-mgmtIP/api/storage/volumes/  request.

Thanks

novomind

Hi @VaniVully ,

we have the same problem here, but state in cli is the same (online and rw).

Any more hints?

Best regards,

Elias

VaniVully

Hi Elias,

 

The online and RW volumes could be FlexGroup constituent volumes.  The field "constituent-role" would report as "root" or "member" if the volume lists is a FlexGroup constituent.  REST API does not report FlexGroup constituent volumes while the CLI passthrough does.

 

Please run the API "https://cluster-mgmtIP/api/private/cli/volume?fields=state%2Ctype%2Cconstituent-role"

 

Thanks,

Vani

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