Subscribe

OCI REST Get volumes assigned to host

[ Edited ]

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

Re: OCI REST Get volumes assigned to host

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