Hello,
I'm using ansible to automate a lot of manual task, it works well for the moment but I'm not able to retrieve the information of rule name when I use cp_mgmt_group_facts (like whereused with smartdashboard), below the output of the json :
ok: [localhost] => {
"host_facts": {
"ansible_facts": {
"host": {
"color": "black",
"comments": "",
"domain": {
"domain-type": "domain",
"name": "SMC User",
"uid": "41e821a0-3720-11e3-aa6e-0800200c9fde"
},
"groups": [
{
"domain": {
"domain-type": "domain",
"name": "SMC User",
"uid": "41e821a0-3720-11e3-aa6e-0800200c9fde"
},
"name": "Demo",
"type": "group",
"uid": "8ab21516-39e7-4507-9312-636631d6c5de"
}
],
"icon": "Objects/host",
"interfaces": [],
"ipv4-address": "104.45.16.183",
"meta-info": {
"creation-time": {
"iso-8601": "2019-12-15T07:07+0100",
"posix": 1576390077465
},
"creator": "admin",
"last-modifier": "admin",
"last-modify-time": {
"iso-8601": "2019-12-15T07:07+0100",
"posix": 1576390077465
},
"lock": "unlocked",
"validation-state": "ok"
},
"name": "h-az-104.45.16.183",
"nat-settings": {
"auto-rule": false
},
"read-only": false,
"tags": [],
"type": "host",
"uid": "15e386c6-4ef3-4155-903d-579707171494"
}
},
"changed": false,
"failed": false
}
}
I test also with details_level : full
is there any simple way to retrieve this information without retrieving all the rule base and check on source and destination of each rule 😞
Regards