And back to hair-pulling frustration.
If you run 'show objects', and you get a group, that group's members are given as a list of UUIDs.
If you get the same group via 'show object', the group's members are given as a list of full objects.
But wait! If one of the members of that group is another group, this inner group's members are given as a list of UUIDs!
Code:
[Expert@SmartCenter]# mgmt_cli -r true show object uid "2a469820-b502-434c-9340-a377677a6a60" --format json details-level full
{
"object" : {
"uid" : "2a469820-b502-434c-9340-a377677a6a60",
"name" : "CIFS",
"type" : "service-group",
...,
"members" : [ {
...
}, {
"uid" : "97aeb471-9aea-11d5-bd16-0090272ccb30",
"name" : "NBT",
...,
"members" : [ "97aeb414-9aea-11d5-bd16-0090272ccb30", "97aeb415-9aea-11d5-bd16-0090272ccb30", "97aeb416-9aea-11d5-bd16-0090272ccb30" ],
...
} ],
...
}
}
Edited to add: Also weird, the schema for 'interfaces' totally changes depending on how you look at a firewall object. Wildly different keys and data. In 'show objects' or 'show object', it looks like this:
Code:
{
"from" : 3001,
"to" : 3500,
"total" : 8960,
"objects" : [ ...
}, {
"uid" : "4d25f6a9-e99a-ce43-a6ce-27a8280d918f",
"name" : "SmartCenter",
"type" : "simple-gateway",
...,
"interfaces" : [ {
"name" : "eth1",
"ipv4-address" : "10.20.30.40",
"ipv4-network-mask" : "255.255.255.0",
"ipv4-mask-length" : 24,
"ipv6-address" : "",
"comments" : "",
"color" : "black",
"icon" : "NetworkObjects/network",
"topology" : "automatic",
"topology-automatic-calculation" : "internal",
"topology-settings" : {
"ip-address-behind-this-interface" : "not defined",
"interface-leads-to-dmz" : false
},
"anti-spoofing" : false,
"security-zone" : false
} ],
...
}, {
...
} ]
}
but in 'show gateways-and-servers', it looks like this:
Code:
{
"objects" : [ {
"uid" : "4d25f6a9-e99a-ce43-a6ce-27a8280d918f",
"name" : "SmartCenter",
"type" : "simple-gateway",
...,
"interfaces" : [ {
"interface-name" : "eth1",
"ipv4-address" : "10.20.30.40",
"ipv4-network-mask" : "255.255.255.0",
"ipv4-mask-length" : 24,
"dynamic-ip" : false,
"topology" : {
"leads-to-internet" : false,
"ip-address-behind-this-interface" : "not defined",
"leads-to-dmz" : false
}
} ],
...
} ],
"from" : 1,
"to" : 1,
"total" : 1
}
Bookmarks