Project

General

Profile

Actions

Bug #10816

closed

API v2 does not return facts

Added by Virgil Chereches about 9 years ago. Updated about 9 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After upgrading to API v2 we have the following problem: the API does not return facts anymore. The v1 API calls are still working, anyway.

Example v2 query:
curl -sk "https://admin:password@foreman/api/fact_values?search=host+%3D+node58.dev+and+fact+%3D+state" {
"total": 0,
"subtotal": 0,
"page": 1,
"per_page": 100,
"search": "host = node58.dev and fact = state",
"sort": {
"by": null,
"order": null
},
"results": {}
}

Example v1 query:
curl -sk "https://admin:password@foreman/api/fact_values?search=host+%3D+node58.dev+and+fact+%3D+state" {"node58.dev":{"state":"selected"}}

No error in production log whatsoever.

Please advise


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #9793: querying /api/v2/fact_values with a user with view rights doesn't workClosedDaniel Lobato Garcia03/17/2015Actions
Actions

Also available in: Atom PDF