Active IQ Unified Manager Discussions

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

Sambasiva
2,900 Views

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.

 

1 ACCEPTED SOLUTION

Sambasiva
2,746 Views

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

2 REPLIES 2

hotz
2,752 Views

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

Sambasiva
2,747 Views

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

Public