Project

General

Profile

Actions

Bug #20364

closed

Inclusion of 'hostgroups' in compliance policy API request

Added by Himanshu Prakash almost 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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?

Actions #1

Updated by Himanshu Prakash almost 7 years ago

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?

Actions #2

Updated by Anonymous over 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Daniel Lobato Garcia over 6 years ago

  • Project changed from Foreman to OpenSCAP
  • Triaged set to Yes
Actions #4

Updated by Marek Hulán over 6 years ago

  • translation missing: en.field_release set to 274
Actions

Also available in: Atom PDF