<div dir="ltr"><div>We should probably expose the ID field in the REST API. <br><br>CLI should convert a resource type and UUID into a URL. CLI users should be able to specify a UUID when referencing a resource.<br><br></div>The REST API only cares about the relative path after the hostname[0]. Katello can store either the full URL or just the relative path. We should provide some documentation for REST API users to suggest that resources should be compared without the protocol, hostname, or port. <br><br><br>[0] <a href="https://pulp.plan.io/issues/3024">https://pulp.plan.io/issues/3024</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 12:32 PM, David Davis <span dir="ltr"><<a href="mailto:daviddavis@redhat.com" target="_blank">daviddavis@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I’ve been working on and discussing an issue with @asmacdo about filtering by id [0] and it’s brought up some questions about how repos, importers, etc should be identified in Pulp 3. I think currently we uniquely identify object’s by their href field since names are mutable. The main questions are: how should things like Katello store ids for objects like repos? Moreover, what identifier would a user use to look up an object in the CLI—would they pass the object’s href?<div><div><br></div><div>I imagine right now that Katello would store an object’s href since we don’t expose object’s ids. But what if the hostname changes or Pulp switches from http to https. Then the object's identifier would change.</div><div><br></div><div>Similarly, as a CLI user, what could I use to uniquely identify say a repo? Supplying the object’s href seems a bit strange I guess since you wouldn’t expect hyperlinks in a command line interface. Would CLI users deal with names? Those can change though which would be bad for setting up things like cron jobs using the CLI.</div><div><br></div><div>Any thoughts?</div><div><div><br></div><div>[0] <a href="https://pulp.plan.io/issues/3240" target="_blank">https://pulp.plan.io/<wbr>issues/3240</a><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_4983719916516963976gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>David<br></div></div></div></div></div></div></div></div>
</font></span></div></div></div></div>
<br>______________________________<wbr>_________________<br>
Pulp-dev mailing list<br>
<a href="mailto:Pulp-dev@redhat.com">Pulp-dev@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-dev" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/pulp-dev</a><br>
<br></blockquote></div><br></div>