You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"error": {
"category": "FRAMEWORK",
"messages": [
{
"description": "The group should have atleast one object reference or a literal as override is not enabled."
}
],
"severity": "ERROR"
}
}
s
The text was updated successfully, but these errors were encountered:
I am trying to add an FMC NetworkGroup object using ansible and got error message above "The group should have atleast one object reference or a literal as override is not enabled".
It looks like we need to add at least one host object to this network group object while creating it.
Anyone knows how to do that in ansible ?
Here is the ansible code I am using
- name: POST to create group object "objects_networkgroups_s1""
ansible.builtin.uri:
url: "https://{{server_ip}}/api/fmc_config/v1/domain/sdfgc-edfd-dddd-4444-sksksksksksks/object/networkgroups"
method: POST
headers:
"X-auth-access-token": "{{ auth_access_token }}"
Connection: keepalive
body: {
name: "{{ objects_networkgroups_s1 }}",
type: "{{ object_type }}",
#value: "{{ objects_list_inside_ip_s1 }}",
description: "{{ objects_networkgroups_s1 + ' added via API by Ansible' }}"
}
body_format: json
return_content: yes
status_code: 201
register: added_objects_networkgroups_s1
vars:
object_type: "NetworkGroup"
- name: Print all GET results from creation of Network group object added_objects_networkgroups_s1
ansible.builtin.debug:
msg: "{{ added_objects_networkgroups_s1 }}"
{
"error": {
"category": "FRAMEWORK",
"messages": [
{
"description": "The group should have atleast one object reference or a literal as override is not enabled."
}
],
"severity": "ERROR"
}
}
s
The text was updated successfully, but these errors were encountered: