Greetings!
I am currently trying to export a rulebase via the web-api via
'show-access-rulebase', {'name': 'my firewall rulebase'}
This results in a json representation of my ruleset. A rule in this result set might look like this (uids manually changed):
{
"uid": "11111111-2222-3333-4444-555555555555",
"name": "Test-Rule",
"type": "access-rule",
"domain": {
"uid": "11111111-2222-3333-4444-555555555555",
"name": "SMC User",
"domain-type": "domain"
},
"rule-number": 40,
"track": {...}
"source": [
"11111111-2222-3333-4444-555555555555"
],
"source-negate": false,
"destination": [
"11111111-2222-3333-4444-555555555555"
],
"destination-negate": false,
"service": [
"11111111-2222-3333-4444-555555555555"
],
"service-negate": false,
"service-resource": "",
"vpn": [
"11111111-2222-3333-4444-555555555555"
],
"action": "11111111-2222-3333-4444-555555555555",
"action-settings": {
"enable-identity-captive-portal": false
},
"content": [
"11111111-2222-3333-4444-555555555555"
],
"content-negate": false,
...
}
I can resolve the uids given in the "source", "destination" and "service" fields via commands like
'show-host', {'uid': '11111111-2222-3333-4444-555555555555'}
or similar (show-group, show-network, ...) commands.
Some uids however I can not resolve via these commands. Even the command 'show-object' does not work for these uids. When I check the rules in the Smart Console, the source, destination or service fields contain the 'Any' object.
How can I query these 'Any' objects via the web-api by their uid?
Tank you very much in advance!
Regards,
Nils