<div dir="auto"><div dir="ltr">So I have been working with this set of API calls and not sure I am going down the right path here.<div><br></div><div>First, I called the regenerate_applicability API call with the following request</div><div><br></div><div><div>{</div><div>  "consumer_criteria": {</div><div>    "sort": [</div><div>      [</div><div>        "id",</div><div>        "ascending"</div><div>      ]</div><div>    ]</div><div>  },</div><div>  "repo_criteria": {</div><div>    "filters": {</div><div>      "id": {</div><div>        "$in": [</div><div>          "x86_64-os-centos7",</div><div>          "x86_64-updates-centos7"</div><div>        ]</div><div>      }</div><div>    }</div><div>  }</div><div>}</div></div><div><br></div><div><br></div><div>My understanding is that this would essentially generate a map of all RPMs from the specified repo that are installed on all consumers (since I didn't filter).</div><div><br></div><div>From there I made a call to applicability with the following request</div><div><br></div><div><div>{</div><div>  "units": {</div><div>    "rpm": [</div><div>      {</div><div>        "filename": "influxdb-1.0.0_beta2-1.x86_<wbr>64"</div><div>      }</div><div>    ]</div><div>  },</div><div>  "criteria": {</div><div>    "sort": [</div><div>      [</div><div>        "id",</div><div>        "ascending"</div><div>      ]</div><div>    ]</div><div>  }</div><div>}</div></div><div><br></div><div><br></div><div>Figuring that it would just return to me the consumer(s) that had that RPM installed. It did not. It appeared to return to me all the consumers and list all the applicable RPMs (based on ID).</div><div dir="auto"><br></div><div dir="auto">Apparently I am using these API calls incorrectly. </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 at 12:21 PM, Dennis Kliban <span dir="ltr"><<a href="mailto:dkliban@redhat.com" target="_blank">dkliban@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The docs for applicability calculations can be found here[0].<br>
<br>
<br>
[0] <a href="http://docs.pulpproject.org/dev-guide/integration/rest-api/consumer/applicability.html" rel="noreferrer" target="_blank">http://docs.pulpproject.org/de<wbr>v-guide/integration/rest-api/<wbr>consumer/applicability.html</a><br>
<div><div class="m_-2105733575013210963h5"><br>
----- Original Message -----<br>
> How do you list errata applicable to a consumer?<br>
><br>
> <a href="https://www.fedorahosted.org/pulp/wiki/Errata" rel="noreferrer" target="_blank">https://www.fedorahosted.org/p<wbr>ulp/wiki/Errata</a><br>
><br>
> Which is older documentation is no longer valid as pulp-admin doesn't have an<br>
> errata sub-command.<br>
><br>
> I am running 2.10, have the consumer register and bound to a repository that<br>
> has errata. Would like to be able to query by errata all systems that are<br>
> affected.<br>
><br>
> Thanks<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Pulp-list mailing list<br>
> <a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/pulp-list</a><br>
</blockquote></div><br></div>