Closed z27alaga closed 1 year ago
Add config_group_ids à foreman_hostgroup (Ressource and data)
Example with the creation of a resource: { "location_id":13, "organization_id":88, "id":684, "hostgroup":{ "name":"TestHostgroup", "environment_id" : 3, "config_group_ids" :[ 1 ] } }
Ressource https://apidocs.theforeman.org/foreman/2.5/apidoc/v2/hostgroups/create.html https://apidocs.theforeman.org/foreman/2.0/apidoc/v2/hostgroups/update.html https://apidocs.theforeman.org/foreman/2.5/apidoc/v2/hostgroups/destroy.html
Data https://apidocs.theforeman.org/foreman/2.5/apidoc/v2/hostgroups/show.html
Add config_group_ids à foreman_hostgroup (Ressource and data)
Example with the creation of a resource: { "location_id":13, "organization_id":88, "id":684, "hostgroup":{ "name":"TestHostgroup", "environment_id" : 3, "config_group_ids" :[ 1 ] } }
Ressource https://apidocs.theforeman.org/foreman/2.5/apidoc/v2/hostgroups/create.html https://apidocs.theforeman.org/foreman/2.0/apidoc/v2/hostgroups/update.html https://apidocs.theforeman.org/foreman/2.5/apidoc/v2/hostgroups/destroy.html
Data https://apidocs.theforeman.org/foreman/2.5/apidoc/v2/hostgroups/show.html