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
|
@@ -6,11 +6,121 @@ def query_site_parse(query_subparsers):
|
|
|
6
6
|
help='site() query operation',
|
|
7
7
|
usage=get_help("query_site"))
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
query_site_subparsers = query_site_parser.add_subparsers()
|
|
10
|
+
|
|
11
|
+
query_site_availableVersionList_parser = query_site_subparsers.add_parser('availableVersionList',
|
|
12
|
+
help='availableVersionList() site operation',
|
|
13
|
+
usage=get_help("query_site_availableVersionList"))
|
|
14
|
+
|
|
15
|
+
query_site_availableVersionList_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
16
|
+
query_site_availableVersionList_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
17
|
+
query_site_availableVersionList_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
18
|
+
query_site_availableVersionList_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
19
|
+
query_site_availableVersionList_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
20
|
+
query_site_availableVersionList_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
21
|
+
query_site_availableVersionList_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
|
+
query_site_availableVersionList_parser.set_defaults(func=createRequest,operation_name='query.site.availableVersionList')
|
|
23
|
+
|
|
24
|
+
query_site_bgpPeer_parser = query_site_subparsers.add_parser('bgpPeer',
|
|
25
|
+
help='bgpPeer() site operation',
|
|
26
|
+
usage=get_help("query_site_bgpPeer"))
|
|
27
|
+
|
|
28
|
+
query_site_bgpPeer_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
29
|
+
query_site_bgpPeer_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
30
|
+
query_site_bgpPeer_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
31
|
+
query_site_bgpPeer_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
32
|
+
query_site_bgpPeer_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
33
|
+
query_site_bgpPeer_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
34
|
+
query_site_bgpPeer_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
35
|
+
query_site_bgpPeer_parser.set_defaults(func=createRequest,operation_name='query.site.bgpPeer')
|
|
36
|
+
|
|
37
|
+
query_site_bgpPeerList_parser = query_site_subparsers.add_parser('bgpPeerList',
|
|
38
|
+
help='bgpPeerList() site operation',
|
|
39
|
+
usage=get_help("query_site_bgpPeerList"))
|
|
40
|
+
|
|
41
|
+
query_site_bgpPeerList_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
42
|
+
query_site_bgpPeerList_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
43
|
+
query_site_bgpPeerList_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
44
|
+
query_site_bgpPeerList_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
45
|
+
query_site_bgpPeerList_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
46
|
+
query_site_bgpPeerList_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
47
|
+
query_site_bgpPeerList_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
48
|
+
query_site_bgpPeerList_parser.set_defaults(func=createRequest,operation_name='query.site.bgpPeerList')
|
|
49
|
+
|
|
50
|
+
query_site_cloudInterconnectConnectionConnectivity_parser = query_site_subparsers.add_parser('cloudInterconnectConnectionConnectivity',
|
|
51
|
+
help='cloudInterconnectConnectionConnectivity() site operation',
|
|
52
|
+
usage=get_help("query_site_cloudInterconnectConnectionConnectivity"))
|
|
53
|
+
|
|
54
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
55
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
56
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
57
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
58
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
59
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
60
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
61
|
+
query_site_cloudInterconnectConnectionConnectivity_parser.set_defaults(func=createRequest,operation_name='query.site.cloudInterconnectConnectionConnectivity')
|
|
62
|
+
|
|
63
|
+
query_site_cloudInterconnectPhysicalConnection_parser = query_site_subparsers.add_parser('cloudInterconnectPhysicalConnection',
|
|
64
|
+
help='cloudInterconnectPhysicalConnection() site operation',
|
|
65
|
+
usage=get_help("query_site_cloudInterconnectPhysicalConnection"))
|
|
66
|
+
|
|
67
|
+
query_site_cloudInterconnectPhysicalConnection_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
68
|
+
query_site_cloudInterconnectPhysicalConnection_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
69
|
+
query_site_cloudInterconnectPhysicalConnection_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
70
|
+
query_site_cloudInterconnectPhysicalConnection_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
71
|
+
query_site_cloudInterconnectPhysicalConnection_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
72
|
+
query_site_cloudInterconnectPhysicalConnection_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
73
|
+
query_site_cloudInterconnectPhysicalConnection_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
74
|
+
query_site_cloudInterconnectPhysicalConnection_parser.set_defaults(func=createRequest,operation_name='query.site.cloudInterconnectPhysicalConnection')
|
|
75
|
+
|
|
76
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser = query_site_subparsers.add_parser('cloudInterconnectPhysicalConnectionId',
|
|
77
|
+
help='cloudInterconnectPhysicalConnectionId() site operation',
|
|
78
|
+
usage=get_help("query_site_cloudInterconnectPhysicalConnectionId"))
|
|
79
|
+
|
|
80
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
81
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
82
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
83
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
84
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
85
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
86
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
87
|
+
query_site_cloudInterconnectPhysicalConnectionId_parser.set_defaults(func=createRequest,operation_name='query.site.cloudInterconnectPhysicalConnectionId')
|
|
88
|
+
|
|
89
|
+
query_site_secondaryAwsVSocket_parser = query_site_subparsers.add_parser('secondaryAwsVSocket',
|
|
90
|
+
help='secondaryAwsVSocket() site operation',
|
|
91
|
+
usage=get_help("query_site_secondaryAwsVSocket"))
|
|
92
|
+
|
|
93
|
+
query_site_secondaryAwsVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
94
|
+
query_site_secondaryAwsVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
95
|
+
query_site_secondaryAwsVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
96
|
+
query_site_secondaryAwsVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
97
|
+
query_site_secondaryAwsVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
98
|
+
query_site_secondaryAwsVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
99
|
+
query_site_secondaryAwsVSocket_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
100
|
+
query_site_secondaryAwsVSocket_parser.set_defaults(func=createRequest,operation_name='query.site.secondaryAwsVSocket')
|
|
101
|
+
|
|
102
|
+
query_site_secondaryAzureVSocket_parser = query_site_subparsers.add_parser('secondaryAzureVSocket',
|
|
103
|
+
help='secondaryAzureVSocket() site operation',
|
|
104
|
+
usage=get_help("query_site_secondaryAzureVSocket"))
|
|
105
|
+
|
|
106
|
+
query_site_secondaryAzureVSocket_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
107
|
+
query_site_secondaryAzureVSocket_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
108
|
+
query_site_secondaryAzureVSocket_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
109
|
+
query_site_secondaryAzureVSocket_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
110
|
+
query_site_secondaryAzureVSocket_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
111
|
+
query_site_secondaryAzureVSocket_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
112
|
+
query_site_secondaryAzureVSocket_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
113
|
+
query_site_secondaryAzureVSocket_parser.set_defaults(func=createRequest,operation_name='query.site.secondaryAzureVSocket')
|
|
114
|
+
|
|
115
|
+
query_site_siteBgpStatus_parser = query_site_subparsers.add_parser('siteBgpStatus',
|
|
116
|
+
help='siteBgpStatus() site operation',
|
|
117
|
+
usage=get_help("query_site_siteBgpStatus"))
|
|
118
|
+
|
|
119
|
+
query_site_siteBgpStatus_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
120
|
+
query_site_siteBgpStatus_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
121
|
+
query_site_siteBgpStatus_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
122
|
+
query_site_siteBgpStatus_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
123
|
+
query_site_siteBgpStatus_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
124
|
+
query_site_siteBgpStatus_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
125
|
+
query_site_siteBgpStatus_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
126
|
+
query_site_siteBgpStatus_parser.set_defaults(func=createRequest,operation_name='query.site.siteBgpStatus')
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.availableVersionList:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-availableVersionList) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.availableVersionList:
|
|
6
|
+
|
|
7
|
+
`catocli query site availableVersionList -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site availableVersionList <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site availableVersionList "$(cat < availableVersionList.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site availableVersionList '{"availableVersionListInput": {"platforms": {"platforms": ["String"]}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.availableVersionList ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`availableVersionListInput` [AvailableVersionListInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.bgpPeer:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-bgpPeer) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.bgpPeer:
|
|
6
|
+
|
|
7
|
+
`catocli query site bgpPeer -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site bgpPeer <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site bgpPeer "$(cat < bgpPeer.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site bgpPeer '{"bgpPeerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.bgpPeer ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`bgpPeerRefInput` [BgpPeerRefInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.bgpPeerList:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-bgpPeerList) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.bgpPeerList:
|
|
6
|
+
|
|
7
|
+
`catocli query site bgpPeerList -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site bgpPeerList <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site bgpPeerList "$(cat < bgpPeerList.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site bgpPeerList '{"bgpPeerListInput": {"siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.bgpPeerList ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`bgpPeerListInput` [BgpPeerListInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.cloudInterconnectConnectionConnectivity:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-cloudInterconnectConnectionConnectivity) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.cloudInterconnectConnectionConnectivity:
|
|
6
|
+
|
|
7
|
+
`catocli query site cloudInterconnectConnectionConnectivity -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site cloudInterconnectConnectionConnectivity <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site cloudInterconnectConnectionConnectivity "$(cat < cloudInterconnectConnectionConnectivity.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site cloudInterconnectConnectionConnectivity '{"cloudInterconnectConnectionConnectivityInput": {"id": {"id": "ID"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.cloudInterconnectConnectionConnectivity ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`cloudInterconnectConnectionConnectivityInput` [CloudInterconnectConnectionConnectivityInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.cloudInterconnectPhysicalConnection:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-cloudInterconnectPhysicalConnection) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.cloudInterconnectPhysicalConnection:
|
|
6
|
+
|
|
7
|
+
`catocli query site cloudInterconnectPhysicalConnection -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site cloudInterconnectPhysicalConnection <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site cloudInterconnectPhysicalConnection "$(cat < cloudInterconnectPhysicalConnection.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site cloudInterconnectPhysicalConnection '{"cloudInterconnectPhysicalConnectionInput": {"id": {"id": "ID"}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.cloudInterconnectPhysicalConnection ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`cloudInterconnectPhysicalConnectionInput` [CloudInterconnectPhysicalConnectionInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.cloudInterconnectPhysicalConnectionId:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-cloudInterconnectPhysicalConnectionId) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.cloudInterconnectPhysicalConnectionId:
|
|
6
|
+
|
|
7
|
+
`catocli query site cloudInterconnectPhysicalConnectionId -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site cloudInterconnectPhysicalConnectionId <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site cloudInterconnectPhysicalConnectionId "$(cat < cloudInterconnectPhysicalConnectionId.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site cloudInterconnectPhysicalConnectionId '{"cloudInterconnectPhysicalConnectionIdInput": {"haRole": {"haRole": "enum(HaRole)"}, "siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.cloudInterconnectPhysicalConnectionId ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`cloudInterconnectPhysicalConnectionIdInput` [CloudInterconnectPhysicalConnectionIdInput] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.secondaryAwsVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-secondaryAwsVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.secondaryAwsVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli query site secondaryAwsVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site secondaryAwsVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site secondaryAwsVSocket "$(cat < secondaryAwsVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site secondaryAwsVSocket '{"socketId": "ID"}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.secondaryAwsVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`socketId` [ID] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.secondaryAzureVSocket:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-secondaryAzureVSocket) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.secondaryAzureVSocket:
|
|
6
|
+
|
|
7
|
+
`catocli query site secondaryAzureVSocket -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site secondaryAzureVSocket <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site secondaryAzureVSocket "$(cat < secondaryAzureVSocket.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site secondaryAzureVSocket '{"socketId": "ID"}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.secondaryAzureVSocket ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`socketId` [ID] - (required) N/A
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.site.siteBgpStatus:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-siteBgpStatus) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.site.siteBgpStatus:
|
|
6
|
+
|
|
7
|
+
`catocli query site siteBgpStatus -h`
|
|
8
|
+
|
|
9
|
+
`catocli query site siteBgpStatus <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query site siteBgpStatus "$(cat < siteBgpStatus.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query site siteBgpStatus '{"siteBgpStatusInput": {"siteRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.site.siteBgpStatus ####
|
|
16
|
+
`accountId` [ID] - (required) N/A
|
|
17
|
+
`siteBgpStatusInput` [SiteBgpStatusInput] - (required) N/A
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.socketPortMetrics:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-socketPortMetrics) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.socketPortMetrics:
|
|
6
|
+
|
|
7
|
+
`catocli query socketPortMetrics -h`
|
|
8
|
+
|
|
9
|
+
`catocli query socketPortMetrics <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query socketPortMetrics "$(cat < socketPortMetrics.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query socketPortMetrics '{"from": "Int", "limit": "Int", "socketPortMetricsDimension": {"fieldName": {"fieldName": "enum(SocketPortMetricsFieldName)"}}, "socketPortMetricsFilter": {"fieldName": {"fieldName": "enum(SocketPortMetricsFieldName)"}, "operator": {"operator": "enum(FilterOperator)"}, "values": {"values": ["String"]}}, "socketPortMetricsMeasure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(SocketPortMetricsFieldName)"}, "trend": {"trend": "Boolean"}}, "socketPortMetricsSort": {"fieldName": {"fieldName": "enum(SocketPortMetricsFieldName)"}, "order": {"order": "enum(DirectionEnum)"}}, "timeFrame": "TimeFrame"}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.socketPortMetrics ####
|
|
16
|
+
`accountID` [ID] - (required) Account ID
|
|
17
|
+
`from` [Int] - (optional) N/A
|
|
18
|
+
`limit` [Int] - (optional) N/A
|
|
19
|
+
`socketPortMetricsDimension` [SocketPortMetricsDimension[]] - (optional) N/A
|
|
20
|
+
`socketPortMetricsFilter` [SocketPortMetricsFilter[]] - (optional) N/A
|
|
21
|
+
`socketPortMetricsMeasure` [SocketPortMetricsMeasure[]] - (optional) N/A
|
|
22
|
+
`socketPortMetricsSort` [SocketPortMetricsSort[]] - (optional) N/A
|
|
23
|
+
`timeFrame` [TimeFrame] - (required) N/A
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
from ..parserApiClient import createRequest, get_help
|
|
3
|
+
|
|
4
|
+
def query_socketPortMetrics_parse(query_subparsers):
|
|
5
|
+
query_socketPortMetrics_parser = query_subparsers.add_parser('socketPortMetrics',
|
|
6
|
+
help='socketPortMetrics() query operation',
|
|
7
|
+
usage=get_help("query_socketPortMetrics"))
|
|
8
|
+
|
|
9
|
+
query_socketPortMetrics_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
|
+
query_socketPortMetrics_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
+
query_socketPortMetrics_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
|
+
query_socketPortMetrics_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
|
+
query_socketPortMetrics_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
|
+
query_socketPortMetrics_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
15
|
+
query_socketPortMetrics_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_socketPortMetrics_parser.set_defaults(func=createRequest,operation_name='query.socketPortMetrics')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
## CATO-CLI - query.socketPortMetricsTimeSeries:
|
|
3
|
+
[Click here](https://api.catonetworks.com/documentation/#query-socketPortMetricsTimeSeries) for documentation on this operation.
|
|
4
|
+
|
|
5
|
+
### Usage for query.socketPortMetricsTimeSeries:
|
|
6
|
+
|
|
7
|
+
`catocli query socketPortMetricsTimeSeries -h`
|
|
8
|
+
|
|
9
|
+
`catocli query socketPortMetricsTimeSeries <json>`
|
|
10
|
+
|
|
11
|
+
`catocli query socketPortMetricsTimeSeries "$(cat < socketPortMetricsTimeSeries.json)"`
|
|
12
|
+
|
|
13
|
+
`catocli query socketPortMetricsTimeSeries '{"buckets": "Int", "perSecond": "Boolean", "socketPortMetricsDimension": {"fieldName": {"fieldName": "enum(SocketPortMetricsFieldName)"}}, "socketPortMetricsFilter": {"fieldName": {"fieldName": "enum(SocketPortMetricsFieldName)"}, "operator": {"operator": "enum(FilterOperator)"}, "values": {"values": ["String"]}}, "socketPortMetricsMeasure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(SocketPortMetricsFieldName)"}, "trend": {"trend": "Boolean"}}, "timeFrame": "TimeFrame", "useDefaultSizeBucket": "Boolean", "withMissingData": "Boolean"}'`
|
|
14
|
+
|
|
15
|
+
#### Operation Arguments for query.socketPortMetricsTimeSeries ####
|
|
16
|
+
`accountID` [ID] - (required) Account ID
|
|
17
|
+
`buckets` [Int] - (required) N/A
|
|
18
|
+
`perSecond` [Boolean] - (optional) whether to normalize the data into per second (i.e. divide by granularity)
|
|
19
|
+
`socketPortMetricsDimension` [SocketPortMetricsDimension[]] - (optional) N/A
|
|
20
|
+
`socketPortMetricsFilter` [SocketPortMetricsFilter[]] - (optional) N/A
|
|
21
|
+
`socketPortMetricsMeasure` [SocketPortMetricsMeasure[]] - (optional) N/A
|
|
22
|
+
`timeFrame` [TimeFrame] - (required) N/A
|
|
23
|
+
`useDefaultSizeBucket` [Boolean] - (optional) In case we want to have the default size bucket (from properties)
|
|
24
|
+
`withMissingData` [Boolean] - (optional) If false, the data field will be set to '0' for buckets with no reported data. Otherwise it will be set to -1
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
from ..parserApiClient import createRequest, get_help
|
|
3
|
+
|
|
4
|
+
def query_socketPortMetricsTimeSeries_parse(query_subparsers):
|
|
5
|
+
query_socketPortMetricsTimeSeries_parser = query_subparsers.add_parser('socketPortMetricsTimeSeries',
|
|
6
|
+
help='socketPortMetricsTimeSeries() query operation',
|
|
7
|
+
usage=get_help("query_socketPortMetricsTimeSeries"))
|
|
8
|
+
|
|
9
|
+
query_socketPortMetricsTimeSeries_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
|
|
10
|
+
query_socketPortMetricsTimeSeries_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
|
|
11
|
+
query_socketPortMetricsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
|
|
12
|
+
query_socketPortMetricsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
|
|
13
|
+
query_socketPortMetricsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
|
|
14
|
+
query_socketPortMetricsTimeSeries_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
15
|
+
query_socketPortMetricsTimeSeries_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_socketPortMetricsTimeSeries_parser.set_defaults(func=createRequest,operation_name='query.socketPortMetricsTimeSeries')
|
catocli/parsers/raw/README.md
CHANGED
|
@@ -17,17 +17,3 @@
|
|
|
17
17
|
#### Override API endpoint
|
|
18
18
|
|
|
19
19
|
`catocli raw --endpoint https://custom-api.example.com/graphql '<json>'`
|
|
20
|
-
|
|
21
|
-
#### Binary content and file uploads
|
|
22
|
-
|
|
23
|
-
Use `--binary` flag for multipart/form-data requests with file uploads:
|
|
24
|
-
|
|
25
|
-
`catocli raw --binary --file privateKey /path/to/file.pem '{ "operationName": "accountUpdate", "variables": { "update": { "cloudAccessConfiguration": { "cloudApplications": { "items": [{ "privateKey": null }] } } } }, "query": "mutation accountUpdate($update: AccountInput!) { accountUpdate(update: $update) { id } }" }'`
|
|
26
|
-
|
|
27
|
-
`catocli raw --binary --file 1 /path/to/file.pem '{ "operationName": "accountUpdate", "variables": { "update": { "version": "1234" } }, "query": "mutation { accountUpdate { id } }" }'`
|
|
28
|
-
|
|
29
|
-
The `--binary` flag enables multipart/form-data mode which is required for file uploads. Files are specified using `--file field_name file_path` where:
|
|
30
|
-
- `field_name` is the GraphQL variable path where the file should be mapped
|
|
31
|
-
- `file_path` is the local path to the file to upload
|
|
32
|
-
|
|
33
|
-
Multiple files can be uploaded by using multiple `--file` arguments.
|
catocli/parsers/raw/__init__.py
CHANGED
|
@@ -9,6 +9,4 @@ def raw_parse(raw_parser):
|
|
|
9
9
|
raw_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
|
|
10
10
|
raw_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
|
|
11
11
|
raw_parser.add_argument('--endpoint', dest='endpoint', help='Override the API endpoint URL (e.g., https://api.catonetworks.com/api/v1/graphql2)')
|
|
12
|
-
raw_parser.add_argument('--binary', action='store_true', help='Send multipart/form-data request for file uploads and binary content')
|
|
13
|
-
raw_parser.add_argument('--file', action='append', nargs=2, metavar=('FIELD', 'PATH'), dest='files', help='Add file for multipart upload. Format: --file field_name file_path')
|
|
14
12
|
raw_parser.set_defaults(func=createRawRequest,operation_name='raw')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: catocli
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Cato Networks cli wrapper for the GraphQL API.
|
|
5
5
|
Home-page: https://github.com/Cato-Networks/cato-cli
|
|
6
6
|
Author: Cato Networks
|
|
@@ -24,6 +24,7 @@ Dynamic: classifier
|
|
|
24
24
|
Dynamic: description
|
|
25
25
|
Dynamic: home-page
|
|
26
26
|
Dynamic: license
|
|
27
|
+
Dynamic: license-file
|
|
27
28
|
Dynamic: requires-dist
|
|
28
29
|
Dynamic: requires-python
|
|
29
30
|
Dynamic: summary
|