ONTAP Rest API Discussions

RestApi storage/volumes doesn't show all volumes.

rendbruin
3,865 Views

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
3,840 Views

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
3,831 Views

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
3,688 Views

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
3,436 Views

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
3,375 Views

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

Public