Discussion:
[rhn-satellite-users] Satellite 6 API call for content hosts
Erinn Looney-Triggs
2016-02-15 20:58:09 UTC
Permalink
So I am trying to search out content hosts via the satellite API. It
appears that every entrypoint related to this has been marked
deprecated, and it further appears to me, that there is no replacement.

So not wanting to build something against a deprecated API what should
one do?

I am getting this info via the apidoc, satellite version is 6.1.6, most
of the useful calls for me are located under 'Systems' and as mentioned
most of those are deprecated.

Further making one of those calls against an org that has ~600 hosts,
leads to a timeout, it looks like this is covered here:
https://bugzilla.redhat.com/show_bug.cgi?id=1111574 but hasn't been
updated in a while. 600 hosts would seem to me to not be a huge number,
and this is set as a high severity bug. Anyone have any other info on
how this is going?

Thanks for any info,
-Erinn
Rich Jerrido
2016-02-16 12:56:17 UTC
Permalink
Post by Erinn Looney-Triggs
So I am trying to search out content hosts via the satellite API. It
appears that every entrypoint related to this has been marked
deprecated, and it further appears to me, that there is no replacement.
So not wanting to build something against a deprecated API what should
one do?
Use /katello/api/systems for now & /api/v2/hosts later.
Post by Erinn Looney-Triggs
I am getting this info via the apidoc, satellite version is 6.1.6, most
of the useful calls for me are located under 'Systems' and as mentioned
most of those are deprecated.
See [1]
Post by Erinn Looney-Triggs
Further making one of those calls against an org that has ~600 hosts,
https://bugzilla.redhat.com/show_bug.cgi?id=1111574 but hasn't been
updated in a while. 600 hosts would seem to me to not be a huge number,
and this is set as a high severity bug. Anyone have any other info on
how this is going?
It is generally considered good practice to limit the size of API calls
(such to limit the amount of data returned). Use the ?page & ?per_page
options to paginate your results.
Post by Erinn Looney-Triggs
Thanks for any info,
-Erinn
--
rhn-satellite-users mailing list
https://www.redhat.com/mailman/listinfo/rhn-satellite-users
[1] - https://access.redhat.com/discussions/2122651#comment-1010811
--
Rich Jerrido, RHC{E,{D,S}S,{V,S,}A}
Technical Marketing Manager, Red Hat Satellite
+1.484.366.1239 • ***@redhat.com • @SideAngleSide
Erinn Looney-Triggs
2016-02-16 16:53:12 UTC
Permalink
Thanks for the info, I really appreciate it.

-Erinn
Post by Rich Jerrido
Post by Erinn Looney-Triggs
So I am trying to search out content hosts via the satellite API. It
appears that every entrypoint related to this has been marked
deprecated, and it further appears to me, that there is no replacement.
So not wanting to build something against a deprecated API what should
one do?
Use /katello/api/systems for now & /api/v2/hosts later.
Post by Erinn Looney-Triggs
I am getting this info via the apidoc, satellite version is 6.1.6, most
of the useful calls for me are located under 'Systems' and as mentioned
most of those are deprecated.
See [1]
Post by Erinn Looney-Triggs
Further making one of those calls against an org that has ~600 hosts,
https://bugzilla.redhat.com/show_bug.cgi?id=1111574 but hasn't been
updated in a while. 600 hosts would seem to me to not be a huge number,
and this is set as a high severity bug. Anyone have any other info on
how this is going?
It is generally considered good practice to limit the size of API calls
(such to limit the amount of data returned). Use the ?page & ?per_page
options to paginate your results.
Post by Erinn Looney-Triggs
Thanks for any info,
-Erinn
--
rhn-satellite-users mailing list
https://www.redhat.com/mailman/listinfo/rhn-satellite-users
[1] - https://access.redhat.com/discussions/2122651#comment-1010811
Rich Jerrido
2016-02-18 17:28:41 UTC
Permalink
Post by Rich Jerrido
Post by Erinn Looney-Triggs
So I am trying to search out content hosts via the satellite API. It
appears that every entrypoint related to this has been marked
deprecated, and it further appears to me, that there is no replacement.
So not wanting to build something against a deprecated API what should
one do?
Use /katello/api/systems for now & /api/v2/hosts later.
Post by Erinn Looney-Triggs
I am getting this info via the apidoc, satellite version is 6.1.6, most
of the useful calls for me are located under 'Systems' and as mentioned
most of those are deprecated.
See [1]
Post by Erinn Looney-Triggs
Further making one of those calls against an org that has ~600 hosts,
https://bugzilla.redhat.com/show_bug.cgi?id=1111574 but hasn't been
updated in a while. 600 hosts would seem to me to not be a huge number,
and this is set as a high severity bug. Anyone have any other info on
how this is going?
It is generally considered good practice to limit the size of API calls
(such to limit the amount of data returned). Use the ?page & ?per_page
options to paginate your results.
Not for nothing on this, but you may want to talk with the doc folks and
have them add info on page and per_page as well as code in the examples,
as of now I can see it in the apidoc but nowhere else.
I filed [1] for on your behalf
Post by Rich Jerrido
Post by Erinn Looney-Triggs
Thanks for any info,
-Erinn
--
rhn-satellite-users mailing list
https://www.redhat.com/mailman/listinfo/rhn-satellite-users
[1] - https://access.redhat.com/discussions/2122651#comment-1010811
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1309791
--
Rich Jerrido, RHC{E,{D,S}S,{V,S,}A}
Technical Marketing Manager, Red Hat Satellite
+1.484.366.1239 • ***@redhat.com • @SideAngleSide
Continue reading on narkive:
Loading...