HPE OneView
1753776 Members
7035 Online
108799 Solutions
New Discussion

How do I filter hardware compliance based on a specific SPP baseline using restAPI

 
AmitG0223
Advisor

How do I filter hardware compliance based on a specific SPP baseline using restAPI

As we add more and more SPP, we will want to run hardware compliance for a specific SPP version, I attempted to run curl command to filter/query and it always returns the entire hardware-compliance output

I tried a simple filter to pull 1 server, but it still returned all hardware.

curl -i -k -H "x-api-version: 2200" -H "auth: <session id>" https://myOneViewIP/rest/hardware-compliance?filter="uuid='30373237-3132-4d32-3235-323030583638spp_2020_09_2'"

1 REPLY 1
ksram
HPE Pro

Re: How do I filter hardware compliance based on a specific SPP baseline using restAPI

Hi,

Thank you for the Post.

And could you please try removing the SPP and see the observations.

I believe that it would still returns the entire Hardware.

Or let us know if there were any changes post removing the SPP

Thank you

RamKS


I work for HPE.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo