catocli 2.0.3__py3-none-any.whl → 2.0.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of catocli might be problematic. Click here for more details.
- build/lib/catocli/Utils/clidriver.py +268 -0
- build/lib/catocli/Utils/profile_manager.py +188 -0
- build/lib/catocli/Utils/version_checker.py +192 -0
- build/lib/catocli/__init__.py +2 -0
- build/lib/catocli/__main__.py +12 -0
- build/lib/catocli/parsers/configure/__init__.py +115 -0
- build/lib/catocli/parsers/configure/configure.py +307 -0
- build/lib/catocli/parsers/custom/__init__.py +57 -0
- build/lib/catocli/parsers/custom/customLib.py +561 -0
- build/lib/catocli/parsers/custom/export_rules/__init__.py +42 -0
- build/lib/catocli/parsers/custom/export_rules/export_rules.py +234 -0
- build/lib/catocli/parsers/custom/export_sites/__init__.py +21 -0
- build/lib/catocli/parsers/custom/export_sites/export_sites.py +372 -0
- build/lib/catocli/parsers/custom/import_rules_to_tf/__init__.py +58 -0
- build/lib/catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +451 -0
- build/lib/catocli/parsers/custom/import_sites_to_tf/__init__.py +45 -0
- build/lib/catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +891 -0
- build/lib/catocli/parsers/mutation_accountManagement/__init__.py +48 -0
- build/lib/catocli/parsers/mutation_admin/__init__.py +48 -0
- build/lib/catocli/parsers/mutation_container/__init__.py +138 -0
- build/lib/catocli/parsers/mutation_hardware/__init__.py +22 -0
- build/lib/catocli/parsers/mutation_policy/__init__.py +1305 -0
- build/lib/catocli/parsers/mutation_sandbox/__init__.py +35 -0
- build/lib/catocli/parsers/mutation_site/__init__.py +373 -0
- build/lib/catocli/parsers/mutation_sites/__init__.py +373 -0
- build/lib/catocli/parsers/mutation_xdr/__init__.py +48 -0
- build/lib/catocli/parsers/parserApiClient.py +513 -0
- build/lib/catocli/parsers/query_accountBySubdomain/__init__.py +16 -0
- build/lib/catocli/parsers/query_accountManagement/__init__.py +16 -0
- build/lib/catocli/parsers/query_accountMetrics/__init__.py +16 -0
- build/lib/catocli/parsers/query_accountRoles/__init__.py +16 -0
- build/lib/catocli/parsers/query_accountSnapshot/__init__.py +16 -0
- build/lib/catocli/parsers/query_admin/__init__.py +16 -0
- build/lib/catocli/parsers/query_admins/__init__.py +16 -0
- build/lib/catocli/parsers/query_appStats/__init__.py +16 -0
- build/lib/catocli/parsers/query_appStatsTimeSeries/__init__.py +16 -0
- build/lib/catocli/parsers/query_auditFeed/__init__.py +16 -0
- build/lib/catocli/parsers/query_catalogs/__init__.py +16 -0
- build/lib/catocli/parsers/query_container/__init__.py +16 -0
- build/lib/catocli/parsers/query_devices/__init__.py +16 -0
- build/lib/catocli/parsers/query_entityLookup/__init__.py +16 -0
- build/lib/catocli/parsers/query_events/__init__.py +16 -0
- build/lib/catocli/parsers/query_eventsFeed/__init__.py +16 -0
- build/lib/catocli/parsers/query_eventsTimeSeries/__init__.py +16 -0
- build/lib/catocli/parsers/query_hardware/__init__.py +16 -0
- build/lib/catocli/parsers/query_hardwareManagement/__init__.py +16 -0
- build/lib/catocli/parsers/query_licensing/__init__.py +16 -0
- build/lib/catocli/parsers/query_policy/__init__.py +161 -0
- build/lib/catocli/parsers/query_sandbox/__init__.py +16 -0
- build/lib/catocli/parsers/query_site/__init__.py +100 -0
- build/lib/catocli/parsers/query_siteLocation/__init__.py +13 -0
- build/lib/catocli/parsers/query_subDomains/__init__.py +16 -0
- build/lib/catocli/parsers/query_xdr/__init__.py +35 -0
- build/lib/catocli/parsers/raw/__init__.py +12 -0
- build/lib/graphql_client/__init__.py +11 -0
- build/lib/graphql_client/api/__init__.py +3 -0
- build/lib/graphql_client/api/call_api.py +84 -0
- build/lib/graphql_client/api_client.py +192 -0
- build/lib/graphql_client/api_client_types.py +409 -0
- build/lib/graphql_client/configuration.py +232 -0
- build/lib/graphql_client/models/__init__.py +13 -0
- build/lib/graphql_client/models/no_schema.py +71 -0
- build/lib/schema/catolib.py +1141 -0
- build/lib/schema/importSchema.py +60 -0
- build/lib/schema/remove_policyid.py +89 -0
- build/lib/schema/remove_policyid_mutations.py +89 -0
- build/lib/scripts/catolib.py +62 -0
- build/lib/scripts/export_if_rules_to_json.py +188 -0
- build/lib/scripts/export_wf_rules_to_json.py +111 -0
- build/lib/scripts/import_wf_rules_to_tfstate.py +331 -0
- build/lib/vendor/certifi/__init__.py +4 -0
- build/lib/vendor/certifi/__main__.py +12 -0
- build/lib/vendor/certifi/core.py +114 -0
- build/lib/vendor/certifi/py.typed +0 -0
- build/lib/vendor/six.py +998 -0
- build/lib/vendor/urllib3/__init__.py +211 -0
- build/lib/vendor/urllib3/_base_connection.py +172 -0
- build/lib/vendor/urllib3/_collections.py +483 -0
- build/lib/vendor/urllib3/_request_methods.py +278 -0
- build/lib/vendor/urllib3/_version.py +16 -0
- build/lib/vendor/urllib3/connection.py +1033 -0
- build/lib/vendor/urllib3/connectionpool.py +1182 -0
- build/lib/vendor/urllib3/contrib/__init__.py +0 -0
- build/lib/vendor/urllib3/contrib/emscripten/__init__.py +18 -0
- build/lib/vendor/urllib3/contrib/emscripten/connection.py +254 -0
- build/lib/vendor/urllib3/contrib/emscripten/fetch.py +418 -0
- build/lib/vendor/urllib3/contrib/emscripten/request.py +22 -0
- build/lib/vendor/urllib3/contrib/emscripten/response.py +285 -0
- build/lib/vendor/urllib3/contrib/pyopenssl.py +552 -0
- build/lib/vendor/urllib3/contrib/socks.py +228 -0
- build/lib/vendor/urllib3/exceptions.py +321 -0
- build/lib/vendor/urllib3/fields.py +341 -0
- build/lib/vendor/urllib3/filepost.py +89 -0
- build/lib/vendor/urllib3/http2/__init__.py +53 -0
- build/lib/vendor/urllib3/http2/connection.py +356 -0
- build/lib/vendor/urllib3/http2/probe.py +87 -0
- build/lib/vendor/urllib3/poolmanager.py +637 -0
- build/lib/vendor/urllib3/py.typed +2 -0
- build/lib/vendor/urllib3/response.py +1265 -0
- build/lib/vendor/urllib3/util/__init__.py +42 -0
- build/lib/vendor/urllib3/util/connection.py +137 -0
- build/lib/vendor/urllib3/util/proxy.py +43 -0
- build/lib/vendor/urllib3/util/request.py +256 -0
- build/lib/vendor/urllib3/util/response.py +101 -0
- build/lib/vendor/urllib3/util/retry.py +533 -0
- build/lib/vendor/urllib3/util/ssl_.py +513 -0
- build/lib/vendor/urllib3/util/ssl_match_hostname.py +159 -0
- build/lib/vendor/urllib3/util/ssltransport.py +276 -0
- build/lib/vendor/urllib3/util/timeout.py +275 -0
- build/lib/vendor/urllib3/util/url.py +471 -0
- build/lib/vendor/urllib3/util/util.py +42 -0
- build/lib/vendor/urllib3/util/wait.py +124 -0
- catocli/Utils/clidriver.py +1 -4
- catocli/__init__.py +1 -1
- catocli/parsers/custom/export_rules/__init__.py +2 -0
- catocli/parsers/custom/export_rules/export_rules.py +29 -5
- catocli/parsers/custom/export_sites/__init__.py +1 -0
- catocli/parsers/custom/export_sites/export_sites.py +10 -3
- catocli/parsers/mutation_container/__init__.py +116 -0
- catocli/parsers/mutation_container_fqdn/README.md +7 -0
- catocli/parsers/mutation_container_fqdn_addValues/README.md +17 -0
- catocli/parsers/mutation_container_fqdn_createFromFile/README.md +17 -0
- catocli/parsers/mutation_container_fqdn_removeValues/README.md +17 -0
- catocli/parsers/mutation_container_fqdn_updateFromFile/README.md +17 -0
- catocli/parsers/mutation_container_ipAddressRange/README.md +7 -0
- catocli/parsers/mutation_container_ipAddressRange_addValues/README.md +17 -0
- catocli/parsers/mutation_container_ipAddressRange_createFromFile/README.md +17 -0
- catocli/parsers/mutation_container_ipAddressRange_removeValues/README.md +17 -0
- catocli/parsers/mutation_container_ipAddressRange_updateFromFile/README.md +17 -0
- catocli/parsers/mutation_policy_internetFirewall_addRule/README.md +1 -1
- catocli/parsers/mutation_policy_internetFirewall_updateRule/README.md +1 -1
- catocli/parsers/mutation_policy_wanFirewall_addRule/README.md +1 -1
- catocli/parsers/mutation_policy_wanFirewall_updateRule/README.md +1 -1
- catocli/parsers/parserApiClient.py +183 -7
- catocli/parsers/query_policy/README.md +0 -17
- catocli/parsers/query_policy/__init__.py +153 -8
- catocli/parsers/query_policy_appTenantRestriction/README.md +7 -0
- catocli/parsers/query_policy_appTenantRestriction_policy/README.md +17 -0
- catocli/parsers/query_policy_dynamicIpAllocation/README.md +7 -0
- catocli/parsers/query_policy_dynamicIpAllocation_policy/README.md +17 -0
- catocli/parsers/query_policy_internetFirewall/README.md +7 -0
- catocli/parsers/query_policy_internetFirewall_policy/README.md +17 -0
- catocli/parsers/query_policy_remotePortFwd/README.md +7 -0
- catocli/parsers/query_policy_remotePortFwd_policy/README.md +17 -0
- catocli/parsers/query_policy_socketLan/README.md +7 -0
- catocli/parsers/query_policy_socketLan_policy/README.md +17 -0
- catocli/parsers/query_policy_terminalServer/README.md +7 -0
- catocli/parsers/query_policy_terminalServer_policy/README.md +17 -0
- catocli/parsers/query_policy_wanFirewall/README.md +7 -0
- catocli/parsers/query_policy_wanFirewall_policy/README.md +17 -0
- catocli/parsers/query_policy_wanNetwork/README.md +7 -0
- catocli/parsers/query_policy_wanNetwork_policy/README.md +17 -0
- catocli/parsers/query_site/README.md +0 -16
- catocli/parsers/query_site/__init__.py +92 -8
- catocli/parsers/query_site_availableVersionList/README.md +17 -0
- catocli/parsers/query_site_bgpPeer/README.md +17 -0
- catocli/parsers/query_site_bgpPeerList/README.md +17 -0
- catocli/parsers/query_site_cloudInterconnectConnectionConnectivity/README.md +17 -0
- catocli/parsers/query_site_cloudInterconnectPhysicalConnection/README.md +17 -0
- catocli/parsers/query_site_cloudInterconnectPhysicalConnectionId/README.md +17 -0
- catocli/parsers/query_site_siteBgpStatus/README.md +17 -0
- {catocli-2.0.3.dist-info → catocli-2.0.5.dist-info}/METADATA +1 -1
- {catocli-2.0.3.dist-info → catocli-2.0.5.dist-info}/RECORD +291 -121
- {catocli-2.0.3.dist-info → catocli-2.0.5.dist-info}/top_level.txt +1 -0
- graphql_client/api/call_api.py +4 -3
- models/mutation.container.fqdn.addValues.json +866 -0
- models/mutation.container.fqdn.createFromFile.json +819 -0
- models/mutation.container.fqdn.removeValues.json +866 -0
- models/mutation.container.fqdn.updateFromFile.json +1045 -0
- models/mutation.container.ipAddressRange.addValues.json +1020 -0
- models/mutation.container.ipAddressRange.createFromFile.json +819 -0
- models/mutation.container.ipAddressRange.removeValues.json +1020 -0
- models/mutation.container.ipAddressRange.updateFromFile.json +1045 -0
- models/mutation.policy.appTenantRestriction.addRule.json +8 -8
- models/mutation.policy.appTenantRestriction.addSection.json +1 -1
- models/mutation.policy.appTenantRestriction.createPolicyRevision.json +2 -2
- models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +2 -2
- models/mutation.policy.appTenantRestriction.moveRule.json +2 -2
- models/mutation.policy.appTenantRestriction.moveSection.json +1 -1
- models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +2 -2
- models/mutation.policy.appTenantRestriction.removeRule.json +2 -2
- models/mutation.policy.appTenantRestriction.removeSection.json +1 -1
- models/mutation.policy.appTenantRestriction.updatePolicy.json +2 -2
- models/mutation.policy.appTenantRestriction.updateRule.json +8 -8
- models/mutation.policy.appTenantRestriction.updateSection.json +1 -1
- models/mutation.policy.dynamicIpAllocation.addRule.json +1 -1
- models/mutation.policy.dynamicIpAllocation.addSection.json +1 -1
- models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +1 -1
- models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +1 -1
- models/mutation.policy.dynamicIpAllocation.moveRule.json +1 -1
- models/mutation.policy.dynamicIpAllocation.moveSection.json +1 -1
- models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +1 -1
- models/mutation.policy.dynamicIpAllocation.removeRule.json +1 -1
- models/mutation.policy.dynamicIpAllocation.removeSection.json +1 -1
- models/mutation.policy.dynamicIpAllocation.updatePolicy.json +1 -1
- models/mutation.policy.dynamicIpAllocation.updateRule.json +1 -1
- models/mutation.policy.dynamicIpAllocation.updateSection.json +1 -1
- models/mutation.policy.internetFirewall.addRule.json +502 -55
- models/mutation.policy.internetFirewall.addSection.json +1 -1
- models/mutation.policy.internetFirewall.createPolicyRevision.json +127 -10
- models/mutation.policy.internetFirewall.discardPolicyRevision.json +127 -10
- models/mutation.policy.internetFirewall.moveRule.json +127 -10
- models/mutation.policy.internetFirewall.moveSection.json +1 -1
- models/mutation.policy.internetFirewall.publishPolicyRevision.json +127 -10
- models/mutation.policy.internetFirewall.removeRule.json +127 -10
- models/mutation.policy.internetFirewall.removeSection.json +1 -1
- models/mutation.policy.internetFirewall.updatePolicy.json +127 -10
- models/mutation.policy.internetFirewall.updateRule.json +493 -55
- models/mutation.policy.internetFirewall.updateSection.json +1 -1
- models/mutation.policy.remotePortFwd.addRule.json +5 -5
- models/mutation.policy.remotePortFwd.addSection.json +1 -1
- models/mutation.policy.remotePortFwd.createPolicyRevision.json +2 -2
- models/mutation.policy.remotePortFwd.discardPolicyRevision.json +2 -2
- models/mutation.policy.remotePortFwd.moveRule.json +2 -2
- models/mutation.policy.remotePortFwd.moveSection.json +1 -1
- models/mutation.policy.remotePortFwd.publishPolicyRevision.json +2 -2
- models/mutation.policy.remotePortFwd.removeRule.json +2 -2
- models/mutation.policy.remotePortFwd.removeSection.json +1 -1
- models/mutation.policy.remotePortFwd.updatePolicy.json +2 -2
- models/mutation.policy.remotePortFwd.updateRule.json +5 -5
- models/mutation.policy.remotePortFwd.updateSection.json +1 -1
- models/mutation.policy.socketLan.addRule.json +16 -16
- models/mutation.policy.socketLan.addSection.json +1 -1
- models/mutation.policy.socketLan.createPolicyRevision.json +4 -4
- models/mutation.policy.socketLan.discardPolicyRevision.json +4 -4
- models/mutation.policy.socketLan.moveRule.json +4 -4
- models/mutation.policy.socketLan.moveSection.json +1 -1
- models/mutation.policy.socketLan.publishPolicyRevision.json +4 -4
- models/mutation.policy.socketLan.removeRule.json +4 -4
- models/mutation.policy.socketLan.removeSection.json +1 -1
- models/mutation.policy.socketLan.updatePolicy.json +4 -4
- models/mutation.policy.socketLan.updateRule.json +16 -16
- models/mutation.policy.socketLan.updateSection.json +1 -1
- models/mutation.policy.terminalServer.addRule.json +1 -1
- models/mutation.policy.terminalServer.addSection.json +1 -1
- models/mutation.policy.terminalServer.createPolicyRevision.json +1 -1
- models/mutation.policy.terminalServer.discardPolicyRevision.json +1 -1
- models/mutation.policy.terminalServer.moveRule.json +1 -1
- models/mutation.policy.terminalServer.moveSection.json +1 -1
- models/mutation.policy.terminalServer.publishPolicyRevision.json +1 -1
- models/mutation.policy.terminalServer.removeRule.json +1 -1
- models/mutation.policy.terminalServer.removeSection.json +1 -1
- models/mutation.policy.terminalServer.updatePolicy.json +1 -1
- models/mutation.policy.terminalServer.updateRule.json +1 -1
- models/mutation.policy.terminalServer.updateSection.json +1 -1
- models/mutation.policy.wanFirewall.addRule.json +500 -53
- models/mutation.policy.wanFirewall.addSection.json +1 -1
- models/mutation.policy.wanFirewall.createPolicyRevision.json +128 -11
- models/mutation.policy.wanFirewall.discardPolicyRevision.json +128 -11
- models/mutation.policy.wanFirewall.moveRule.json +128 -11
- models/mutation.policy.wanFirewall.moveSection.json +1 -1
- models/mutation.policy.wanFirewall.publishPolicyRevision.json +128 -11
- models/mutation.policy.wanFirewall.removeRule.json +128 -11
- models/mutation.policy.wanFirewall.removeSection.json +1 -1
- models/mutation.policy.wanFirewall.updatePolicy.json +128 -11
- models/mutation.policy.wanFirewall.updateRule.json +491 -53
- models/mutation.policy.wanFirewall.updateSection.json +1 -1
- models/mutation.policy.wanNetwork.addRule.json +13 -13
- models/mutation.policy.wanNetwork.addSection.json +1 -1
- models/mutation.policy.wanNetwork.createPolicyRevision.json +1 -1
- models/mutation.policy.wanNetwork.discardPolicyRevision.json +1 -1
- models/mutation.policy.wanNetwork.moveRule.json +1 -1
- models/mutation.policy.wanNetwork.moveSection.json +1 -1
- models/mutation.policy.wanNetwork.publishPolicyRevision.json +1 -1
- models/mutation.policy.wanNetwork.removeRule.json +1 -1
- models/mutation.policy.wanNetwork.removeSection.json +1 -1
- models/mutation.policy.wanNetwork.updatePolicy.json +1 -1
- models/mutation.policy.wanNetwork.updateRule.json +13 -13
- models/mutation.policy.wanNetwork.updateSection.json +1 -1
- models/query.policy.appTenantRestriction.policy.json +3086 -0
- models/query.policy.dynamicIpAllocation.policy.json +1934 -0
- models/query.policy.internetFirewall.policy.json +7833 -0
- models/query.policy.json +233 -0
- models/query.policy.remotePortFwd.policy.json +2387 -0
- models/query.policy.socketLan.policy.json +7140 -0
- models/query.policy.terminalServer.policy.json +1632 -0
- models/query.policy.wanFirewall.policy.json +9212 -0
- models/query.policy.wanNetwork.policy.json +8010 -0
- models/query.site.availableVersionList.json +365 -0
- models/query.site.bgpPeer.json +1917 -0
- models/query.site.bgpPeerList.json +2076 -0
- models/query.site.cloudInterconnectConnectionConnectivity.json +298 -0
- models/query.site.cloudInterconnectPhysicalConnection.json +728 -0
- models/query.site.cloudInterconnectPhysicalConnectionId.json +660 -0
- models/query.site.siteBgpStatus.json +869 -0
- schema/catolib.py +13 -6
- schema/remove_policyid.py +89 -0
- schema/remove_policyid_mutations.py +89 -0
- {catocli-2.0.3.dist-info → catocli-2.0.5.dist-info}/LICENSE +0 -0
- {catocli-2.0.3.dist-info → catocli-2.0.5.dist-info}/WHEEL +0 -0
- {catocli-2.0.3.dist-info → catocli-2.0.5.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import json
|
|
3
3
|
import sys
|
|
4
|
+
from datetime import datetime
|
|
4
5
|
from graphql_client.api.call_api import ApiClient, CallApi
|
|
5
6
|
from graphql_client.api_client import ApiException
|
|
6
7
|
from ..customLib import writeDataToFile, makeCall, getAccountID
|
|
@@ -64,10 +65,15 @@ def export_if_rules_to_json(args, configuration):
|
|
|
64
65
|
processed_data['data']['policy']['internetFirewall']['policy']['rules'] = filtered_rules
|
|
65
66
|
|
|
66
67
|
# Add index_in_section to each rule
|
|
67
|
-
#
|
|
68
|
+
# Handle empty section names by assigning a default section name
|
|
68
69
|
section_counters = {}
|
|
69
70
|
for rule_data in processed_data['data']['policy']['internetFirewall']['policy']['rules']:
|
|
70
71
|
section_name = rule_data['rule']['section']['name']
|
|
72
|
+
# If section name is empty, use "Default Section" as the section name
|
|
73
|
+
if not section_name or section_name.strip() == "":
|
|
74
|
+
section_name = "Default Section"
|
|
75
|
+
rule_data['rule']['section']['name'] = section_name
|
|
76
|
+
|
|
71
77
|
if section_name not in section_counters:
|
|
72
78
|
section_counters[section_name] = 0
|
|
73
79
|
section_counters[section_name] += 1
|
|
@@ -104,12 +110,18 @@ def export_if_rules_to_json(args, configuration):
|
|
|
104
110
|
|
|
105
111
|
# Replace the original sections array with the reformatted one
|
|
106
112
|
processed_data['data']['policy']['internetFirewall']['policy']['sections'] = processed_sections
|
|
113
|
+
|
|
114
|
+
# Handle timestamp in filename if requested
|
|
115
|
+
filename_template = "all_ifw_rules_and_sections_{account_id}.json"
|
|
116
|
+
if hasattr(args, 'append_timestamp') and args.append_timestamp:
|
|
117
|
+
timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
|
118
|
+
filename_template = "all_ifw_rules_and_sections_{account_id}_" + timestamp + ".json"
|
|
107
119
|
|
|
108
120
|
output_file = writeDataToFile(
|
|
109
121
|
data=processed_data,
|
|
110
122
|
args=args,
|
|
111
123
|
account_id=account_id,
|
|
112
|
-
default_filename_template=
|
|
124
|
+
default_filename_template=filename_template,
|
|
113
125
|
default_directory="config_data"
|
|
114
126
|
)
|
|
115
127
|
|
|
@@ -157,9 +169,15 @@ def export_wf_rules_to_json(args, configuration):
|
|
|
157
169
|
processed_data['data']['policy']['wanFirewall']['policy']['rules'] = filtered_rules
|
|
158
170
|
|
|
159
171
|
# Add index_in_section to each rule
|
|
172
|
+
# Handle empty section names by assigning a default section name
|
|
160
173
|
section_counters = {}
|
|
161
174
|
for rule_data in processed_data['data']['policy']['wanFirewall']['policy']['rules']:
|
|
162
175
|
section_name = rule_data['rule']['section']['name']
|
|
176
|
+
# If section name is empty, use "Default Section" as the section name
|
|
177
|
+
if not section_name or section_name.strip() == "":
|
|
178
|
+
section_name = "Default Section"
|
|
179
|
+
rule_data['rule']['section']['name'] = section_name
|
|
180
|
+
|
|
163
181
|
if section_name not in section_counters:
|
|
164
182
|
section_counters[section_name] = 0
|
|
165
183
|
section_counters[section_name] += 1
|
|
@@ -174,8 +192,8 @@ def export_wf_rules_to_json(args, configuration):
|
|
|
174
192
|
"section_name": rule_info['section']['name'],
|
|
175
193
|
"rule_name": rule_info['name']
|
|
176
194
|
})
|
|
177
|
-
|
|
178
|
-
|
|
195
|
+
rule_info.pop("index_in_section", None)
|
|
196
|
+
rule_info.pop("index", None)
|
|
179
197
|
# rule_info["enabled"] = True
|
|
180
198
|
|
|
181
199
|
# Add rules_in_sections to the policy structure
|
|
@@ -194,12 +212,18 @@ def export_wf_rules_to_json(args, configuration):
|
|
|
194
212
|
|
|
195
213
|
# Replace the original sections array with the reformatted one
|
|
196
214
|
processed_data['data']['policy']['wanFirewall']['policy']['sections'] = processed_sections
|
|
215
|
+
|
|
216
|
+
# Handle timestamp in filename if requested
|
|
217
|
+
filename_template = "all_wf_rules_and_sections_{account_id}.json"
|
|
218
|
+
if hasattr(args, 'append_timestamp') and args.append_timestamp:
|
|
219
|
+
timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
|
220
|
+
filename_template = "all_wf_rules_and_sections_{account_id}_" + timestamp + ".json"
|
|
197
221
|
|
|
198
222
|
output_file = writeDataToFile(
|
|
199
223
|
data=processed_data,
|
|
200
224
|
args=args,
|
|
201
225
|
account_id=account_id,
|
|
202
|
-
default_filename_template=
|
|
226
|
+
default_filename_template=filename_template,
|
|
203
227
|
default_directory="config_data"
|
|
204
228
|
)
|
|
205
229
|
|
|
@@ -13,6 +13,7 @@ def export_sites_parse(subparsers):
|
|
|
13
13
|
socket_sites_parser.add_argument('-accountID', help='Account ID to export data from (uses CATO_ACCOUNT_ID environment variable if not specified)', required=False)
|
|
14
14
|
socket_sites_parser.add_argument('-siteIDs', help='Comma-separated list of site IDs to export (e.g., "132606,132964,133511")', required=False)
|
|
15
15
|
socket_sites_parser.add_argument('--output-file-path', help='Full path including filename and extension for output file. If not specified, uses default: config_data/socket_site_data_{account_id}.json')
|
|
16
|
+
socket_sites_parser.add_argument('--append-timestamp', action='store_true', help='Append timestamp to the filename after account ID (format: YYYY-MM-DD_HH-MM-SS)')
|
|
16
17
|
socket_sites_parser.add_argument('-v', '--verbose', action='store_true', help='Verbose output')
|
|
17
18
|
|
|
18
19
|
socket_sites_parser.set_defaults(func=export_sites.export_socket_site_to_json)
|
|
@@ -2,6 +2,7 @@ import os
|
|
|
2
2
|
import json
|
|
3
3
|
import traceback
|
|
4
4
|
import sys
|
|
5
|
+
from datetime import datetime
|
|
5
6
|
from graphql_client.api.call_api import ApiClient, CallApi
|
|
6
7
|
from graphql_client.api_client import ApiException
|
|
7
8
|
from ..customLib import writeDataToFile, makeCall, getAccountID
|
|
@@ -63,12 +64,12 @@ def export_socket_site_to_json(args, configuration):
|
|
|
63
64
|
for wan_ni in site_interfaces:
|
|
64
65
|
cur_wan_interface = {}
|
|
65
66
|
role = wan_ni.get('wanRoleInterfaceInfo', "")
|
|
67
|
+
interfaceName = wan_ni.get('id', "")
|
|
66
68
|
if role is not None and role[0:3] == "wan":
|
|
67
|
-
if
|
|
69
|
+
if interfaceName[0:3] in ("WAN", "USB", "LTE"):
|
|
68
70
|
cur_wan_interface['id'] = site_id+":"+ wan_ni.get('id', "")
|
|
69
71
|
else:
|
|
70
72
|
cur_wan_interface['id'] = site_id+":INT_"+ wan_ni.get('id', "")
|
|
71
|
-
cur_wan_interface['id'] = site_id+":INT_"+ wan_ni.get('id', "")
|
|
72
73
|
cur_wan_interface['name'] = wan_ni.get('name', "")
|
|
73
74
|
cur_wan_interface['upstreamBandwidth'] = wan_ni.get('upstreamBandwidth', 0)
|
|
74
75
|
cur_wan_interface['downstreamBandwidth'] = wan_ni.get('downstreamBandwidth', 0)
|
|
@@ -200,12 +201,18 @@ def export_socket_site_to_json(args, configuration):
|
|
|
200
201
|
print(f"This is usually caused by data inconsistencies and can be safely ignored if the export completes successfully.")
|
|
201
202
|
print(f"=========================\n")
|
|
202
203
|
|
|
204
|
+
# Handle timestamp in filename if requested
|
|
205
|
+
filename_template = "socket_sites_{account_id}.json"
|
|
206
|
+
if hasattr(args, 'append_timestamp') and args.append_timestamp:
|
|
207
|
+
timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
|
|
208
|
+
filename_template = "socket_sites_{account_id}_" + timestamp + ".json"
|
|
209
|
+
|
|
203
210
|
# Write the processed data to file using the general-purpose function
|
|
204
211
|
output_file = writeDataToFile(
|
|
205
212
|
data=processed_data,
|
|
206
213
|
args=args,
|
|
207
214
|
account_id=account_id,
|
|
208
|
-
default_filename_template=
|
|
215
|
+
default_filename_template=filename_template,
|
|
209
216
|
default_directory="config_data"
|
|
210
217
|
)
|
|
211
218
|
|
|
@@ -20,3 +20,119 @@ def mutation_container_parse(mutation_subparsers):
|
|
|
20
20
|
mutation_container_delete_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
21
21
|
mutation_container_delete_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
22
22
|
mutation_container_delete_parser.set_defaults(func=createRequest,operation_name='mutation.container.delete')
|
|
23
|
+
|
|
24
|
+
mutation_container_fqdn_parser = mutation_container_subparsers.add_parser('fqdn',
|
|
25
|
+
help='fqdn() container operation',
|
|
26
|
+
usage=get_help("mutation_container_fqdn"))
|
|
27
|
+
|
|
28
|
+
mutation_container_fqdn_subparsers = mutation_container_fqdn_parser.add_subparsers()
|
|
29
|
+
|
|
30
|
+
mutation_container_fqdn_addValues_parser = mutation_container_fqdn_subparsers.add_parser('addValues',
|
|
31
|
+
help='addValues() fqdn operation',
|
|
32
|
+
usage=get_help("mutation_container_fqdn_addValues"))
|
|
33
|
+
|
|
34
|
+
mutation_container_fqdn_addValues_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
35
|
+
mutation_container_fqdn_addValues_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
36
|
+
mutation_container_fqdn_addValues_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
37
|
+
mutation_container_fqdn_addValues_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
38
|
+
mutation_container_fqdn_addValues_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
39
|
+
mutation_container_fqdn_addValues_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
40
|
+
mutation_container_fqdn_addValues_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
41
|
+
mutation_container_fqdn_addValues_parser.set_defaults(func=createRequest,operation_name='mutation.container.fqdn.addValues')
|
|
42
|
+
|
|
43
|
+
mutation_container_fqdn_createFromFile_parser = mutation_container_fqdn_subparsers.add_parser('createFromFile',
|
|
44
|
+
help='createFromFile() fqdn operation',
|
|
45
|
+
usage=get_help("mutation_container_fqdn_createFromFile"))
|
|
46
|
+
|
|
47
|
+
mutation_container_fqdn_createFromFile_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
48
|
+
mutation_container_fqdn_createFromFile_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
49
|
+
mutation_container_fqdn_createFromFile_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
50
|
+
mutation_container_fqdn_createFromFile_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
51
|
+
mutation_container_fqdn_createFromFile_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
52
|
+
mutation_container_fqdn_createFromFile_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
53
|
+
mutation_container_fqdn_createFromFile_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
54
|
+
mutation_container_fqdn_createFromFile_parser.set_defaults(func=createRequest,operation_name='mutation.container.fqdn.createFromFile')
|
|
55
|
+
|
|
56
|
+
mutation_container_fqdn_removeValues_parser = mutation_container_fqdn_subparsers.add_parser('removeValues',
|
|
57
|
+
help='removeValues() fqdn operation',
|
|
58
|
+
usage=get_help("mutation_container_fqdn_removeValues"))
|
|
59
|
+
|
|
60
|
+
mutation_container_fqdn_removeValues_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
61
|
+
mutation_container_fqdn_removeValues_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
62
|
+
mutation_container_fqdn_removeValues_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
63
|
+
mutation_container_fqdn_removeValues_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
64
|
+
mutation_container_fqdn_removeValues_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
65
|
+
mutation_container_fqdn_removeValues_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
66
|
+
mutation_container_fqdn_removeValues_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
67
|
+
mutation_container_fqdn_removeValues_parser.set_defaults(func=createRequest,operation_name='mutation.container.fqdn.removeValues')
|
|
68
|
+
|
|
69
|
+
mutation_container_fqdn_updateFromFile_parser = mutation_container_fqdn_subparsers.add_parser('updateFromFile',
|
|
70
|
+
help='updateFromFile() fqdn operation',
|
|
71
|
+
usage=get_help("mutation_container_fqdn_updateFromFile"))
|
|
72
|
+
|
|
73
|
+
mutation_container_fqdn_updateFromFile_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
74
|
+
mutation_container_fqdn_updateFromFile_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
75
|
+
mutation_container_fqdn_updateFromFile_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
76
|
+
mutation_container_fqdn_updateFromFile_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
77
|
+
mutation_container_fqdn_updateFromFile_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
78
|
+
mutation_container_fqdn_updateFromFile_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
79
|
+
mutation_container_fqdn_updateFromFile_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
80
|
+
mutation_container_fqdn_updateFromFile_parser.set_defaults(func=createRequest,operation_name='mutation.container.fqdn.updateFromFile')
|
|
81
|
+
|
|
82
|
+
mutation_container_ipAddressRange_parser = mutation_container_subparsers.add_parser('ipAddressRange',
|
|
83
|
+
help='ipAddressRange() container operation',
|
|
84
|
+
usage=get_help("mutation_container_ipAddressRange"))
|
|
85
|
+
|
|
86
|
+
mutation_container_ipAddressRange_subparsers = mutation_container_ipAddressRange_parser.add_subparsers()
|
|
87
|
+
|
|
88
|
+
mutation_container_ipAddressRange_addValues_parser = mutation_container_ipAddressRange_subparsers.add_parser('addValues',
|
|
89
|
+
help='addValues() ipAddressRange operation',
|
|
90
|
+
usage=get_help("mutation_container_ipAddressRange_addValues"))
|
|
91
|
+
|
|
92
|
+
mutation_container_ipAddressRange_addValues_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
93
|
+
mutation_container_ipAddressRange_addValues_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
94
|
+
mutation_container_ipAddressRange_addValues_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
95
|
+
mutation_container_ipAddressRange_addValues_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
96
|
+
mutation_container_ipAddressRange_addValues_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
97
|
+
mutation_container_ipAddressRange_addValues_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
98
|
+
mutation_container_ipAddressRange_addValues_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
99
|
+
mutation_container_ipAddressRange_addValues_parser.set_defaults(func=createRequest,operation_name='mutation.container.ipAddressRange.addValues')
|
|
100
|
+
|
|
101
|
+
mutation_container_ipAddressRange_createFromFile_parser = mutation_container_ipAddressRange_subparsers.add_parser('createFromFile',
|
|
102
|
+
help='createFromFile() ipAddressRange operation',
|
|
103
|
+
usage=get_help("mutation_container_ipAddressRange_createFromFile"))
|
|
104
|
+
|
|
105
|
+
mutation_container_ipAddressRange_createFromFile_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
106
|
+
mutation_container_ipAddressRange_createFromFile_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
107
|
+
mutation_container_ipAddressRange_createFromFile_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
108
|
+
mutation_container_ipAddressRange_createFromFile_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
109
|
+
mutation_container_ipAddressRange_createFromFile_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
110
|
+
mutation_container_ipAddressRange_createFromFile_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
111
|
+
mutation_container_ipAddressRange_createFromFile_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
112
|
+
mutation_container_ipAddressRange_createFromFile_parser.set_defaults(func=createRequest,operation_name='mutation.container.ipAddressRange.createFromFile')
|
|
113
|
+
|
|
114
|
+
mutation_container_ipAddressRange_removeValues_parser = mutation_container_ipAddressRange_subparsers.add_parser('removeValues',
|
|
115
|
+
help='removeValues() ipAddressRange operation',
|
|
116
|
+
usage=get_help("mutation_container_ipAddressRange_removeValues"))
|
|
117
|
+
|
|
118
|
+
mutation_container_ipAddressRange_removeValues_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
119
|
+
mutation_container_ipAddressRange_removeValues_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
120
|
+
mutation_container_ipAddressRange_removeValues_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
121
|
+
mutation_container_ipAddressRange_removeValues_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
122
|
+
mutation_container_ipAddressRange_removeValues_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
123
|
+
mutation_container_ipAddressRange_removeValues_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
124
|
+
mutation_container_ipAddressRange_removeValues_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
125
|
+
mutation_container_ipAddressRange_removeValues_parser.set_defaults(func=createRequest,operation_name='mutation.container.ipAddressRange.removeValues')
|
|
126
|
+
|
|
127
|
+
mutation_container_ipAddressRange_updateFromFile_parser = mutation_container_ipAddressRange_subparsers.add_parser('updateFromFile',
|
|
128
|
+
help='updateFromFile() ipAddressRange operation',
|
|
129
|
+
usage=get_help("mutation_container_ipAddressRange_updateFromFile"))
|
|
130
|
+
|
|
131
|
+
mutation_container_ipAddressRange_updateFromFile_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
132
|
+
mutation_container_ipAddressRange_updateFromFile_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
133
|
+
mutation_container_ipAddressRange_updateFromFile_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
134
|
+
mutation_container_ipAddressRange_updateFromFile_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
135
|
+
mutation_container_ipAddressRange_updateFromFile_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
136
|
+
mutation_container_ipAddressRange_updateFromFile_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
137
|
+
mutation_container_ipAddressRange_updateFromFile_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
138
|
+
mutation_container_ipAddressRange_updateFromFile_parser.set_defaults(func=createRequest,operation_name='mutation.container.ipAddressRange.updateFromFile')
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.fqdn.addValues:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-addValues) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.fqdn.addValues:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container fqdn addValues -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container fqdn addValues <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container fqdn addValues "$(cat < addValues.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container fqdn addValues '{"fqdnContainerAddValuesInput": {"containerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "values": {"values": ["Fqdn"]}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.fqdn.addValues ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`fqdnContainerAddValuesInput` [FqdnContainerAddValuesInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.fqdn.createFromFile:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-createFromFile) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.fqdn.createFromFile:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container fqdn createFromFile -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container fqdn createFromFile <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container fqdn createFromFile "$(cat < createFromFile.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container fqdn createFromFile '{"createFqdnContainerFromFileInput": {"description": {"description": "String"}, "fileType": {"fileType": "enum(ContainerFileType)"}, "name": {"name": "String"}, "uploadFile": {"uploadFile": "Upload"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.fqdn.createFromFile ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`createFqdnContainerFromFileInput` [CreateFqdnContainerFromFileInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.fqdn.removeValues:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-removeValues) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.fqdn.removeValues:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container fqdn removeValues -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container fqdn removeValues <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container fqdn removeValues "$(cat < removeValues.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container fqdn removeValues '{"fqdnContainerRemoveValuesInput": {"containerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "values": {"values": ["Fqdn"]}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.fqdn.removeValues ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`fqdnContainerRemoveValuesInput` [FqdnContainerRemoveValuesInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.fqdn.updateFromFile:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateFromFile) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.fqdn.updateFromFile:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container fqdn updateFromFile -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container fqdn updateFromFile <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container fqdn updateFromFile "$(cat < updateFromFile.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container fqdn updateFromFile '{"updateFqdnContainerFromFileInput": {"containerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "fileType": {"fileType": "enum(ContainerFileType)"}, "uploadFile": {"uploadFile": "Upload"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.fqdn.updateFromFile ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateFqdnContainerFromFileInput` [UpdateFqdnContainerFromFileInput] - (required) N/A
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.ipAddressRange:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-ipAddressRange) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.ipAddressRange:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container ipAddressRange -h`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.ipAddressRange.addValues:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-addValues) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.ipAddressRange.addValues:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container ipAddressRange addValues -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container ipAddressRange addValues <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container ipAddressRange addValues "$(cat < addValues.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container ipAddressRange addValues '{"ipAddressRangeContainerAddValuesInput": {"containerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeInput": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.ipAddressRange.addValues ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`ipAddressRangeContainerAddValuesInput` [IpAddressRangeContainerAddValuesInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.ipAddressRange.createFromFile:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-createFromFile) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.ipAddressRange.createFromFile:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container ipAddressRange createFromFile -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container ipAddressRange createFromFile <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container ipAddressRange createFromFile "$(cat < createFromFile.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container ipAddressRange createFromFile '{"createIpAddressRangeContainerFromFileInput": {"description": {"description": "String"}, "fileType": {"fileType": "enum(ContainerFileType)"}, "name": {"name": "String"}, "uploadFile": {"uploadFile": "Upload"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.ipAddressRange.createFromFile ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`createIpAddressRangeContainerFromFileInput` [CreateIpAddressRangeContainerFromFileInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.ipAddressRange.removeValues:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-removeValues) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.ipAddressRange.removeValues:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container ipAddressRange removeValues -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container ipAddressRange removeValues <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container ipAddressRange removeValues "$(cat < removeValues.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container ipAddressRange removeValues '{"ipAddressRangeContainerRemoveValuesInput": {"containerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeInput": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.ipAddressRange.removeValues ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`ipAddressRangeContainerRemoveValuesInput` [IpAddressRangeContainerRemoveValuesInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - mutation.container.ipAddressRange.updateFromFile:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#mutation-updateFromFile) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for mutation.container.ipAddressRange.updateFromFile:
|
|
6
|
+
|
|
7
|
+
`catocli mutation container ipAddressRange updateFromFile -h`
|
|
8
|
+
|
|
9
|
+
`catocli mutation container ipAddressRange updateFromFile <json>`
|
|
10
|
+
|
|
11
|
+
`catocli mutation container ipAddressRange updateFromFile "$(cat < updateFromFile.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli mutation container ipAddressRange updateFromFile '{"updateIpAddressRangeContainerFromFileInput": {"containerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "fileType": {"fileType": "enum(ContainerFileType)"}, "uploadFile": {"uploadFile": "Upload"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for mutation.container.ipAddressRange.updateFromFile ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`updateIpAddressRangeContainerFromFileInput` [UpdateIpAddressRangeContainerFromFileInput] - (required) N/A
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
`catocli mutation policy internetFirewall addRule "$(cat < addRule.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli mutation policy internetFirewall addRule '{"internetFirewallAddRuleInput": {"internetFirewallAddRuleDataInput": {"action": {"action": "enum(InternetFirewallActionEnum)"}, "connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "enabled": {"enabled": "Boolean"}, "exceptions": {"connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "name": {"name": "String"}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}, "name": {"name": "String"}, "schedule": {"activeOn": {"activeOn": "enum(PolicyActiveOnEnum)"}, "customRecurring": {"days": {"days": "enum(DayOfWeek)"}, "from": {"from": "Time"}, "to": {"to": "Time"}}, "customTimeframe": {"from": {"from": "DateTime"}, "to": {"to": "DateTime"}}}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "tracking": {"alert": {"enabled": {"enabled": "Boolean"}, "frequency": {"frequency": "enum(PolicyRuleTrackingFrequencyEnum)"}, "mailingList": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subscriptionGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "webhook": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "event": {"enabled": {"enabled": "Boolean"}}}}, "policyRulePositionInput": {"position": {"position": "enum(PolicyRulePositionEnum)"}, "ref": {"ref": "ID"}}}, "internetFirewallPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
13
|
+
`catocli mutation policy internetFirewall addRule '{"internetFirewallAddRuleInput": {"internetFirewallAddRuleDataInput": {"action": {"action": "enum(InternetFirewallActionEnum)"}, "activePeriod": {"effectiveFrom": {"effectiveFrom": "DateTime"}, "expiresAt": {"expiresAt": "DateTime"}, "useEffectiveFrom": {"useEffectiveFrom": "Boolean"}, "useExpiresAt": {"useExpiresAt": "Boolean"}}, "connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "enabled": {"enabled": "Boolean"}, "exceptions": {"connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "name": {"name": "String"}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}, "name": {"name": "String"}, "schedule": {"activeOn": {"activeOn": "enum(PolicyActiveOnEnum)"}, "customRecurring": {"days": {"days": "enum(DayOfWeek)"}, "from": {"from": "Time"}, "to": {"to": "Time"}}, "customTimeframe": {"from": {"from": "DateTime"}, "to": {"to": "DateTime"}}}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "tracking": {"alert": {"enabled": {"enabled": "Boolean"}, "frequency": {"frequency": "enum(PolicyRuleTrackingFrequencyEnum)"}, "mailingList": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subscriptionGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "webhook": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "event": {"enabled": {"enabled": "Boolean"}}}}, "policyRulePositionInput": {"position": {"position": "enum(PolicyRulePositionEnum)"}, "ref": {"ref": "ID"}}}, "internetFirewallPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for mutation.policy.internetFirewall.addRule ####
|
|
16
16
|
`accountId` [ID] - (required) N/A
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
`catocli mutation policy internetFirewall updateRule "$(cat < updateRule.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli mutation policy internetFirewall updateRule '{"internetFirewallPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}, "internetFirewallUpdateRuleInput": {"id": {"id": "ID"}, "internetFirewallUpdateRuleDataInput": {"action": {"action": "enum(InternetFirewallActionEnum)"}, "connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "enabled": {"enabled": "Boolean"}, "exceptions": {"connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "name": {"name": "String"}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}, "name": {"name": "String"}, "schedule": {"activeOn": {"activeOn": "enum(PolicyActiveOnEnum)"}, "customRecurring": {"days": {"days": "enum(DayOfWeek)"}, "from": {"from": "Time"}, "to": {"to": "Time"}}, "customTimeframe": {"from": {"from": "DateTime"}, "to": {"to": "DateTime"}}}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "tracking": {"alert": {"enabled": {"enabled": "Boolean"}, "frequency": {"frequency": "enum(PolicyRuleTrackingFrequencyEnum)"}, "mailingList": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subscriptionGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "webhook": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "event": {"enabled": {"enabled": "Boolean"}}}}}}'`
|
|
13
|
+
`catocli mutation policy internetFirewall updateRule '{"internetFirewallPolicyMutationInput": {"policyMutationRevisionInput": {"id": {"id": "ID"}}}, "internetFirewallUpdateRuleInput": {"id": {"id": "ID"}, "internetFirewallUpdateRuleDataInput": {"action": {"action": "enum(InternetFirewallActionEnum)"}, "activePeriod": {"effectiveFrom": {"effectiveFrom": "DateTime"}, "expiresAt": {"expiresAt": "DateTime"}, "useEffectiveFrom": {"useEffectiveFrom": "Boolean"}, "useExpiresAt": {"useExpiresAt": "Boolean"}}, "connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "description": {"description": "String"}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "enabled": {"enabled": "Boolean"}, "exceptions": {"connectionOrigin": {"connectionOrigin": "enum(ConnectionOriginEnum)"}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "destination": {"appCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "application": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "containers": {"fqdnContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ipAddressRangeContainer": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "country": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customApp": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "customCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "domain": {"domain": ["Domain"]}, "fqdn": {"fqdn": ["Fqdn"]}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "remoteAsn": {"remoteAsn": ["Asn32"]}, "sanctionedAppsCategory": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}}, "device": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "deviceAttributes": {"category": {"category": ["String"]}, "manufacturer": {"manufacturer": ["String"]}, "model": {"model": ["String"]}, "os": {"os": ["String"]}, "osVersion": {"osVersion": ["String"]}, "type": {"type": ["String"]}}, "deviceOS": {"deviceOS": "enum(OperatingSystem)"}, "name": {"name": "String"}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}, "name": {"name": "String"}, "schedule": {"activeOn": {"activeOn": "enum(PolicyActiveOnEnum)"}, "customRecurring": {"days": {"days": "enum(DayOfWeek)"}, "from": {"from": "Time"}, "to": {"to": "Time"}}, "customTimeframe": {"from": {"from": "DateTime"}, "to": {"to": "DateTime"}}}, "service": {"custom": {"port": {"port": ["Port"]}, "portRange": {"from": {"from": "Port"}, "to": {"to": "Port"}}, "protocol": {"protocol": "enum(IpProtocol)"}}, "standard": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "source": {"floatingSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "globalIpRange": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "group": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "host": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "ip": {"ip": ["IPAddress"]}, "ipRange": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}, "networkInterface": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "site": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "siteNetworkSubnet": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subnet": {"subnet": ["NetworkSubnet"]}, "systemGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "user": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "usersGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "tracking": {"alert": {"enabled": {"enabled": "Boolean"}, "frequency": {"frequency": "enum(PolicyRuleTrackingFrequencyEnum)"}, "mailingList": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "subscriptionGroup": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "webhook": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "event": {"enabled": {"enabled": "Boolean"}}}}}}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for mutation.policy.internetFirewall.updateRule ####
|
|
16
16
|
`accountId` [ID] - (required) N/A
|