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.

 

1 ACCEPTED SOLUTION

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

2 REPLIES 2

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

Public