mirror of https://github.com/ansible/ansible.git
FortiManager Plugin Module Conversion: fmgr_device_config (#52765)
* Auto Commit for: fmgr_device_config * autopep8 changes * Auto Commit for: fmgr_device_config * Auto Commit for: fmgr_device_configpull/53266/head
parent
785c567f72
commit
13517fe822
@ -1,173 +1,204 @@
|
|||||||
{
|
{
|
||||||
"update_device_interface": [
|
"update_device_interface": [
|
||||||
{
|
{
|
||||||
"raw_response": {
|
"raw_response": {
|
||||||
"status": {
|
"status": {
|
||||||
"message": "OK",
|
"message": "OK",
|
||||||
"code": 0
|
"code": 0
|
||||||
},
|
},
|
||||||
"url": "/pm/config/device/FGT1/global/system/interface/port2"
|
"url": "/pm/config/device/FGT1/global/system/interface/port2"
|
||||||
},
|
},
|
||||||
"paramgram_used": {
|
"datagram_sent": {
|
||||||
"adom": "ansible",
|
"ip": "10.1.1.1/24",
|
||||||
"install_config": "disable",
|
"allowaccess": [
|
||||||
"device_unique_name": "FGT1",
|
"ping",
|
||||||
"interface": "port2",
|
"telnet",
|
||||||
"device_hostname": null,
|
"https",
|
||||||
"interface_ip": "10.1.1.1/24",
|
"http"
|
||||||
"interface_allow_access": "ping, telnet, https, http"
|
]
|
||||||
},
|
},
|
||||||
"post_method": "update"
|
"paramgram_used": {
|
||||||
},
|
"adom": "ansible",
|
||||||
{
|
"install_config": "disable",
|
||||||
"raw_response": {
|
"device_unique_name": "FGT1",
|
||||||
"status": {
|
"interface": "port2",
|
||||||
"message": "OK",
|
"device_hostname": null,
|
||||||
"code": 0
|
"interface_ip": "10.1.1.1/24",
|
||||||
},
|
"interface_allow_access": "ping, telnet, https, http"
|
||||||
"url": "/pm/config/device/FGT2/global/system/interface/port2"
|
},
|
||||||
},
|
"post_method": "update"
|
||||||
"paramgram_used": {
|
},
|
||||||
"adom": "ansible",
|
{
|
||||||
"install_config": "disable",
|
"raw_response": {
|
||||||
"device_unique_name": "FGT2",
|
"status": {
|
||||||
"interface": "port2",
|
"message": "OK",
|
||||||
"device_hostname": null,
|
"code": 0
|
||||||
"interface_ip": "10.1.2.1/24",
|
},
|
||||||
"interface_allow_access": "ping, telnet, https, http"
|
"url": "/pm/config/device/FGT2/global/system/interface/port2"
|
||||||
},
|
},
|
||||||
"post_method": "update"
|
"datagram_sent": {
|
||||||
},
|
"ip": "10.1.2.1/24",
|
||||||
{
|
"allowaccess": [
|
||||||
"raw_response": {
|
"ping",
|
||||||
"status": {
|
"telnet",
|
||||||
"message": "OK",
|
"https",
|
||||||
"code": 0
|
"http"
|
||||||
},
|
]
|
||||||
"url": "/pm/config/device/FGT3/global/system/interface/port2"
|
},
|
||||||
},
|
"paramgram_used": {
|
||||||
"paramgram_used": {
|
"adom": "ansible",
|
||||||
"adom": "ansible",
|
"install_config": "disable",
|
||||||
"install_config": "disable",
|
"device_unique_name": "FGT2",
|
||||||
"device_unique_name": "FGT3",
|
"interface": "port2",
|
||||||
"interface": "port2",
|
"device_hostname": null,
|
||||||
"device_hostname": null,
|
"interface_ip": "10.1.2.1/24",
|
||||||
"interface_ip": "10.1.3.1/24",
|
"interface_allow_access": "ping, telnet, https, http"
|
||||||
"interface_allow_access": "ping, telnet, https, http"
|
},
|
||||||
},
|
"post_method": "update"
|
||||||
"post_method": "update"
|
},
|
||||||
}
|
{
|
||||||
],
|
"raw_response": {
|
||||||
"update_device_hostname": [
|
"status": {
|
||||||
{
|
"message": "OK",
|
||||||
"raw_response": {
|
"code": 0
|
||||||
"status": {
|
},
|
||||||
"message": "OK",
|
"url": "/pm/config/device/FGT3/global/system/interface/port2"
|
||||||
"code": 0
|
},
|
||||||
},
|
"datagram_sent": {
|
||||||
"url": "pm/config/device/FGT1/global/system/global"
|
"ip": "10.1.3.1/24",
|
||||||
},
|
"allowaccess": [
|
||||||
"paramgram_used": {
|
"ping",
|
||||||
"adom": "ansible",
|
"telnet",
|
||||||
"install_config": "disable",
|
"https",
|
||||||
"device_unique_name": "FGT1",
|
"http"
|
||||||
"interface": null,
|
]
|
||||||
"device_hostname": "ansible-fgt01",
|
},
|
||||||
"interface_ip": null,
|
"paramgram_used": {
|
||||||
"interface_allow_access": null
|
"adom": "ansible",
|
||||||
},
|
"install_config": "disable",
|
||||||
"post_method": "update"
|
"device_unique_name": "FGT3",
|
||||||
},
|
"interface": "port2",
|
||||||
{
|
"device_hostname": null,
|
||||||
"paramgram_used": {
|
"interface_ip": "10.1.3.1/24",
|
||||||
"adom": "ansible",
|
"interface_allow_access": "ping, telnet, https, http"
|
||||||
"interface": null,
|
},
|
||||||
"device_unique_name": "FGT1",
|
"post_method": "update"
|
||||||
"install_config": "disable",
|
}
|
||||||
"device_hostname": "ansible-fgt01",
|
],
|
||||||
"interface_ip": null,
|
"update_device_hostname": [
|
||||||
"interface_allow_access": null
|
{
|
||||||
},
|
"paramgram_used": {
|
||||||
"raw_response": {
|
"adom": "ansible",
|
||||||
"status": {
|
"interface": null,
|
||||||
"message": "OK",
|
"device_unique_name": "FGT1",
|
||||||
"code": 0
|
"install_config": "disable",
|
||||||
},
|
"device_hostname": "ansible-fgt01",
|
||||||
"url": "pm/config/device/FGT1/global/system/global"
|
"interface_ip": null,
|
||||||
},
|
"interface_allow_access": null
|
||||||
"post_method": "update"
|
},
|
||||||
},
|
"datagram_sent": {
|
||||||
{
|
"hostname": "ansible-fgt01"
|
||||||
"paramgram_used": {
|
},
|
||||||
"adom": "ansible",
|
"raw_response": {
|
||||||
"interface": null,
|
"status": {
|
||||||
"device_unique_name": "FGT2",
|
"message": "OK",
|
||||||
"install_config": "disable",
|
"code": 0
|
||||||
"device_hostname": "ansible-fgt02",
|
},
|
||||||
"interface_ip": null,
|
"url": "pm/config/device/FGT1/global/system/global"
|
||||||
"interface_allow_access": null
|
},
|
||||||
},
|
"post_method": "update"
|
||||||
"raw_response": {
|
},
|
||||||
"status": {
|
{
|
||||||
"message": "OK",
|
"paramgram_used": {
|
||||||
"code": 0
|
"adom": "ansible",
|
||||||
},
|
"interface": null,
|
||||||
"url": "pm/config/device/FGT2/global/system/global"
|
"device_unique_name": "FGT2",
|
||||||
},
|
"install_config": "disable",
|
||||||
"post_method": "update"
|
"device_hostname": "ansible-fgt02",
|
||||||
},
|
"interface_ip": null,
|
||||||
{
|
"interface_allow_access": null
|
||||||
"paramgram_used": {
|
},
|
||||||
"adom": "ansible",
|
"datagram_sent": {
|
||||||
"interface": null,
|
"hostname": "ansible-fgt02"
|
||||||
"device_unique_name": "FGT3",
|
},
|
||||||
"install_config": "disable",
|
"raw_response": {
|
||||||
"device_hostname": "ansible-fgt03",
|
"status": {
|
||||||
"interface_ip": null,
|
"message": "OK",
|
||||||
"interface_allow_access": null
|
"code": 0
|
||||||
},
|
},
|
||||||
"raw_response": {
|
"url": "pm/config/device/FGT2/global/system/global"
|
||||||
"status": {
|
},
|
||||||
"message": "OK",
|
"post_method": "update"
|
||||||
"code": 0
|
},
|
||||||
},
|
{
|
||||||
"url": "pm/config/device/FGT3/global/system/global"
|
"paramgram_used": {
|
||||||
},
|
"adom": "ansible",
|
||||||
"post_method": "update"
|
"interface": null,
|
||||||
}
|
"device_unique_name": "FGT3",
|
||||||
],
|
"install_config": "disable",
|
||||||
"exec_config": [
|
"device_hostname": "ansible-fgt03",
|
||||||
{
|
"interface_ip": null,
|
||||||
"url": "/securityconsole/install/device",
|
"interface_allow_access": null
|
||||||
"paramgram_used": {
|
},
|
||||||
"adom": "ansible",
|
"datagram_sent": {
|
||||||
"interface": null,
|
"hostname": "ansible-fgt03"
|
||||||
"device_unique_name": "FGT1",
|
},
|
||||||
"install_config": "enable",
|
"raw_response": {
|
||||||
"device_hostname": null,
|
"status": {
|
||||||
"interface_ip": null,
|
"message": "OK",
|
||||||
"interface_allow_access": null
|
"code": 0
|
||||||
},
|
},
|
||||||
"raw_response": {
|
"url": "pm/config/device/FGT3/global/system/global"
|
||||||
"task": 352
|
},
|
||||||
},
|
"post_method": "update"
|
||||||
"post_method": "execute"
|
}
|
||||||
},
|
],
|
||||||
{
|
"exec_config": [
|
||||||
"url": "/securityconsole/install/device",
|
{
|
||||||
"raw_response": {
|
"url": "/securityconsole/install/device",
|
||||||
"task": 353
|
"paramgram_used": {
|
||||||
},
|
"adom": "ansible",
|
||||||
"paramgram_used": {
|
"interface": null,
|
||||||
"adom": "ansible",
|
"device_unique_name": "FGT1",
|
||||||
"install_config": "enable",
|
"install_config": "enable",
|
||||||
"device_unique_name": "FGT2, FGT3",
|
"device_hostname": null,
|
||||||
"interface": null,
|
"interface_ip": null,
|
||||||
"device_hostname": null,
|
"interface_allow_access": null
|
||||||
"interface_ip": null,
|
},
|
||||||
"interface_allow_access": null
|
"datagram_sent": {
|
||||||
},
|
"scope": {
|
||||||
"post_method": "execute"
|
"name": "FGT1"
|
||||||
}
|
},
|
||||||
]
|
"flags": "none",
|
||||||
|
"adom": "ansible"
|
||||||
|
},
|
||||||
|
"raw_response": {
|
||||||
|
"task": 243
|
||||||
|
},
|
||||||
|
"post_method": "exec"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "/securityconsole/install/device",
|
||||||
|
"raw_response": {
|
||||||
|
"task": 244
|
||||||
|
},
|
||||||
|
"datagram_sent": {
|
||||||
|
"scope": {
|
||||||
|
"name": "FGT2, FGT3"
|
||||||
|
},
|
||||||
|
"flags": "none",
|
||||||
|
"adom": "ansible"
|
||||||
|
},
|
||||||
|
"paramgram_used": {
|
||||||
|
"adom": "ansible",
|
||||||
|
"install_config": "enable",
|
||||||
|
"device_unique_name": "FGT2, FGT3",
|
||||||
|
"interface": null,
|
||||||
|
"device_hostname": null,
|
||||||
|
"interface_ip": null,
|
||||||
|
"interface_allow_access": null
|
||||||
|
},
|
||||||
|
"post_method": "exec"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue