Active IQ Unified Manager Discussions

Not able to get the storage pools based on name of the storagepool By using OCI API

Sambasiva

I am installed OCI  and configured for my netapp clusters. I want to get the storage pools based on name.

I am sending https://ociserverip/rest/v1/assets/storages/10/storagePools/?name="pool1". It's showing all the pools.

I tried with assets/storagePools, how ever this API expecting id of storage pool.

 

Could you please help me.

 

2 REPLIES 2

Re: Not able to get the storage pools based on name of the storagepool By using OCI API

hotz

Hi Sambasiva,

 

if you want to search by name, you would need a query, something like:

curl -k -u $myuser:$mypwd https://ociserverip/rest/v1/query\?objectType\=StoragePool\&expression\="pool1*"

 

Hope this helps.

Cheers, Gerhard

Re: Not able to get the storage pools based on name of the storagepool By using OCI API

Sambasiva

Thanks allot Hotz, I tried in this way: 

https://ociip/rest/v1/query?objectType=StoragePool&name="pool1" 

 

It's showing the pool details.

 

Could you please help me in this also: https://community.netapp.com/t5/Cloud-Insights/Need-help-in-finding-the-allocated-iops-for-storage-pool-using-OCI-API/td-p/151953

View solution in original post

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public