[Pulp-list] How to get detailed info for repos via api calls

Cristian Falcas cristi.falcas at gmail.com
Fri Jun 19 08:35:35 UTC 2015


Hi,

I found that I have to retrieve
"/pulp/api/v2/repositories/<repo_id>/distributors/" for this.

It also works if I retrieve "
/pulp/api/v2/repositories/<repo_id>/?details=1"


Cristian,


On Fri, Jun 19, 2015 at 11:25 AM, Cristian Falcas <cristi.falcas at gmail.com>
wrote:

> Hello,
>
> I'm trying to get detailed information about repositories via api, but I
> can't find how to do it.
>
> A normal call returns this:
>
> ["scratchpad", {"checksum_type"=>"sha256"}]
> ["display_name", "scl_ruby193_el6"]
> ["description", nil]
> ["last_unit_added", "2015-05-30T02:40:08Z"]
> ["notes", {"_repo-type"=>"rpm-repo"}]
> ["last_unit_removed", nil]
> ["content_unit_counts", {"srpm"=>64, "rpm"=>146}]
> ["_ns", "repos"]
> ["_id", {"$oid"=>"5568841e7fdc0c13fae3a491"}]
> ["id", "scl_ruby193_el6"]
> ["_href", "/pulp/api/v2/repositories/scl_ruby193_el6/"]
>
>
> I would also like to retrieve stuff like feed, verify_feed_ssl,
> remove_missing and other attributes.
>
> Best regards,
> Cristian Falcas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20150619/d67f842a/attachment.htm>


More information about the Pulp-list mailing list