catocli 2.0.4__py3-none-any.whl → 2.1.0__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.
- catocli/Utils/clidriver.py +11 -4
- catocli/__init__.py +1 -1
- catocli/parsers/custom/export_sites/export_sites.py +20 -3
- catocli/parsers/custom/import_sites_to_tf/__init__.py +3 -1
- catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +71 -5
- catocli/parsers/mutation_accountManagement/__init__.py +13 -0
- catocli/parsers/mutation_accountManagement_disableAccount/README.md +16 -0
- 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_groups/README.md +7 -0
- catocli/parsers/mutation_groups/__init__.py +48 -0
- catocli/parsers/mutation_groups_createGroup/README.md +18 -0
- catocli/parsers/mutation_groups_deleteGroup/README.md +18 -0
- catocli/parsers/mutation_groups_updateGroup/README.md +18 -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/mutation_site/__init__.py +104 -0
- catocli/parsers/mutation_site_assignSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_removeSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_site_removeSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_site_removeSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_replaceSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_updateSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_site_updateSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_site_updateSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_site_updateSiteGeneralDetails/README.md +1 -1
- catocli/parsers/mutation_sites/__init__.py +104 -0
- catocli/parsers/mutation_sites_assignSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_removeSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_removeSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_removeSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_replaceSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_updateSecondaryAwsVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_updateSecondaryAzureVSocket/README.md +17 -0
- catocli/parsers/mutation_sites_updateSiteBwLicense/README.md +17 -0
- catocli/parsers/mutation_sites_updateSiteGeneralDetails/README.md +1 -1
- catocli/parsers/parserApiClient.py +42 -19
- catocli/parsers/query_eventsFeed/README.md +1 -1
- catocli/parsers/query_groups/README.md +7 -0
- catocli/parsers/query_groups/__init__.py +54 -0
- catocli/parsers/query_groups_group/README.md +7 -0
- catocli/parsers/query_groups_groupList/README.md +18 -0
- catocli/parsers/query_groups_group_members/README.md +18 -0
- catocli/parsers/query_groups_whereUsed/README.md +17 -0
- 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_popLocations/README.md +17 -0
- catocli/parsers/query_popLocations/__init__.py +16 -0
- catocli/parsers/query_site/README.md +0 -16
- catocli/parsers/query_site/__init__.py +118 -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_secondaryAwsVSocket/README.md +17 -0
- catocli/parsers/query_site_secondaryAzureVSocket/README.md +17 -0
- catocli/parsers/query_site_siteBgpStatus/README.md +17 -0
- catocli/parsers/query_socketPortMetrics/README.md +23 -0
- catocli/parsers/query_socketPortMetrics/__init__.py +16 -0
- catocli/parsers/query_socketPortMetricsTimeSeries/README.md +24 -0
- catocli/parsers/query_socketPortMetricsTimeSeries/__init__.py +16 -0
- catocli/parsers/raw/README.md +0 -14
- catocli/parsers/raw/__init__.py +0 -2
- {catocli-2.0.4.dist-info → catocli-2.1.0.dist-info}/METADATA +3 -2
- {catocli-2.0.4.dist-info → catocli-2.1.0.dist-info}/RECORD +300 -178
- {catocli-2.0.4.dist-info → catocli-2.1.0.dist-info}/WHEEL +1 -1
- {catocli-2.0.4.dist-info → catocli-2.1.0.dist-info}/top_level.txt +0 -1
- graphql_client/api/call_api.py +4 -3
- models/mutation.accountManagement.addAccount.json +97 -0
- models/mutation.accountManagement.disableAccount.json +545 -0
- models/mutation.accountManagement.removeAccount.json +102 -3
- models/mutation.accountManagement.updateAccount.json +97 -0
- models/mutation.admin.addAdmin.json +6 -9
- models/mutation.container.delete.json +2 -2
- 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.groups.createGroup.json +3178 -0
- models/mutation.groups.deleteGroup.json +2758 -0
- models/mutation.groups.updateGroup.json +4429 -0
- models/mutation.hardware.updateHardwareShipping.json +30 -10
- models/mutation.policy.appTenantRestriction.addRule.json +25 -25
- models/mutation.policy.appTenantRestriction.addSection.json +3 -3
- models/mutation.policy.appTenantRestriction.createPolicyRevision.json +31 -31
- models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +31 -31
- models/mutation.policy.appTenantRestriction.moveRule.json +25 -25
- models/mutation.policy.appTenantRestriction.moveSection.json +3 -3
- models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +31 -31
- models/mutation.policy.appTenantRestriction.removeRule.json +25 -25
- models/mutation.policy.appTenantRestriction.removeSection.json +3 -3
- models/mutation.policy.appTenantRestriction.updatePolicy.json +31 -31
- models/mutation.policy.appTenantRestriction.updateRule.json +25 -25
- models/mutation.policy.appTenantRestriction.updateSection.json +3 -3
- models/mutation.policy.dynamicIpAllocation.addRule.json +11 -11
- models/mutation.policy.dynamicIpAllocation.addSection.json +3 -3
- models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +17 -17
- models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +17 -17
- models/mutation.policy.dynamicIpAllocation.moveRule.json +11 -11
- models/mutation.policy.dynamicIpAllocation.moveSection.json +3 -3
- models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +17 -17
- models/mutation.policy.dynamicIpAllocation.removeRule.json +11 -11
- models/mutation.policy.dynamicIpAllocation.removeSection.json +3 -3
- models/mutation.policy.dynamicIpAllocation.updatePolicy.json +17 -17
- models/mutation.policy.dynamicIpAllocation.updateRule.json +11 -11
- models/mutation.policy.dynamicIpAllocation.updateSection.json +3 -3
- models/mutation.policy.internetFirewall.addRule.json +532 -85
- models/mutation.policy.internetFirewall.addSection.json +3 -3
- models/mutation.policy.internetFirewall.createPolicyRevision.json +208 -91
- models/mutation.policy.internetFirewall.discardPolicyRevision.json +208 -91
- models/mutation.policy.internetFirewall.moveRule.json +202 -85
- models/mutation.policy.internetFirewall.moveSection.json +3 -3
- models/mutation.policy.internetFirewall.publishPolicyRevision.json +208 -91
- models/mutation.policy.internetFirewall.removeRule.json +202 -85
- models/mutation.policy.internetFirewall.removeSection.json +3 -3
- models/mutation.policy.internetFirewall.updatePolicy.json +208 -91
- models/mutation.policy.internetFirewall.updateRule.json +523 -85
- models/mutation.policy.internetFirewall.updateSection.json +3 -3
- models/mutation.policy.remotePortFwd.addRule.json +16 -16
- models/mutation.policy.remotePortFwd.addSection.json +3 -3
- models/mutation.policy.remotePortFwd.createPolicyRevision.json +22 -22
- models/mutation.policy.remotePortFwd.discardPolicyRevision.json +22 -22
- models/mutation.policy.remotePortFwd.moveRule.json +16 -16
- models/mutation.policy.remotePortFwd.moveSection.json +3 -3
- models/mutation.policy.remotePortFwd.publishPolicyRevision.json +22 -22
- models/mutation.policy.remotePortFwd.removeRule.json +16 -16
- models/mutation.policy.remotePortFwd.removeSection.json +3 -3
- models/mutation.policy.remotePortFwd.updatePolicy.json +22 -22
- models/mutation.policy.remotePortFwd.updateRule.json +16 -16
- models/mutation.policy.remotePortFwd.updateSection.json +3 -3
- models/mutation.policy.socketLan.addRule.json +81 -81
- models/mutation.policy.socketLan.addSection.json +3 -3
- models/mutation.policy.socketLan.createPolicyRevision.json +87 -87
- models/mutation.policy.socketLan.discardPolicyRevision.json +87 -87
- models/mutation.policy.socketLan.moveRule.json +81 -81
- models/mutation.policy.socketLan.moveSection.json +3 -3
- models/mutation.policy.socketLan.publishPolicyRevision.json +87 -87
- models/mutation.policy.socketLan.removeRule.json +81 -81
- models/mutation.policy.socketLan.removeSection.json +3 -3
- models/mutation.policy.socketLan.updatePolicy.json +87 -87
- models/mutation.policy.socketLan.updateRule.json +81 -81
- models/mutation.policy.socketLan.updateSection.json +3 -3
- models/mutation.policy.terminalServer.addRule.json +6 -6
- models/mutation.policy.terminalServer.addSection.json +3 -3
- models/mutation.policy.terminalServer.createPolicyRevision.json +12 -12
- models/mutation.policy.terminalServer.discardPolicyRevision.json +12 -12
- models/mutation.policy.terminalServer.moveRule.json +6 -6
- models/mutation.policy.terminalServer.moveSection.json +3 -3
- models/mutation.policy.terminalServer.publishPolicyRevision.json +12 -12
- models/mutation.policy.terminalServer.removeRule.json +6 -6
- models/mutation.policy.terminalServer.removeSection.json +3 -3
- models/mutation.policy.terminalServer.updatePolicy.json +12 -12
- models/mutation.policy.terminalServer.updateRule.json +6 -6
- models/mutation.policy.terminalServer.updateSection.json +3 -3
- models/mutation.policy.wanFirewall.addRule.json +550 -103
- models/mutation.policy.wanFirewall.addSection.json +3 -3
- models/mutation.policy.wanFirewall.createPolicyRevision.json +226 -109
- models/mutation.policy.wanFirewall.discardPolicyRevision.json +226 -109
- models/mutation.policy.wanFirewall.moveRule.json +220 -103
- models/mutation.policy.wanFirewall.moveSection.json +3 -3
- models/mutation.policy.wanFirewall.publishPolicyRevision.json +226 -109
- models/mutation.policy.wanFirewall.removeRule.json +220 -103
- models/mutation.policy.wanFirewall.removeSection.json +3 -3
- models/mutation.policy.wanFirewall.updatePolicy.json +226 -109
- models/mutation.policy.wanFirewall.updateRule.json +541 -103
- models/mutation.policy.wanFirewall.updateSection.json +3 -3
- models/mutation.policy.wanNetwork.addRule.json +90 -90
- models/mutation.policy.wanNetwork.addSection.json +3 -3
- models/mutation.policy.wanNetwork.createPolicyRevision.json +96 -96
- models/mutation.policy.wanNetwork.discardPolicyRevision.json +96 -96
- models/mutation.policy.wanNetwork.moveRule.json +90 -90
- models/mutation.policy.wanNetwork.moveSection.json +3 -3
- models/mutation.policy.wanNetwork.publishPolicyRevision.json +96 -96
- models/mutation.policy.wanNetwork.removeRule.json +90 -90
- models/mutation.policy.wanNetwork.removeSection.json +3 -3
- models/mutation.policy.wanNetwork.updatePolicy.json +96 -96
- models/mutation.policy.wanNetwork.updateRule.json +90 -90
- models/mutation.policy.wanNetwork.updateSection.json +3 -3
- models/mutation.site.addBgpPeer.json +10 -10
- models/mutation.site.addIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.site.addSocketAddOnCard.json +2 -2
- models/mutation.site.assignSiteBwLicense.json +12879 -0
- models/mutation.site.removeBgpPeer.json +10 -10
- models/mutation.site.removeIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.site.removeSecondaryAwsVSocket.json +375 -0
- models/mutation.site.removeSecondaryAzureVSocket.json +354 -0
- models/mutation.site.removeSiteBwLicense.json +12822 -0
- models/mutation.site.removeSocketAddOnCard.json +2 -2
- models/mutation.site.replaceSiteBwLicense.json +12939 -0
- models/mutation.site.startSiteUpgrade.json +36 -15
- models/mutation.site.updateBgpPeer.json +10 -10
- models/mutation.site.updateIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.site.updateSecondaryAwsVSocket.json +643 -0
- models/mutation.site.updateSecondaryAzureVSocket.json +565 -0
- models/mutation.site.updateSiteBwLicense.json +12882 -0
- models/mutation.site.updateSiteGeneralDetails.json +724 -1
- models/mutation.sites.addBgpPeer.json +10 -10
- models/mutation.sites.addIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.sites.addSocketAddOnCard.json +2 -2
- models/mutation.sites.assignSiteBwLicense.json +12879 -0
- models/mutation.sites.removeBgpPeer.json +10 -10
- models/mutation.sites.removeIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.sites.removeSecondaryAwsVSocket.json +375 -0
- models/mutation.sites.removeSecondaryAzureVSocket.json +354 -0
- models/mutation.sites.removeSiteBwLicense.json +12822 -0
- models/mutation.sites.removeSocketAddOnCard.json +2 -2
- models/mutation.sites.replaceSiteBwLicense.json +12939 -0
- models/mutation.sites.startSiteUpgrade.json +36 -15
- models/mutation.sites.updateBgpPeer.json +10 -10
- models/mutation.sites.updateIpsecIkeV2SiteTunnels.json +2 -2
- models/mutation.sites.updateSecondaryAwsVSocket.json +643 -0
- models/mutation.sites.updateSecondaryAzureVSocket.json +565 -0
- models/mutation.sites.updateSiteBwLicense.json +12882 -0
- models/mutation.sites.updateSiteGeneralDetails.json +724 -1
- models/mutation.xdr.addStoryComment.json +1 -1
- models/mutation.xdr.analystFeedback.json +84 -84
- models/mutation.xdr.deleteStoryComment.json +1 -1
- models/query.accountManagement.json +97 -0
- models/query.accountMetrics.json +45 -45
- models/query.accountSnapshot.json +30 -30
- models/query.admin.json +6 -6
- models/query.admins.json +13 -13
- models/query.appStats.json +915 -867
- models/query.appStatsTimeSeries.json +692 -656
- models/query.auditFeed.json +6 -6
- models/query.catalogs.json +52 -52
- models/query.container.json +16 -16
- models/query.devices.json +20 -93
- models/query.entityLookup.json +2 -2
- models/query.events.json +288 -384
- models/query.eventsFeed.json +73 -97
- models/query.eventsTimeSeries.json +219 -291
- models/query.groups.group.members.json +3058 -0
- models/query.groups.groupList.json +6474 -0
- models/query.groups.whereUsed.json +697 -0
- models/query.hardware.json +27 -7
- models/query.hardwareManagement.json +8 -8
- models/query.licensing.json +3487 -1324
- 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.popLocations.json +2878 -0
- models/query.sandbox.json +5 -5
- 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.secondaryAwsVSocket.json +340 -0
- models/query.site.secondaryAzureVSocket.json +319 -0
- models/query.site.siteBgpStatus.json +869 -0
- models/query.socketPortMetrics.json +2410 -0
- models/query.socketPortMetricsTimeSeries.json +2361 -0
- models/query.xdr.stories.json +104 -104
- models/query.xdr.story.json +93 -93
- schema/catolib.py +34 -18
- schema/remove_policyid.py +89 -0
- schema/remove_policyid_mutations.py +89 -0
- {catocli-2.0.4.dist-info → catocli-2.1.0.dist-info}/entry_points.txt +0 -0
- {catocli-2.0.4.dist-info → catocli-2.1.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
from ..parserApiClient import createRequest, get_help
|
|
3
|
+
|
|
4
|
+
def query_groups_parse(query_subparsers):
|
|
5
|
+
query_groups_parser = query_subparsers.add_parser('groups',
|
|
6
|
+
help='groups() query operation',
|
|
7
|
+
usage=get_help("query_groups"))
|
|
8
|
+
|
|
9
|
+
query_groups_subparsers = query_groups_parser.add_subparsers()
|
|
10
|
+
|
|
11
|
+
query_groups_group_parser = query_groups_subparsers.add_parser('group',
|
|
12
|
+
help='group() groups operation',
|
|
13
|
+
usage=get_help("query_groups_group"))
|
|
14
|
+
|
|
15
|
+
query_groups_group_subparsers = query_groups_group_parser.add_subparsers()
|
|
16
|
+
|
|
17
|
+
query_groups_group_members_parser = query_groups_group_subparsers.add_parser('members',
|
|
18
|
+
help='members() group operation',
|
|
19
|
+
usage=get_help("query_groups_group_members"))
|
|
20
|
+
|
|
21
|
+
query_groups_group_members_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
22
|
+
query_groups_group_members_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
23
|
+
query_groups_group_members_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
24
|
+
query_groups_group_members_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
25
|
+
query_groups_group_members_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
26
|
+
query_groups_group_members_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
27
|
+
query_groups_group_members_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
28
|
+
query_groups_group_members_parser.set_defaults(func=createRequest,operation_name='query.groups.group.members')
|
|
29
|
+
|
|
30
|
+
query_groups_groupList_parser = query_groups_subparsers.add_parser('groupList',
|
|
31
|
+
help='groupList() groups operation',
|
|
32
|
+
usage=get_help("query_groups_groupList"))
|
|
33
|
+
|
|
34
|
+
query_groups_groupList_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
35
|
+
query_groups_groupList_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
36
|
+
query_groups_groupList_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
37
|
+
query_groups_groupList_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
38
|
+
query_groups_groupList_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
39
|
+
query_groups_groupList_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
40
|
+
query_groups_groupList_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
|
+
query_groups_groupList_parser.set_defaults(func=createRequest,operation_name='query.groups.groupList')
|
|
42
|
+
|
|
43
|
+
query_groups_whereUsed_parser = query_groups_subparsers.add_parser('whereUsed',
|
|
44
|
+
help='whereUsed() groups operation',
|
|
45
|
+
usage=get_help("query_groups_whereUsed"))
|
|
46
|
+
|
|
47
|
+
query_groups_whereUsed_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
48
|
+
query_groups_whereUsed_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
49
|
+
query_groups_whereUsed_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
50
|
+
query_groups_whereUsed_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
51
|
+
query_groups_whereUsed_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
52
|
+
query_groups_whereUsed_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
53
|
+
query_groups_whereUsed_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
|
+
query_groups_whereUsed_parser.set_defaults(func=createRequest,operation_name='query.groups.whereUsed')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.groups.groupList:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-groupList) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.groups.groupList:
|
|
6
|
+
|
|
7
|
+
`catocli query groups groupList -h`
|
|
8
|
+
|
|
9
|
+
`catocli query groups groupList <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query groups groupList "$(cat < groupList.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query groups groupList '{"groupListInput": {"groupListFilterInput": {"audit": {"updatedBy": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "updatedTime": {"between": {"between": ["DateTime"]}, "eq": {"eq": "DateTime"}, "gt": {"gt": "DateTime"}, "gte": {"gte": "DateTime"}, "in": {"in": ["DateTime"]}, "lt": {"lt": "DateTime"}, "lte": {"lte": "DateTime"}, "neq": {"neq": "DateTime"}, "nin": {"nin": ["DateTime"]}}}, "freeText": {"search": {"search": "String"}}, "id": {"eq": {"eq": "ID"}, "in": {"in": ["ID"]}, "neq": {"neq": "ID"}, "nin": {"nin": ["ID"]}}, "member": {"ref": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}, "type": {"type": "enum(GroupMemberRefType)"}}}, "name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}, "regex": {"regex": "String"}}}, "groupListSortInput": {"audit": {"updatedBy": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "updatedTime": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}, "groupMembersListInput": {"groupMembersListFilterInput": {"name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}, "regex": {"regex": "String"}}, "type": {"eq": {"eq": "enum(GroupMemberRefType)"}, "in": {"in": "enum(GroupMemberRefType)"}, "neq": {"neq": "enum(GroupMemberRefType)"}, "nin": {"nin": "enum(GroupMemberRefType)"}}}, "groupMembersListSortInput": {"name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "type": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.groups.groupList ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`groupListInput` [GroupListInput] - (optional) N/A
|
|
18
|
+
`groupMembersListInput` [GroupMembersListInput] - (required) N/A
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.groups.group.members:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-members) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.groups.group.members:
|
|
6
|
+
|
|
7
|
+
`catocli query groups group members -h`
|
|
8
|
+
|
|
9
|
+
`catocli query groups group members <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query groups group members "$(cat < members.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query groups group members '{"groupMembersListInput": {"groupMembersListFilterInput": {"name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}, "regex": {"regex": "String"}}, "type": {"eq": {"eq": "enum(GroupMemberRefType)"}, "in": {"in": "enum(GroupMemberRefType)"}, "neq": {"neq": "enum(GroupMemberRefType)"}, "nin": {"nin": "enum(GroupMemberRefType)"}}}, "groupMembersListSortInput": {"name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "type": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}, "groupRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.groups.group.members ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`groupMembersListInput` [GroupMembersListInput] - (required) N/A
|
|
18
|
+
`groupRefInput` [GroupRefInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.groups.whereUsed:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-whereUsed) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.groups.whereUsed:
|
|
6
|
+
|
|
7
|
+
`catocli query groups whereUsed -h`
|
|
8
|
+
|
|
9
|
+
`catocli query groups whereUsed <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query groups whereUsed "$(cat < whereUsed.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query groups whereUsed '{"groupRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.groups.whereUsed ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`groupRefInput` [GroupRefInput] - (required) N/A
|
|
@@ -5,20 +5,3 @@
|
|
|
5
5
|
### Usage for query.policy:
|
|
6
6
|
|
|
7
7
|
`catocli query policy -h`
|
|
8
|
-
|
|
9
|
-
`catocli query policy <json>`
|
|
10
|
-
|
|
11
|
-
`catocli query policy "$(cat < policy.json)"`
|
|
12
|
-
|
|
13
|
-
`catocli query policy '{"appTenantRestrictionPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "dynamicIpAllocationPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "internetFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "remotePortFwdPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "socketLanPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "terminalServerPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "wanFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "wanNetworkPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
-
|
|
15
|
-
#### Operation Arguments for query.policy ####
|
|
16
|
-
`accountId` [ID] - (required) N/A
|
|
17
|
-
`appTenantRestrictionPolicyInput` [AppTenantRestrictionPolicyInput] - (optional) N/A
|
|
18
|
-
`dynamicIpAllocationPolicyInput` [DynamicIpAllocationPolicyInput] - (optional) N/A
|
|
19
|
-
`internetFirewallPolicyInput` [InternetFirewallPolicyInput] - (optional) N/A
|
|
20
|
-
`remotePortFwdPolicyInput` [RemotePortFwdPolicyInput] - (optional) N/A
|
|
21
|
-
`socketLanPolicyInput` [SocketLanPolicyInput] - (optional) N/A
|
|
22
|
-
`terminalServerPolicyInput` [TerminalServerPolicyInput] - (optional) N/A
|
|
23
|
-
`wanFirewallPolicyInput` [WanFirewallPolicyInput] - (optional) N/A
|
|
24
|
-
`wanNetworkPolicyInput` [WanNetworkPolicyInput] - (optional) N/A
|
|
@@ -6,11 +6,156 @@ def query_policy_parse(query_subparsers):
|
|
|
6
6
|
help='policy() query operation',
|
|
7
7
|
usage=get_help("query_policy"))
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
query_policy_subparsers = query_policy_parser.add_subparsers()
|
|
10
|
+
|
|
11
|
+
query_policy_appTenantRestriction_parser = query_policy_subparsers.add_parser('appTenantRestriction',
|
|
12
|
+
help='appTenantRestriction() policy operation',
|
|
13
|
+
usage=get_help("query_policy_appTenantRestriction"))
|
|
14
|
+
|
|
15
|
+
query_policy_appTenantRestriction_subparsers = query_policy_appTenantRestriction_parser.add_subparsers()
|
|
16
|
+
|
|
17
|
+
query_policy_appTenantRestriction_policy_parser = query_policy_appTenantRestriction_subparsers.add_parser('policy',
|
|
18
|
+
help='policy() appTenantRestriction operation',
|
|
19
|
+
usage=get_help("query_policy_appTenantRestriction_policy"))
|
|
20
|
+
|
|
21
|
+
query_policy_appTenantRestriction_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
22
|
+
query_policy_appTenantRestriction_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
23
|
+
query_policy_appTenantRestriction_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
24
|
+
query_policy_appTenantRestriction_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
25
|
+
query_policy_appTenantRestriction_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
26
|
+
query_policy_appTenantRestriction_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
27
|
+
query_policy_appTenantRestriction_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
28
|
+
query_policy_appTenantRestriction_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.appTenantRestriction.policy')
|
|
29
|
+
|
|
30
|
+
query_policy_dynamicIpAllocation_parser = query_policy_subparsers.add_parser('dynamicIpAllocation',
|
|
31
|
+
help='dynamicIpAllocation() policy operation',
|
|
32
|
+
usage=get_help("query_policy_dynamicIpAllocation"))
|
|
33
|
+
|
|
34
|
+
query_policy_dynamicIpAllocation_subparsers = query_policy_dynamicIpAllocation_parser.add_subparsers()
|
|
35
|
+
|
|
36
|
+
query_policy_dynamicIpAllocation_policy_parser = query_policy_dynamicIpAllocation_subparsers.add_parser('policy',
|
|
37
|
+
help='policy() dynamicIpAllocation operation',
|
|
38
|
+
usage=get_help("query_policy_dynamicIpAllocation_policy"))
|
|
39
|
+
|
|
40
|
+
query_policy_dynamicIpAllocation_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
41
|
+
query_policy_dynamicIpAllocation_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
42
|
+
query_policy_dynamicIpAllocation_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
43
|
+
query_policy_dynamicIpAllocation_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
44
|
+
query_policy_dynamicIpAllocation_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
45
|
+
query_policy_dynamicIpAllocation_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
46
|
+
query_policy_dynamicIpAllocation_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
47
|
+
query_policy_dynamicIpAllocation_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.dynamicIpAllocation.policy')
|
|
48
|
+
|
|
49
|
+
query_policy_internetFirewall_parser = query_policy_subparsers.add_parser('internetFirewall',
|
|
50
|
+
help='internetFirewall() policy operation',
|
|
51
|
+
usage=get_help("query_policy_internetFirewall"))
|
|
52
|
+
|
|
53
|
+
query_policy_internetFirewall_subparsers = query_policy_internetFirewall_parser.add_subparsers()
|
|
54
|
+
|
|
55
|
+
query_policy_internetFirewall_policy_parser = query_policy_internetFirewall_subparsers.add_parser('policy',
|
|
56
|
+
help='policy() internetFirewall operation',
|
|
57
|
+
usage=get_help("query_policy_internetFirewall_policy"))
|
|
58
|
+
|
|
59
|
+
query_policy_internetFirewall_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
60
|
+
query_policy_internetFirewall_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
61
|
+
query_policy_internetFirewall_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
62
|
+
query_policy_internetFirewall_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
63
|
+
query_policy_internetFirewall_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
64
|
+
query_policy_internetFirewall_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
65
|
+
query_policy_internetFirewall_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
66
|
+
query_policy_internetFirewall_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.internetFirewall.policy')
|
|
67
|
+
|
|
68
|
+
query_policy_remotePortFwd_parser = query_policy_subparsers.add_parser('remotePortFwd',
|
|
69
|
+
help='remotePortFwd() policy operation',
|
|
70
|
+
usage=get_help("query_policy_remotePortFwd"))
|
|
71
|
+
|
|
72
|
+
query_policy_remotePortFwd_subparsers = query_policy_remotePortFwd_parser.add_subparsers()
|
|
73
|
+
|
|
74
|
+
query_policy_remotePortFwd_policy_parser = query_policy_remotePortFwd_subparsers.add_parser('policy',
|
|
75
|
+
help='policy() remotePortFwd operation',
|
|
76
|
+
usage=get_help("query_policy_remotePortFwd_policy"))
|
|
77
|
+
|
|
78
|
+
query_policy_remotePortFwd_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
79
|
+
query_policy_remotePortFwd_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
80
|
+
query_policy_remotePortFwd_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
81
|
+
query_policy_remotePortFwd_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
82
|
+
query_policy_remotePortFwd_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
83
|
+
query_policy_remotePortFwd_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
84
|
+
query_policy_remotePortFwd_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
85
|
+
query_policy_remotePortFwd_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.remotePortFwd.policy')
|
|
86
|
+
|
|
87
|
+
query_policy_socketLan_parser = query_policy_subparsers.add_parser('socketLan',
|
|
88
|
+
help='socketLan() policy operation',
|
|
89
|
+
usage=get_help("query_policy_socketLan"))
|
|
90
|
+
|
|
91
|
+
query_policy_socketLan_subparsers = query_policy_socketLan_parser.add_subparsers()
|
|
92
|
+
|
|
93
|
+
query_policy_socketLan_policy_parser = query_policy_socketLan_subparsers.add_parser('policy',
|
|
94
|
+
help='policy() socketLan operation',
|
|
95
|
+
usage=get_help("query_policy_socketLan_policy"))
|
|
96
|
+
|
|
97
|
+
query_policy_socketLan_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
98
|
+
query_policy_socketLan_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
99
|
+
query_policy_socketLan_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
100
|
+
query_policy_socketLan_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
101
|
+
query_policy_socketLan_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
102
|
+
query_policy_socketLan_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
103
|
+
query_policy_socketLan_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
104
|
+
query_policy_socketLan_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.socketLan.policy')
|
|
105
|
+
|
|
106
|
+
query_policy_terminalServer_parser = query_policy_subparsers.add_parser('terminalServer',
|
|
107
|
+
help='terminalServer() policy operation',
|
|
108
|
+
usage=get_help("query_policy_terminalServer"))
|
|
109
|
+
|
|
110
|
+
query_policy_terminalServer_subparsers = query_policy_terminalServer_parser.add_subparsers()
|
|
111
|
+
|
|
112
|
+
query_policy_terminalServer_policy_parser = query_policy_terminalServer_subparsers.add_parser('policy',
|
|
113
|
+
help='policy() terminalServer operation',
|
|
114
|
+
usage=get_help("query_policy_terminalServer_policy"))
|
|
115
|
+
|
|
116
|
+
query_policy_terminalServer_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
117
|
+
query_policy_terminalServer_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
118
|
+
query_policy_terminalServer_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
119
|
+
query_policy_terminalServer_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
120
|
+
query_policy_terminalServer_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
121
|
+
query_policy_terminalServer_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
122
|
+
query_policy_terminalServer_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
123
|
+
query_policy_terminalServer_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.terminalServer.policy')
|
|
124
|
+
|
|
125
|
+
query_policy_wanFirewall_parser = query_policy_subparsers.add_parser('wanFirewall',
|
|
126
|
+
help='wanFirewall() policy operation',
|
|
127
|
+
usage=get_help("query_policy_wanFirewall"))
|
|
128
|
+
|
|
129
|
+
query_policy_wanFirewall_subparsers = query_policy_wanFirewall_parser.add_subparsers()
|
|
130
|
+
|
|
131
|
+
query_policy_wanFirewall_policy_parser = query_policy_wanFirewall_subparsers.add_parser('policy',
|
|
132
|
+
help='policy() wanFirewall operation',
|
|
133
|
+
usage=get_help("query_policy_wanFirewall_policy"))
|
|
134
|
+
|
|
135
|
+
query_policy_wanFirewall_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
136
|
+
query_policy_wanFirewall_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
137
|
+
query_policy_wanFirewall_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
138
|
+
query_policy_wanFirewall_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
139
|
+
query_policy_wanFirewall_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
140
|
+
query_policy_wanFirewall_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
141
|
+
query_policy_wanFirewall_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
142
|
+
query_policy_wanFirewall_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.wanFirewall.policy')
|
|
143
|
+
|
|
144
|
+
query_policy_wanNetwork_parser = query_policy_subparsers.add_parser('wanNetwork',
|
|
145
|
+
help='wanNetwork() policy operation',
|
|
146
|
+
usage=get_help("query_policy_wanNetwork"))
|
|
147
|
+
|
|
148
|
+
query_policy_wanNetwork_subparsers = query_policy_wanNetwork_parser.add_subparsers()
|
|
149
|
+
|
|
150
|
+
query_policy_wanNetwork_policy_parser = query_policy_wanNetwork_subparsers.add_parser('policy',
|
|
151
|
+
help='policy() wanNetwork operation',
|
|
152
|
+
usage=get_help("query_policy_wanNetwork_policy"))
|
|
153
|
+
|
|
154
|
+
query_policy_wanNetwork_policy_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
155
|
+
query_policy_wanNetwork_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
156
|
+
query_policy_wanNetwork_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
157
|
+
query_policy_wanNetwork_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
158
|
+
query_policy_wanNetwork_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
159
|
+
query_policy_wanNetwork_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
160
|
+
query_policy_wanNetwork_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
161
|
+
query_policy_wanNetwork_policy_parser.set_defaults(func=createRequest,operation_name='query.policy.wanNetwork.policy')
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.appTenantRestriction:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-appTenantRestriction) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.appTenantRestriction:
|
|
6
|
+
|
|
7
|
+
`catocli query policy appTenantRestriction -h`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.appTenantRestriction.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.appTenantRestriction.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy appTenantRestriction policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy appTenantRestriction policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy appTenantRestriction policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy appTenantRestriction policy '{"appTenantRestrictionPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.appTenantRestriction.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`appTenantRestrictionPolicyInput` [AppTenantRestrictionPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.dynamicIpAllocation:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-dynamicIpAllocation) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.dynamicIpAllocation:
|
|
6
|
+
|
|
7
|
+
`catocli query policy dynamicIpAllocation -h`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.dynamicIpAllocation.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.dynamicIpAllocation.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy dynamicIpAllocation policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy dynamicIpAllocation policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy dynamicIpAllocation policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy dynamicIpAllocation policy '{"dynamicIpAllocationPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.dynamicIpAllocation.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`dynamicIpAllocationPolicyInput` [DynamicIpAllocationPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.internetFirewall.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.internetFirewall.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy internetFirewall policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy internetFirewall policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy internetFirewall policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy internetFirewall policy '{"internetFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.internetFirewall.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`internetFirewallPolicyInput` [InternetFirewallPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.remotePortFwd.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.remotePortFwd.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy remotePortFwd policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy remotePortFwd policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy remotePortFwd policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy remotePortFwd policy '{"remotePortFwdPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.remotePortFwd.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`remotePortFwdPolicyInput` [RemotePortFwdPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.socketLan.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.socketLan.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy socketLan policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy socketLan policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy socketLan policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy socketLan policy '{"socketLanPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.socketLan.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`socketLanPolicyInput` [SocketLanPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.terminalServer.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.terminalServer.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy terminalServer policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy terminalServer policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy terminalServer policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy terminalServer policy '{"terminalServerPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.terminalServer.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`terminalServerPolicyInput` [TerminalServerPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.wanFirewall.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.wanFirewall.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy wanFirewall policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy wanFirewall policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy wanFirewall policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy wanFirewall policy '{"wanFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.wanFirewall.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`wanFirewallPolicyInput` [WanFirewallPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.policy.wanNetwork.policy:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-policy) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.policy.wanNetwork.policy:
|
|
6
|
+
|
|
7
|
+
`catocli query policy wanNetwork policy -h`
|
|
8
|
+
|
|
9
|
+
`catocli query policy wanNetwork policy <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query policy wanNetwork policy "$(cat < policy.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query policy wanNetwork policy '{"wanNetworkPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.policy.wanNetwork.policy ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`wanNetworkPolicyInput` [WanNetworkPolicyInput] - (optional) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.popLocations:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-popLocations) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.popLocations:
|
|
6
|
+
|
|
7
|
+
`catocli query popLocations -h`
|
|
8
|
+
|
|
9
|
+
`catocli query popLocations <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query popLocations "$(cat < popLocations.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query popLocations '{"popLocationFilterInput": {"booleanFilterInput": {"eq": {"eq": "Boolean"}, "neq": {"neq": "Boolean"}}, "countryRefFilterInput": {"eq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "in": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "neq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "nin": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "idFilterInput": {"eq": {"eq": "ID"}, "in": {"in": ["ID"]}, "neq": {"neq": "ID"}, "nin": {"nin": ["ID"]}}, "popLocationCloudInterconnectFilterInput": {"taggingMethod": {"eq": {"eq": "enum(TaggingMethod)"}, "in": {"in": "enum(TaggingMethod)"}, "neq": {"neq": "enum(TaggingMethod)"}, "nin": {"nin": "enum(TaggingMethod)"}}}, "stringFilterInput": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.popLocations ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`popLocationFilterInput` [PopLocationFilterInput] - (optional) N/A
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
from ..parserApiClient import createRequest, get_help
|
|
3
|
+
|
|
4
|
+
def query_popLocations_parse(query_subparsers):
|
|
5
|
+
query_popLocations_parser = query_subparsers.add_parser('popLocations',
|
|
6
|
+
help='popLocations() query operation',
|
|
7
|
+
usage=get_help("query_popLocations"))
|
|
8
|
+
|
|
9
|
+
query_popLocations_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
|
+
query_popLocations_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
+
query_popLocations_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
|
+
query_popLocations_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
|
+
query_popLocations_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
|
+
query_popLocations_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
15
|
+
query_popLocations_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
16
|
+
query_popLocations_parser.set_defaults(func=createRequest,operation_name='query.popLocations')
|
|
@@ -5,19 +5,3 @@
|
|
|
5
5
|
### Usage for query.site:
|
|
6
6
|
|
|
7
7
|
`catocli query site -h`
|
|
8
|
-
|
|
9
|
-
`catocli query site <json>`
|
|
10
|
-
|
|
11
|
-
`catocli query site "$(cat < site.json)"`
|
|
12
|
-
|
|
13
|
-
`catocli query site '{"availableVersionListInput": {"platforms": {"platforms": ["String"]}}, "bgpPeerListInput": {"siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "bgpPeerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "cloudInterconnectConnectionConnectivityInput": {"id": {"id": "ID"}}, "cloudInterconnectPhysicalConnectionIdInput": {"haRole": {"haRole": "enum(HaRole)"}, "siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "cloudInterconnectPhysicalConnectionInput": {"id": {"id": "ID"}}, "siteBgpStatusInput": {"siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
-
|
|
15
|
-
#### Operation Arguments for query.site ####
|
|
16
|
-
`accountId` [ID] - (required) N/A
|
|
17
|
-
`availableVersionListInput` [AvailableVersionListInput] - (required) N/A
|
|
18
|
-
`bgpPeerListInput` [BgpPeerListInput] - (required) N/A
|
|
19
|
-
`bgpPeerRefInput` [BgpPeerRefInput] - (required) N/A
|
|
20
|
-
`cloudInterconnectConnectionConnectivityInput` [CloudInterconnectConnectionConnectivityInput] - (required) N/A
|
|
21
|
-
`cloudInterconnectPhysicalConnectionIdInput` [CloudInterconnectPhysicalConnectionIdInput] - (required) N/A
|
|
22
|
-
`cloudInterconnectPhysicalConnectionInput` [CloudInterconnectPhysicalConnectionInput] - (required) N/A
|
|
23
|
-
`siteBgpStatusInput` [SiteBgpStatusInput] - (required) N/A
|