Project

General

Profile

Actions

Feature #9977

closed

Unable to pull Facts via the API

Added by Jacob Hammack about 9 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,

I am a RHSS customer working on a integration project and I am trying to pull the "facts" for a system that is being managed.

I am able to pull the facts for a host in /api/v2/hosts/id/facts but I am unable to get the same info(mostly IP address) for systems in /katello/api/v2/systems/id/.

The information can be seen in the RHSS6 gui, but from what I can tell it is pulled directly from the Postgres database.

Am I missing where to get this information? Is there anyway to expose a new api call for GET /katello/api/v2/systems/id/facts? I see that a PUT one exists.

Thank you,
Jacob

Actions #1

Updated by Eric Helms about 9 years ago

  • Triaged changed from No to Yes

Howdy,

If you grab the content host object from the API /katello/api/v2/systems/:id?fields=full you should find the facts contained within the response object. We are working on unifying hosts and content hosts that should result in a single facts object with a dedicated facts API as the one you have seen for hosts. If both of these satisfy your need then I'll move this issue to 'Rejected'; otherwise let us know and we can see about adding a content host facts API to fill in the gap.

Actions #2

Updated by Eric Helms about 9 years ago

  • Status changed from New to Need more information
Actions #3

Updated by Jacob Hammack about 9 years ago

Sorry for the delay. This has solved my problem for the time being. Thank you very much. I didn't see this in the RHSS6 API guide, not sure if yall have the power to update that or not.

Thank you very much!

Actions #4

Updated by Eric Helms about 9 years ago

  • Status changed from Need more information to Rejected
Actions #5

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release set to 166
Actions

Also available in: Atom PDF