Bug #20364
closed
Inclusion of 'hostgroups' in compliance policy API request
Added by Himanshu Prakash over 7 years ago.
Updated over 6 years ago.
Description
$ curl -X GET -s -k -u admin:system https://sat6.lab.ltsai.com/api/v2/compliance/policies/1 | python -mjson.tool
{
"created_at": "2017-07-09 16:05:57 UTC",
"cron_line": "",
"day_of_month": 1,
"description": "",
"id": 1,
"name": "rhel7",
"period": "weekly",
"scap_content_id": 4,
"scap_content_profile_id": 23,
"updated_at": "2017-07-09 16:05:57 UTC",
"weekday": "sunday”
}
This doesn’t return the associated host groups so I can find which policies this host is on?
Himanshu Prakash wrote:
$ curl -X GET -s -k -u admin:system https://<satellite-fqdn>/api/v2/compliance/policies/1 | python -mjson.tool
{
"created_at": "2017-07-09 16:05:57 UTC",
"cron_line": "",
"day_of_month": 1,
"description": "",
"id": 1,
"name": "rhel7",
"period": "weekly",
"scap_content_id": 4,
"scap_content_profile_id": 23,
"updated_at": "2017-07-09 16:05:57 UTC",
"weekday": "sunday”
}
This doesn’t return the associated host groups so I can find which policies this host is on?
- Status changed from New to Closed
- % Done changed from 0 to 100
- Project changed from Foreman to OpenSCAP
- Triaged set to Yes
- Translation missing: en.field_release set to 274
Also available in: Atom
PDF