NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

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

Sambasiva
3,989 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
3,835 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
3,841 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
3,836 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