Active IQ Unified Manager Discussions

OCI REST Get volumes assigned to host

INGO_REPINZ
3,746 Views

Hello,

 

I have a little project going on, where I would like to get the volumes that are masked and zonened to a host.

 

Has anyone an idea or blueprint that I can reuse?

 

At the moment I don't see any way that would indicate a possible solution, how to connect a hoat to its volumes.

 

In addition I would like to do the same with the NFS/CIFS-Shares

 

 

Thanks

Ingo

cheers Ingo
1 REPLY 1

hoffman
3,735 Views

Hi there,

 

You should be able to use this:

 

https://<server_ip>/rest/v1/assets/hosts/<id>?expand=storageResources

 

That will give you all volumes that a particular host can access (ie the appropriate masking and zoning are in place).

 

Regards,

Bryan

Public