catocli 2.1.1__py3-none-any.whl → 2.1.3__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.

Files changed (564) hide show
  1. catocli/Utils/clidriver.py +207 -211
  2. catocli/Utils/cliutils.py +178 -0
  3. catocli/__init__.py +1 -1
  4. catocli/parsers/custom/customLib.py +1 -1
  5. catocli/parsers/custom/export_sites/export_sites.py +121 -133
  6. catocli/parsers/customParserApiClient.py +1195 -0
  7. catocli/parsers/custom_private/__init__.py +2 -14
  8. catocli/parsers/mutation_accountManagement/__init__.py +45 -58
  9. catocli/parsers/mutation_accountManagement_addAccount/README.md +7 -5
  10. catocli/parsers/mutation_accountManagement_removeAccount/README.md +4 -5
  11. catocli/parsers/mutation_accountManagement_updateAccount/README.md +7 -5
  12. catocli/parsers/mutation_admin/__init__.py +84 -45
  13. catocli/parsers/mutation_admin_addAdmin/README.md +7 -5
  14. catocli/parsers/mutation_admin_addServicePrincipalAdmin/README.md +19 -0
  15. catocli/parsers/mutation_admin_removeAdmin/README.md +7 -5
  16. catocli/parsers/mutation_admin_removeServicePrincipalAdmin/README.md +19 -0
  17. catocli/parsers/mutation_admin_updateAdmin/README.md +8 -6
  18. catocli/parsers/mutation_admin_updateServicePrincipalAdmin/README.md +20 -0
  19. catocli/parsers/mutation_container/__init__.py +135 -135
  20. catocli/parsers/mutation_container_delete/README.md +7 -5
  21. catocli/parsers/mutation_container_fqdn_addValues/README.md +7 -5
  22. catocli/parsers/mutation_container_fqdn_createFromFile/README.md +7 -5
  23. catocli/parsers/mutation_container_fqdn_removeValues/README.md +7 -5
  24. catocli/parsers/mutation_container_fqdn_updateFromFile/README.md +7 -5
  25. catocli/parsers/mutation_container_ipAddressRange_addValues/README.md +7 -5
  26. catocli/parsers/mutation_container_ipAddressRange_createFromFile/README.md +7 -5
  27. catocli/parsers/mutation_container_ipAddressRange_removeValues/README.md +7 -5
  28. catocli/parsers/mutation_container_ipAddressRange_updateFromFile/README.md +7 -5
  29. catocli/parsers/mutation_enterpriseDirectory/README.md +7 -0
  30. catocli/parsers/mutation_enterpriseDirectory/__init__.py +61 -0
  31. catocli/parsers/mutation_enterpriseDirectory_archiveLocation/README.md +19 -0
  32. catocli/parsers/mutation_enterpriseDirectory_createLocation/README.md +19 -0
  33. catocli/parsers/mutation_enterpriseDirectory_restoreLocation/README.md +19 -0
  34. catocli/parsers/mutation_enterpriseDirectory_updateLocation/README.md +19 -0
  35. catocli/parsers/mutation_groups/__init__.py +45 -45
  36. catocli/parsers/mutation_groups_createGroup/README.md +8 -6
  37. catocli/parsers/mutation_groups_deleteGroup/README.md +8 -6
  38. catocli/parsers/mutation_groups_updateGroup/README.md +8 -6
  39. catocli/parsers/mutation_hardware/__init__.py +16 -16
  40. catocli/parsers/mutation_hardware_updateHardwareShipping/README.md +7 -5
  41. catocli/parsers/mutation_policy/__init__.py +1302 -1302
  42. catocli/parsers/mutation_policy_appTenantRestriction_addRule/README.md +8 -6
  43. catocli/parsers/mutation_policy_appTenantRestriction_addSection/README.md +8 -6
  44. catocli/parsers/mutation_policy_appTenantRestriction_createPolicyRevision/README.md +8 -6
  45. catocli/parsers/mutation_policy_appTenantRestriction_discardPolicyRevision/README.md +8 -6
  46. catocli/parsers/mutation_policy_appTenantRestriction_moveRule/README.md +8 -6
  47. catocli/parsers/mutation_policy_appTenantRestriction_moveSection/README.md +8 -6
  48. catocli/parsers/mutation_policy_appTenantRestriction_publishPolicyRevision/README.md +8 -6
  49. catocli/parsers/mutation_policy_appTenantRestriction_removeRule/README.md +8 -6
  50. catocli/parsers/mutation_policy_appTenantRestriction_removeSection/README.md +8 -6
  51. catocli/parsers/mutation_policy_appTenantRestriction_updatePolicy/README.md +8 -6
  52. catocli/parsers/mutation_policy_appTenantRestriction_updateRule/README.md +8 -6
  53. catocli/parsers/mutation_policy_appTenantRestriction_updateSection/README.md +8 -6
  54. catocli/parsers/mutation_policy_dynamicIpAllocation_addRule/README.md +8 -6
  55. catocli/parsers/mutation_policy_dynamicIpAllocation_addSection/README.md +8 -6
  56. catocli/parsers/mutation_policy_dynamicIpAllocation_createPolicyRevision/README.md +8 -6
  57. catocli/parsers/mutation_policy_dynamicIpAllocation_discardPolicyRevision/README.md +8 -6
  58. catocli/parsers/mutation_policy_dynamicIpAllocation_moveRule/README.md +8 -6
  59. catocli/parsers/mutation_policy_dynamicIpAllocation_moveSection/README.md +8 -6
  60. catocli/parsers/mutation_policy_dynamicIpAllocation_publishPolicyRevision/README.md +8 -6
  61. catocli/parsers/mutation_policy_dynamicIpAllocation_removeRule/README.md +8 -6
  62. catocli/parsers/mutation_policy_dynamicIpAllocation_removeSection/README.md +8 -6
  63. catocli/parsers/mutation_policy_dynamicIpAllocation_updatePolicy/README.md +8 -6
  64. catocli/parsers/mutation_policy_dynamicIpAllocation_updateRule/README.md +8 -6
  65. catocli/parsers/mutation_policy_dynamicIpAllocation_updateSection/README.md +8 -6
  66. catocli/parsers/mutation_policy_internetFirewall_addRule/README.md +8 -6
  67. catocli/parsers/mutation_policy_internetFirewall_addSection/README.md +8 -6
  68. catocli/parsers/mutation_policy_internetFirewall_createPolicyRevision/README.md +8 -6
  69. catocli/parsers/mutation_policy_internetFirewall_discardPolicyRevision/README.md +8 -6
  70. catocli/parsers/mutation_policy_internetFirewall_moveRule/README.md +8 -6
  71. catocli/parsers/mutation_policy_internetFirewall_moveSection/README.md +8 -6
  72. catocli/parsers/mutation_policy_internetFirewall_publishPolicyRevision/README.md +8 -6
  73. catocli/parsers/mutation_policy_internetFirewall_removeRule/README.md +8 -6
  74. catocli/parsers/mutation_policy_internetFirewall_removeSection/README.md +8 -6
  75. catocli/parsers/mutation_policy_internetFirewall_updatePolicy/README.md +8 -6
  76. catocli/parsers/mutation_policy_internetFirewall_updateRule/README.md +8 -6
  77. catocli/parsers/mutation_policy_internetFirewall_updateSection/README.md +8 -6
  78. catocli/parsers/mutation_policy_remotePortFwd_addRule/README.md +8 -6
  79. catocli/parsers/mutation_policy_remotePortFwd_addSection/README.md +8 -6
  80. catocli/parsers/mutation_policy_remotePortFwd_createPolicyRevision/README.md +8 -6
  81. catocli/parsers/mutation_policy_remotePortFwd_discardPolicyRevision/README.md +8 -6
  82. catocli/parsers/mutation_policy_remotePortFwd_moveRule/README.md +8 -6
  83. catocli/parsers/mutation_policy_remotePortFwd_moveSection/README.md +8 -6
  84. catocli/parsers/mutation_policy_remotePortFwd_publishPolicyRevision/README.md +8 -6
  85. catocli/parsers/mutation_policy_remotePortFwd_removeRule/README.md +8 -6
  86. catocli/parsers/mutation_policy_remotePortFwd_removeSection/README.md +8 -6
  87. catocli/parsers/mutation_policy_remotePortFwd_updatePolicy/README.md +8 -6
  88. catocli/parsers/mutation_policy_remotePortFwd_updateRule/README.md +8 -6
  89. catocli/parsers/mutation_policy_remotePortFwd_updateSection/README.md +8 -6
  90. catocli/parsers/mutation_policy_socketLan_addRule/README.md +8 -6
  91. catocli/parsers/mutation_policy_socketLan_addSection/README.md +8 -6
  92. catocli/parsers/mutation_policy_socketLan_createPolicyRevision/README.md +8 -6
  93. catocli/parsers/mutation_policy_socketLan_discardPolicyRevision/README.md +8 -6
  94. catocli/parsers/mutation_policy_socketLan_moveRule/README.md +8 -6
  95. catocli/parsers/mutation_policy_socketLan_moveSection/README.md +8 -6
  96. catocli/parsers/mutation_policy_socketLan_publishPolicyRevision/README.md +8 -6
  97. catocli/parsers/mutation_policy_socketLan_removeRule/README.md +8 -6
  98. catocli/parsers/mutation_policy_socketLan_removeSection/README.md +8 -6
  99. catocli/parsers/mutation_policy_socketLan_updatePolicy/README.md +8 -6
  100. catocli/parsers/mutation_policy_socketLan_updateRule/README.md +8 -6
  101. catocli/parsers/mutation_policy_socketLan_updateSection/README.md +8 -6
  102. catocli/parsers/mutation_policy_terminalServer_addRule/README.md +8 -6
  103. catocli/parsers/mutation_policy_terminalServer_addSection/README.md +8 -6
  104. catocli/parsers/mutation_policy_terminalServer_createPolicyRevision/README.md +8 -6
  105. catocli/parsers/mutation_policy_terminalServer_discardPolicyRevision/README.md +8 -6
  106. catocli/parsers/mutation_policy_terminalServer_moveRule/README.md +8 -6
  107. catocli/parsers/mutation_policy_terminalServer_moveSection/README.md +8 -6
  108. catocli/parsers/mutation_policy_terminalServer_publishPolicyRevision/README.md +8 -6
  109. catocli/parsers/mutation_policy_terminalServer_removeRule/README.md +8 -6
  110. catocli/parsers/mutation_policy_terminalServer_removeSection/README.md +8 -6
  111. catocli/parsers/mutation_policy_terminalServer_updatePolicy/README.md +8 -6
  112. catocli/parsers/mutation_policy_terminalServer_updateRule/README.md +8 -6
  113. catocli/parsers/mutation_policy_terminalServer_updateSection/README.md +8 -6
  114. catocli/parsers/mutation_policy_wanFirewall_addRule/README.md +8 -6
  115. catocli/parsers/mutation_policy_wanFirewall_addSection/README.md +8 -6
  116. catocli/parsers/mutation_policy_wanFirewall_createPolicyRevision/README.md +8 -6
  117. catocli/parsers/mutation_policy_wanFirewall_discardPolicyRevision/README.md +8 -6
  118. catocli/parsers/mutation_policy_wanFirewall_moveRule/README.md +8 -6
  119. catocli/parsers/mutation_policy_wanFirewall_moveSection/README.md +8 -6
  120. catocli/parsers/mutation_policy_wanFirewall_publishPolicyRevision/README.md +8 -6
  121. catocli/parsers/mutation_policy_wanFirewall_removeRule/README.md +8 -6
  122. catocli/parsers/mutation_policy_wanFirewall_removeSection/README.md +8 -6
  123. catocli/parsers/mutation_policy_wanFirewall_updatePolicy/README.md +8 -6
  124. catocli/parsers/mutation_policy_wanFirewall_updateRule/README.md +8 -6
  125. catocli/parsers/mutation_policy_wanFirewall_updateSection/README.md +8 -6
  126. catocli/parsers/mutation_policy_wanNetwork_addRule/README.md +8 -6
  127. catocli/parsers/mutation_policy_wanNetwork_addSection/README.md +8 -6
  128. catocli/parsers/mutation_policy_wanNetwork_createPolicyRevision/README.md +8 -6
  129. catocli/parsers/mutation_policy_wanNetwork_discardPolicyRevision/README.md +8 -6
  130. catocli/parsers/mutation_policy_wanNetwork_moveRule/README.md +8 -6
  131. catocli/parsers/mutation_policy_wanNetwork_moveSection/README.md +8 -6
  132. catocli/parsers/mutation_policy_wanNetwork_publishPolicyRevision/README.md +8 -6
  133. catocli/parsers/mutation_policy_wanNetwork_removeRule/README.md +8 -6
  134. catocli/parsers/mutation_policy_wanNetwork_removeSection/README.md +8 -6
  135. catocli/parsers/mutation_policy_wanNetwork_updatePolicy/README.md +8 -6
  136. catocli/parsers/mutation_policy_wanNetwork_updateRule/README.md +8 -6
  137. catocli/parsers/mutation_policy_wanNetwork_updateSection/README.md +8 -6
  138. catocli/parsers/mutation_sandbox/__init__.py +27 -27
  139. catocli/parsers/mutation_sandbox_deleteReport/README.md +7 -5
  140. catocli/parsers/mutation_sandbox_uploadFile/README.md +7 -5
  141. catocli/parsers/mutation_site/__init__.py +474 -474
  142. catocli/parsers/mutation_site_addBgpPeer/README.md +7 -5
  143. catocli/parsers/mutation_site_addCloudInterconnectPhysicalConnection/README.md +7 -5
  144. catocli/parsers/mutation_site_addCloudInterconnectSite/README.md +7 -5
  145. catocli/parsers/mutation_site_addIpsecIkeV2Site/README.md +7 -5
  146. catocli/parsers/mutation_site_addIpsecIkeV2SiteTunnels/README.md +8 -6
  147. catocli/parsers/mutation_site_addNetworkRange/README.md +8 -6
  148. catocli/parsers/mutation_site_addSecondaryAwsVSocket/README.md +7 -5
  149. catocli/parsers/mutation_site_addSecondaryAzureVSocket/README.md +7 -5
  150. catocli/parsers/mutation_site_addSocketAddOnCard/README.md +7 -5
  151. catocli/parsers/mutation_site_addSocketSite/README.md +7 -5
  152. catocli/parsers/mutation_site_addStaticHost/README.md +8 -6
  153. catocli/parsers/mutation_site_assignSiteBwLicense/README.md +7 -5
  154. catocli/parsers/mutation_site_removeBgpPeer/README.md +7 -5
  155. catocli/parsers/mutation_site_removeCloudInterconnectPhysicalConnection/README.md +7 -5
  156. catocli/parsers/mutation_site_removeIpsecIkeV2SiteTunnels/README.md +8 -6
  157. catocli/parsers/mutation_site_removeNetworkRange/README.md +7 -5
  158. catocli/parsers/mutation_site_removeSecondaryAwsVSocket/README.md +7 -5
  159. catocli/parsers/mutation_site_removeSecondaryAzureVSocket/README.md +7 -5
  160. catocli/parsers/mutation_site_removeSite/README.md +7 -5
  161. catocli/parsers/mutation_site_removeSiteBwLicense/README.md +7 -5
  162. catocli/parsers/mutation_site_removeSocketAddOnCard/README.md +7 -5
  163. catocli/parsers/mutation_site_removeStaticHost/README.md +7 -5
  164. catocli/parsers/mutation_site_replaceSiteBwLicense/README.md +7 -5
  165. catocli/parsers/mutation_site_startSiteUpgrade/README.md +7 -5
  166. catocli/parsers/mutation_site_updateBgpPeer/README.md +7 -5
  167. catocli/parsers/mutation_site_updateCloudInterconnectPhysicalConnection/README.md +7 -5
  168. catocli/parsers/mutation_site_updateHa/README.md +8 -6
  169. catocli/parsers/mutation_site_updateIpsecIkeV2SiteGeneralDetails/README.md +8 -6
  170. catocli/parsers/mutation_site_updateIpsecIkeV2SiteTunnels/README.md +8 -6
  171. catocli/parsers/mutation_site_updateNetworkRange/README.md +8 -6
  172. catocli/parsers/mutation_site_updateSecondaryAwsVSocket/README.md +7 -5
  173. catocli/parsers/mutation_site_updateSecondaryAzureVSocket/README.md +7 -5
  174. catocli/parsers/mutation_site_updateSiteBwLicense/README.md +7 -5
  175. catocli/parsers/mutation_site_updateSiteGeneralDetails/README.md +8 -6
  176. catocli/parsers/mutation_site_updateSocketInterface/README.md +9 -7
  177. catocli/parsers/mutation_site_updateStaticHost/README.md +8 -6
  178. catocli/parsers/mutation_sites/__init__.py +474 -474
  179. catocli/parsers/mutation_sites_addBgpPeer/README.md +7 -5
  180. catocli/parsers/mutation_sites_addCloudInterconnectPhysicalConnection/README.md +7 -5
  181. catocli/parsers/mutation_sites_addCloudInterconnectSite/README.md +7 -5
  182. catocli/parsers/mutation_sites_addIpsecIkeV2Site/README.md +7 -5
  183. catocli/parsers/mutation_sites_addIpsecIkeV2SiteTunnels/README.md +8 -6
  184. catocli/parsers/mutation_sites_addNetworkRange/README.md +8 -6
  185. catocli/parsers/mutation_sites_addSecondaryAwsVSocket/README.md +7 -5
  186. catocli/parsers/mutation_sites_addSecondaryAzureVSocket/README.md +7 -5
  187. catocli/parsers/mutation_sites_addSocketAddOnCard/README.md +7 -5
  188. catocli/parsers/mutation_sites_addSocketSite/README.md +7 -5
  189. catocli/parsers/mutation_sites_addStaticHost/README.md +8 -6
  190. catocli/parsers/mutation_sites_assignSiteBwLicense/README.md +7 -5
  191. catocli/parsers/mutation_sites_removeBgpPeer/README.md +7 -5
  192. catocli/parsers/mutation_sites_removeCloudInterconnectPhysicalConnection/README.md +7 -5
  193. catocli/parsers/mutation_sites_removeIpsecIkeV2SiteTunnels/README.md +8 -6
  194. catocli/parsers/mutation_sites_removeNetworkRange/README.md +7 -5
  195. catocli/parsers/mutation_sites_removeSecondaryAwsVSocket/README.md +7 -5
  196. catocli/parsers/mutation_sites_removeSecondaryAzureVSocket/README.md +7 -5
  197. catocli/parsers/mutation_sites_removeSite/README.md +7 -5
  198. catocli/parsers/mutation_sites_removeSiteBwLicense/README.md +7 -5
  199. catocli/parsers/mutation_sites_removeSocketAddOnCard/README.md +7 -5
  200. catocli/parsers/mutation_sites_removeStaticHost/README.md +7 -5
  201. catocli/parsers/mutation_sites_replaceSiteBwLicense/README.md +7 -5
  202. catocli/parsers/mutation_sites_startSiteUpgrade/README.md +7 -5
  203. catocli/parsers/mutation_sites_updateBgpPeer/README.md +7 -5
  204. catocli/parsers/mutation_sites_updateCloudInterconnectPhysicalConnection/README.md +7 -5
  205. catocli/parsers/mutation_sites_updateHa/README.md +8 -6
  206. catocli/parsers/mutation_sites_updateIpsecIkeV2SiteGeneralDetails/README.md +8 -6
  207. catocli/parsers/mutation_sites_updateIpsecIkeV2SiteTunnels/README.md +8 -6
  208. catocli/parsers/mutation_sites_updateNetworkRange/README.md +8 -6
  209. catocli/parsers/mutation_sites_updateSecondaryAwsVSocket/README.md +7 -5
  210. catocli/parsers/mutation_sites_updateSecondaryAzureVSocket/README.md +7 -5
  211. catocli/parsers/mutation_sites_updateSiteBwLicense/README.md +7 -5
  212. catocli/parsers/mutation_sites_updateSiteGeneralDetails/README.md +8 -6
  213. catocli/parsers/mutation_sites_updateSocketInterface/README.md +9 -7
  214. catocli/parsers/mutation_sites_updateStaticHost/README.md +8 -6
  215. catocli/parsers/mutation_xdr/__init__.py +45 -45
  216. catocli/parsers/mutation_xdr_addStoryComment/README.md +7 -5
  217. catocli/parsers/mutation_xdr_analystFeedback/README.md +7 -6
  218. catocli/parsers/mutation_xdr_deleteStoryComment/README.md +7 -5
  219. catocli/parsers/query_accountBySubdomain/README.md +7 -5
  220. catocli/parsers/query_accountBySubdomain/__init__.py +12 -12
  221. catocli/parsers/query_accountManagement/README.md +4 -5
  222. catocli/parsers/query_accountManagement/__init__.py +12 -12
  223. catocli/parsers/query_accountMetrics/README.md +20 -18
  224. catocli/parsers/query_accountMetrics/__init__.py +12 -12
  225. catocli/parsers/query_accountRoles/README.md +7 -5
  226. catocli/parsers/query_accountRoles/__init__.py +12 -12
  227. catocli/parsers/query_accountSnapshot/README.md +8 -6
  228. catocli/parsers/query_accountSnapshot/__init__.py +12 -12
  229. catocli/parsers/query_admin/README.md +7 -5
  230. catocli/parsers/query_admin/__init__.py +12 -12
  231. catocli/parsers/query_admins/README.md +11 -9
  232. catocli/parsers/query_admins/__init__.py +12 -12
  233. catocli/parsers/query_appStats/README.md +20 -11
  234. catocli/parsers/query_appStats/__init__.py +12 -12
  235. catocli/parsers/query_appStatsTimeSeries/README.md +21 -12
  236. catocli/parsers/query_appStatsTimeSeries/__init__.py +12 -12
  237. catocli/parsers/query_auditFeed/README.md +10 -8
  238. catocli/parsers/query_auditFeed/__init__.py +12 -12
  239. catocli/parsers/query_catalogs/README.md +9 -7
  240. catocli/parsers/query_catalogs/__init__.py +12 -12
  241. catocli/parsers/query_container/README.md +13 -11
  242. catocli/parsers/query_container/__init__.py +12 -12
  243. catocli/parsers/query_devices/README.md +10 -8
  244. catocli/parsers/query_devices/__init__.py +12 -12
  245. catocli/parsers/query_enterpriseDirectory/README.md +19 -0
  246. catocli/parsers/query_enterpriseDirectory/__init__.py +16 -0
  247. catocli/parsers/query_entityLookup/README.md +19 -17
  248. catocli/parsers/query_entityLookup/__init__.py +12 -12
  249. catocli/parsers/query_events/README.md +13 -11
  250. catocli/parsers/query_events/__init__.py +12 -12
  251. catocli/parsers/query_eventsFeed/README.md +9 -7
  252. catocli/parsers/query_eventsFeed/__init__.py +12 -12
  253. catocli/parsers/query_eventsTimeSeries/README.md +14 -12
  254. catocli/parsers/query_eventsTimeSeries/__init__.py +12 -12
  255. catocli/parsers/query_groups/__init__.py +51 -51
  256. catocli/parsers/query_groups_groupList/README.md +8 -6
  257. catocli/parsers/query_groups_group_members/README.md +8 -6
  258. catocli/parsers/query_groups_whereUsed/README.md +7 -5
  259. catocli/parsers/query_hardware/README.md +7 -5
  260. catocli/parsers/query_hardware/__init__.py +12 -12
  261. catocli/parsers/query_hardwareManagement/README.md +7 -5
  262. catocli/parsers/query_hardwareManagement/__init__.py +12 -12
  263. catocli/parsers/query_licensing/README.md +4 -5
  264. catocli/parsers/query_licensing/__init__.py +12 -12
  265. catocli/parsers/query_policy/__init__.py +158 -158
  266. catocli/parsers/query_policy_appTenantRestriction_policy/README.md +7 -5
  267. catocli/parsers/query_policy_dynamicIpAllocation_policy/README.md +7 -5
  268. catocli/parsers/query_policy_internetFirewall_policy/README.md +7 -5
  269. catocli/parsers/query_policy_remotePortFwd_policy/README.md +7 -5
  270. catocli/parsers/query_policy_socketLan_policy/README.md +7 -5
  271. catocli/parsers/query_policy_terminalServer_policy/README.md +7 -5
  272. catocli/parsers/query_policy_wanFirewall_policy/README.md +7 -5
  273. catocli/parsers/query_policy_wanNetwork_policy/README.md +7 -5
  274. catocli/parsers/query_popLocations/README.md +7 -5
  275. catocli/parsers/query_popLocations/__init__.py +12 -12
  276. catocli/parsers/query_sandbox/README.md +7 -5
  277. catocli/parsers/query_sandbox/__init__.py +12 -12
  278. catocli/parsers/query_servicePrincipalAdmin/README.md +19 -0
  279. catocli/parsers/query_servicePrincipalAdmin/__init__.py +16 -0
  280. catocli/parsers/query_site/__init__.py +123 -123
  281. catocli/parsers/query_siteLocation/__init__.py +10 -10
  282. catocli/parsers/query_site_availableVersionList/README.md +7 -5
  283. catocli/parsers/query_site_bgpPeer/README.md +7 -5
  284. catocli/parsers/query_site_bgpPeerList/README.md +7 -5
  285. catocli/parsers/query_site_cloudInterconnectConnectionConnectivity/README.md +7 -5
  286. catocli/parsers/query_site_cloudInterconnectPhysicalConnection/README.md +7 -5
  287. catocli/parsers/query_site_cloudInterconnectPhysicalConnectionId/README.md +7 -5
  288. catocli/parsers/query_site_secondaryAwsVSocket/README.md +7 -5
  289. catocli/parsers/query_site_secondaryAzureVSocket/README.md +7 -5
  290. catocli/parsers/query_site_siteBgpStatus/README.md +7 -5
  291. catocli/parsers/query_socketPortMetrics/README.md +13 -11
  292. catocli/parsers/query_socketPortMetrics/__init__.py +12 -12
  293. catocli/parsers/query_socketPortMetricsTimeSeries/README.md +14 -12
  294. catocli/parsers/query_socketPortMetricsTimeSeries/__init__.py +12 -12
  295. catocli/parsers/query_subDomains/README.md +7 -5
  296. catocli/parsers/query_subDomains/__init__.py +12 -12
  297. catocli/parsers/query_xdr/__init__.py +27 -27
  298. catocli/parsers/query_xdr_stories/README.md +7 -6
  299. catocli/parsers/query_xdr_story/README.md +9 -8
  300. catocli/parsers/raw/__init__.py +9 -9
  301. {catocli-2.1.1.dist-info → catocli-2.1.3.dist-info}/METADATA +1 -1
  302. catocli-2.1.3.dist-info/RECORD +660 -0
  303. models/mutation.accountManagement.addAccount.json +5 -15
  304. models/mutation.accountManagement.updateAccount.json +1 -3
  305. models/mutation.admin.addAdmin.json +14 -35
  306. models/mutation.admin.addServicePrincipalAdmin.json +2554 -0
  307. models/mutation.admin.removeAdmin.json +1 -1
  308. models/mutation.admin.removeServicePrincipalAdmin.json +201 -0
  309. models/mutation.admin.updateAdmin.json +13 -30
  310. models/mutation.admin.updateServicePrincipalAdmin.json +2554 -0
  311. models/mutation.container.delete.json +9 -435
  312. models/mutation.container.fqdn.addValues.json +6 -11
  313. models/mutation.container.fqdn.createFromFile.json +4 -12
  314. models/mutation.container.fqdn.removeValues.json +6 -11
  315. models/mutation.container.fqdn.updateFromFile.json +5 -15
  316. models/mutation.container.ipAddressRange.addValues.json +4 -12
  317. models/mutation.container.ipAddressRange.createFromFile.json +4 -12
  318. models/mutation.container.ipAddressRange.removeValues.json +4 -12
  319. models/mutation.container.ipAddressRange.updateFromFile.json +5 -15
  320. models/mutation.enterpriseDirectory.archiveLocation.json +1046 -0
  321. models/mutation.enterpriseDirectory.createLocation.json +2521 -0
  322. models/mutation.enterpriseDirectory.restoreLocation.json +1046 -0
  323. models/mutation.enterpriseDirectory.updateLocation.json +2567 -0
  324. models/mutation.groups.createGroup.json +39 -171
  325. models/mutation.groups.deleteGroup.json +36 -162
  326. models/mutation.groups.updateGroup.json +41 -177
  327. models/mutation.hardware.updateHardwareShipping.json +18 -47
  328. models/mutation.policy.appTenantRestriction.addRule.json +50 -136
  329. models/mutation.policy.appTenantRestriction.addSection.json +4 -12
  330. models/mutation.policy.appTenantRestriction.createPolicyRevision.json +3 -9
  331. models/mutation.policy.appTenantRestriction.discardPolicyRevision.json +2 -6
  332. models/mutation.policy.appTenantRestriction.moveRule.json +4 -12
  333. models/mutation.policy.appTenantRestriction.moveSection.json +4 -12
  334. models/mutation.policy.appTenantRestriction.publishPolicyRevision.json +3 -9
  335. models/mutation.policy.appTenantRestriction.removeRule.json +2 -6
  336. models/mutation.policy.appTenantRestriction.removeSection.json +2 -6
  337. models/mutation.policy.appTenantRestriction.updatePolicy.json +2 -6
  338. models/mutation.policy.appTenantRestriction.updateRule.json +49 -133
  339. models/mutation.policy.appTenantRestriction.updateSection.json +3 -9
  340. models/mutation.policy.dynamicIpAllocation.addRule.json +15 -45
  341. models/mutation.policy.dynamicIpAllocation.addSection.json +4 -12
  342. models/mutation.policy.dynamicIpAllocation.createPolicyRevision.json +3 -9
  343. models/mutation.policy.dynamicIpAllocation.discardPolicyRevision.json +2 -6
  344. models/mutation.policy.dynamicIpAllocation.moveRule.json +4 -12
  345. models/mutation.policy.dynamicIpAllocation.moveSection.json +4 -12
  346. models/mutation.policy.dynamicIpAllocation.publishPolicyRevision.json +3 -9
  347. models/mutation.policy.dynamicIpAllocation.removeRule.json +2 -6
  348. models/mutation.policy.dynamicIpAllocation.removeSection.json +2 -6
  349. models/mutation.policy.dynamicIpAllocation.updatePolicy.json +2 -6
  350. models/mutation.policy.dynamicIpAllocation.updateRule.json +14 -42
  351. models/mutation.policy.dynamicIpAllocation.updateSection.json +3 -9
  352. models/mutation.policy.internetFirewall.addRule.json +248 -542
  353. models/mutation.policy.internetFirewall.addSection.json +4 -12
  354. models/mutation.policy.internetFirewall.createPolicyRevision.json +3 -9
  355. models/mutation.policy.internetFirewall.discardPolicyRevision.json +2 -6
  356. models/mutation.policy.internetFirewall.moveRule.json +4 -12
  357. models/mutation.policy.internetFirewall.moveSection.json +4 -12
  358. models/mutation.policy.internetFirewall.publishPolicyRevision.json +3 -9
  359. models/mutation.policy.internetFirewall.removeRule.json +2 -6
  360. models/mutation.policy.internetFirewall.removeSection.json +2 -6
  361. models/mutation.policy.internetFirewall.updatePolicy.json +2 -6
  362. models/mutation.policy.internetFirewall.updateRule.json +247 -539
  363. models/mutation.policy.internetFirewall.updateSection.json +3 -9
  364. models/mutation.policy.remotePortFwd.addRule.json +35 -91
  365. models/mutation.policy.remotePortFwd.addSection.json +4 -12
  366. models/mutation.policy.remotePortFwd.createPolicyRevision.json +3 -9
  367. models/mutation.policy.remotePortFwd.discardPolicyRevision.json +2 -6
  368. models/mutation.policy.remotePortFwd.moveRule.json +4 -12
  369. models/mutation.policy.remotePortFwd.moveSection.json +4 -12
  370. models/mutation.policy.remotePortFwd.publishPolicyRevision.json +3 -9
  371. models/mutation.policy.remotePortFwd.removeRule.json +2 -6
  372. models/mutation.policy.remotePortFwd.removeSection.json +2 -6
  373. models/mutation.policy.remotePortFwd.updatePolicy.json +2 -6
  374. models/mutation.policy.remotePortFwd.updateRule.json +34 -88
  375. models/mutation.policy.remotePortFwd.updateSection.json +3 -9
  376. models/mutation.policy.socketLan.addRule.json +78 -185
  377. models/mutation.policy.socketLan.addSection.json +4 -12
  378. models/mutation.policy.socketLan.createPolicyRevision.json +3 -9
  379. models/mutation.policy.socketLan.discardPolicyRevision.json +2 -6
  380. models/mutation.policy.socketLan.moveRule.json +4 -12
  381. models/mutation.policy.socketLan.moveSection.json +4 -12
  382. models/mutation.policy.socketLan.publishPolicyRevision.json +3 -9
  383. models/mutation.policy.socketLan.removeRule.json +2 -6
  384. models/mutation.policy.socketLan.removeSection.json +2 -6
  385. models/mutation.policy.socketLan.updatePolicy.json +2 -6
  386. models/mutation.policy.socketLan.updateRule.json +77 -182
  387. models/mutation.policy.socketLan.updateSection.json +3 -9
  388. models/mutation.policy.terminalServer.addRule.json +10 -30
  389. models/mutation.policy.terminalServer.addSection.json +4 -12
  390. models/mutation.policy.terminalServer.createPolicyRevision.json +3 -9
  391. models/mutation.policy.terminalServer.discardPolicyRevision.json +2 -6
  392. models/mutation.policy.terminalServer.moveRule.json +4 -12
  393. models/mutation.policy.terminalServer.moveSection.json +4 -12
  394. models/mutation.policy.terminalServer.publishPolicyRevision.json +3 -9
  395. models/mutation.policy.terminalServer.removeRule.json +2 -6
  396. models/mutation.policy.terminalServer.removeSection.json +2 -6
  397. models/mutation.policy.terminalServer.updatePolicy.json +2 -6
  398. models/mutation.policy.terminalServer.updateRule.json +9 -27
  399. models/mutation.policy.terminalServer.updateSection.json +3 -9
  400. models/mutation.policy.wanFirewall.addRule.json +290 -654
  401. models/mutation.policy.wanFirewall.addSection.json +4 -12
  402. models/mutation.policy.wanFirewall.createPolicyRevision.json +3 -9
  403. models/mutation.policy.wanFirewall.discardPolicyRevision.json +2 -6
  404. models/mutation.policy.wanFirewall.moveRule.json +4 -12
  405. models/mutation.policy.wanFirewall.moveSection.json +4 -12
  406. models/mutation.policy.wanFirewall.publishPolicyRevision.json +3 -9
  407. models/mutation.policy.wanFirewall.removeRule.json +2 -6
  408. models/mutation.policy.wanFirewall.removeSection.json +2 -6
  409. models/mutation.policy.wanFirewall.updatePolicy.json +2 -6
  410. models/mutation.policy.wanFirewall.updateRule.json +289 -651
  411. models/mutation.policy.wanFirewall.updateSection.json +3 -9
  412. models/mutation.policy.wanNetwork.addRule.json +204 -514
  413. models/mutation.policy.wanNetwork.addSection.json +4 -12
  414. models/mutation.policy.wanNetwork.createPolicyRevision.json +3 -9
  415. models/mutation.policy.wanNetwork.discardPolicyRevision.json +2 -6
  416. models/mutation.policy.wanNetwork.moveRule.json +4 -12
  417. models/mutation.policy.wanNetwork.moveSection.json +4 -12
  418. models/mutation.policy.wanNetwork.publishPolicyRevision.json +3 -9
  419. models/mutation.policy.wanNetwork.removeRule.json +2 -6
  420. models/mutation.policy.wanNetwork.removeSection.json +2 -6
  421. models/mutation.policy.wanNetwork.updatePolicy.json +2 -6
  422. models/mutation.policy.wanNetwork.updateRule.json +203 -511
  423. models/mutation.policy.wanNetwork.updateSection.json +3 -9
  424. models/mutation.sandbox.deleteReport.json +1 -3
  425. models/mutation.sandbox.uploadFile.json +1 -3
  426. models/mutation.site.addBgpPeer.json +48 -123
  427. models/mutation.site.addCloudInterconnectPhysicalConnection.json +12 -36
  428. models/mutation.site.addCloudInterconnectSite.json +8 -24
  429. models/mutation.site.addIpsecIkeV2Site.json +10 -30
  430. models/mutation.site.addIpsecIkeV2SiteTunnels.json +14 -40
  431. models/mutation.site.addNetworkRange.json +15 -43
  432. models/mutation.site.addSecondaryAwsVSocket.json +5 -15
  433. models/mutation.site.addSecondaryAzureVSocket.json +4 -12
  434. models/mutation.site.addSocketAddOnCard.json +4 -12
  435. models/mutation.site.addSocketSite.json +12 -36
  436. models/mutation.site.addStaticHost.json +4 -10
  437. models/mutation.site.assignSiteBwLicense.json +120 -11782
  438. models/mutation.site.removeBgpPeer.json +1 -3
  439. models/mutation.site.removeCloudInterconnectPhysicalConnection.json +1 -3
  440. models/mutation.site.removeIpsecIkeV2SiteTunnels.json +2 -4
  441. models/mutation.site.removeNetworkRange.json +1 -1
  442. models/mutation.site.removeSecondaryAwsVSocket.json +1 -1
  443. models/mutation.site.removeSecondaryAzureVSocket.json +1 -1
  444. models/mutation.site.removeSite.json +1 -1
  445. models/mutation.site.removeSiteBwLicense.json +119 -11779
  446. models/mutation.site.removeSocketAddOnCard.json +3 -9
  447. models/mutation.site.removeStaticHost.json +1 -1
  448. models/mutation.site.replaceSiteBwLicense.json +121 -11785
  449. models/mutation.site.startSiteUpgrade.json +3 -9
  450. models/mutation.site.updateBgpPeer.json +47 -120
  451. models/mutation.site.updateCloudInterconnectPhysicalConnection.json +10 -30
  452. models/mutation.site.updateHa.json +4 -10
  453. models/mutation.site.updateIpsecIkeV2SiteGeneralDetails.json +11 -24
  454. models/mutation.site.updateIpsecIkeV2SiteTunnels.json +15 -43
  455. models/mutation.site.updateNetworkRange.json +15 -43
  456. models/mutation.site.updateSecondaryAwsVSocket.json +4 -12
  457. models/mutation.site.updateSecondaryAzureVSocket.json +3 -9
  458. models/mutation.site.updateSiteBwLicense.json +120 -11782
  459. models/mutation.site.updateSiteGeneralDetails.json +14 -40
  460. models/mutation.site.updateSocketInterface.json +26 -74
  461. models/mutation.site.updateStaticHost.json +4 -10
  462. models/mutation.sites.addBgpPeer.json +48 -123
  463. models/mutation.sites.addCloudInterconnectPhysicalConnection.json +12 -36
  464. models/mutation.sites.addCloudInterconnectSite.json +8 -24
  465. models/mutation.sites.addIpsecIkeV2Site.json +10 -30
  466. models/mutation.sites.addIpsecIkeV2SiteTunnels.json +14 -40
  467. models/mutation.sites.addNetworkRange.json +15 -43
  468. models/mutation.sites.addSecondaryAwsVSocket.json +5 -15
  469. models/mutation.sites.addSecondaryAzureVSocket.json +4 -12
  470. models/mutation.sites.addSocketAddOnCard.json +4 -12
  471. models/mutation.sites.addSocketSite.json +12 -36
  472. models/mutation.sites.addStaticHost.json +4 -10
  473. models/mutation.sites.assignSiteBwLicense.json +120 -11782
  474. models/mutation.sites.removeBgpPeer.json +1 -3
  475. models/mutation.sites.removeCloudInterconnectPhysicalConnection.json +1 -3
  476. models/mutation.sites.removeIpsecIkeV2SiteTunnels.json +2 -4
  477. models/mutation.sites.removeNetworkRange.json +1 -1
  478. models/mutation.sites.removeSecondaryAwsVSocket.json +1 -1
  479. models/mutation.sites.removeSecondaryAzureVSocket.json +1 -1
  480. models/mutation.sites.removeSite.json +1 -1
  481. models/mutation.sites.removeSiteBwLicense.json +119 -11779
  482. models/mutation.sites.removeSocketAddOnCard.json +3 -9
  483. models/mutation.sites.removeStaticHost.json +1 -1
  484. models/mutation.sites.replaceSiteBwLicense.json +121 -11785
  485. models/mutation.sites.startSiteUpgrade.json +3 -9
  486. models/mutation.sites.updateBgpPeer.json +47 -120
  487. models/mutation.sites.updateCloudInterconnectPhysicalConnection.json +10 -30
  488. models/mutation.sites.updateHa.json +4 -10
  489. models/mutation.sites.updateIpsecIkeV2SiteGeneralDetails.json +11 -24
  490. models/mutation.sites.updateIpsecIkeV2SiteTunnels.json +15 -43
  491. models/mutation.sites.updateNetworkRange.json +15 -43
  492. models/mutation.sites.updateSecondaryAwsVSocket.json +4 -12
  493. models/mutation.sites.updateSecondaryAzureVSocket.json +3 -9
  494. models/mutation.sites.updateSiteBwLicense.json +120 -11782
  495. models/mutation.sites.updateSiteGeneralDetails.json +14 -40
  496. models/mutation.sites.updateSocketInterface.json +26 -74
  497. models/mutation.sites.updateStaticHost.json +4 -10
  498. models/mutation.xdr.addStoryComment.json +15 -113
  499. models/mutation.xdr.analystFeedback.json +229 -26307
  500. models/mutation.xdr.deleteStoryComment.json +15 -113
  501. models/query.accountBySubdomain.json +2 -1
  502. models/query.accountMetrics.json +15 -12
  503. models/query.accountRoles.json +1 -1
  504. models/query.accountSnapshot.json +4 -2
  505. models/query.admin.json +1 -1
  506. models/query.admins.json +7 -10
  507. models/query.appStats.json +633 -33
  508. models/query.appStatsTimeSeries.json +15 -28
  509. models/query.auditFeed.json +225 -16
  510. models/query.catalogs.json +106 -215
  511. models/query.container.json +21 -471
  512. models/query.devices.json +333 -620
  513. models/query.enterpriseDirectory.json +3596 -0
  514. models/query.entityLookup.json +15 -27
  515. models/query.events.json +1875 -33
  516. models/query.eventsFeed.json +30 -14
  517. models/query.eventsTimeSeries.json +15 -28
  518. models/query.groups.group.members.json +23 -55
  519. models/query.groups.groupList.json +87 -266
  520. models/query.groups.whereUsed.json +2 -6
  521. models/query.hardware.json +92 -192
  522. models/query.hardwareManagement.json +21 -63
  523. models/query.licensing.json +76 -11721
  524. models/query.policy.appTenantRestriction.policy.json +2 -6
  525. models/query.policy.dynamicIpAllocation.policy.json +2 -6
  526. models/query.policy.internetFirewall.policy.json +2 -6
  527. models/query.policy.remotePortFwd.policy.json +2 -6
  528. models/query.policy.socketLan.policy.json +2 -6
  529. models/query.policy.terminalServer.policy.json +2 -6
  530. models/query.policy.wanFirewall.policy.json +2 -6
  531. models/query.policy.wanNetwork.policy.json +2 -6
  532. models/query.popLocations.json +34 -74
  533. models/query.sandbox.json +44 -83
  534. models/query.servicePrincipalAdmin.json +1098 -0
  535. models/query.site.availableVersionList.json +4 -5
  536. models/query.site.bgpPeer.json +2 -6
  537. models/query.site.bgpPeerList.json +2 -6
  538. models/query.site.cloudInterconnectConnectionConnectivity.json +1 -3
  539. models/query.site.cloudInterconnectPhysicalConnection.json +1 -3
  540. models/query.site.cloudInterconnectPhysicalConnectionId.json +3 -9
  541. models/query.site.secondaryAwsVSocket.json +1 -1
  542. models/query.site.secondaryAzureVSocket.json +1 -1
  543. models/query.site.siteBgpStatus.json +2 -6
  544. models/query.socketPortMetrics.json +465 -33
  545. models/query.socketPortMetricsTimeSeries.json +15 -28
  546. models/query.subDomains.json +1 -1
  547. models/query.xdr.stories.json +306 -26440
  548. models/query.xdr.story.json +40 -26100
  549. schema/catolib.py +1255 -972
  550. schema/importSchema.py +53 -48
  551. catocli/parsers/mutation/README.md +0 -4
  552. catocli/parsers/mutation_accountManagement_disableAccount/README.md +0 -16
  553. catocli/parsers/parserApiClient.py +0 -948
  554. catocli/parsers/query/README.md +0 -3
  555. catocli-2.1.1.dist-info/RECORD +0 -645
  556. models/mutation.accountManagement.disableAccount.json +0 -545
  557. models/query.policy.json +0 -40899
  558. models/query.site.json +0 -5688
  559. schema/remove_policyid.py +0 -89
  560. schema/remove_policyid_mutations.py +0 -89
  561. {catocli-2.1.1.dist-info → catocli-2.1.3.dist-info}/WHEEL +0 -0
  562. {catocli-2.1.1.dist-info → catocli-2.1.3.dist-info}/entry_points.txt +0 -0
  563. {catocli-2.1.1.dist-info → catocli-2.1.3.dist-info}/licenses/LICENSE +0 -0
  564. {catocli-2.1.1.dist-info → catocli-2.1.3.dist-info}/top_level.txt +0 -0
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_accountBySubdomain_parse(query_subparsers):
5
- query_accountBySubdomain_parser = query_subparsers.add_parser('accountBySubdomain',
6
- help='accountBySubdomain() query operation',
7
- usage=get_help("query_accountBySubdomain"))
5
+ query_accountBySubdomain_parser = query_subparsers.add_parser('accountBySubdomain',
6
+ help='accountBySubdomain() query operation',
7
+ usage=get_help("query_accountBySubdomain"))
8
8
 
9
- query_accountBySubdomain_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_accountBySubdomain_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_accountBySubdomain_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_accountBySubdomain_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_accountBySubdomain_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_accountBySubdomain_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_accountBySubdomain_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_accountBySubdomain_parser.set_defaults(func=createRequest,operation_name='query.accountBySubdomain')
9
+ query_accountBySubdomain_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_accountBySubdomain_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_accountBySubdomain_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_accountBySubdomain_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_accountBySubdomain_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_accountBySubdomain_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_accountBySubdomain_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_accountBySubdomain_parser.set_defaults(func=createRequest,operation_name='query.accountBySubdomain')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.accountManagement:
3
- [Click here](https://api.catonetworks.com/documentation/#query-accountManagement) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.accountManagement) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.accountManagement:
6
6
 
@@ -8,9 +8,8 @@
8
8
 
9
9
  `catocli query accountManagement <json>`
10
10
 
11
- `catocli query accountManagement "$(cat < accountManagement.json)"`
12
-
13
- `catocli query accountManagement '{}'`
11
+ `catocli query accountManagement "$(cat < query.accountManagement.json)"`
14
12
 
15
13
  #### Operation Arguments for query.accountManagement ####
16
- `accountId` [ID] - (required) N/A
14
+
15
+ `accountId` [ID] - (required) N/A
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_accountManagement_parse(query_subparsers):
5
- query_accountManagement_parser = query_subparsers.add_parser('accountManagement',
6
- help='accountManagement() query operation',
7
- usage=get_help("query_accountManagement"))
5
+ query_accountManagement_parser = query_subparsers.add_parser('accountManagement',
6
+ help='accountManagement() query operation',
7
+ usage=get_help("query_accountManagement"))
8
8
 
9
- query_accountManagement_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_accountManagement_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_accountManagement_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_accountManagement_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_accountManagement_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_accountManagement_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_accountManagement_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_accountManagement_parser.set_defaults(func=createRequest,operation_name='query.accountManagement')
9
+ query_accountManagement_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_accountManagement_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_accountManagement_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_accountManagement_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_accountManagement_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_accountManagement_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_accountManagement_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_accountManagement_parser.set_defaults(func=createRequest,operation_name='query.accountManagement')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.accountMetrics:
3
- [Click here](https://api.catonetworks.com/documentation/#query-accountMetrics) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.accountMetrics) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.accountMetrics:
6
6
 
@@ -8,26 +8,28 @@
8
8
 
9
9
  `catocli query accountMetrics <json>`
10
10
 
11
- `catocli query accountMetrics "$(cat < accountMetrics.json)"`
11
+ `catocli query accountMetrics "$(cat < query.accountMetrics.json)"`
12
+
13
+ `catocli query accountMetrics '{"buckets":1,"groupDevices":true,"groupInterfaces":true,"labels":"bytesUpstream","perSecond":true,"siteIDs":["id1","id2"],"timeFrame":"example_value","toRate":true,"types":["string1","string2"],"useDefaultSizeBucket":true,"userIDs":["id1","id2"],"withMissingData":true}'`
12
14
 
13
- `catocli query accountMetrics '{"buckets": "Int", "groupDevices": "Boolean", "groupInterfaces": "Boolean", "labels": "enum(TimeseriesMetricType)", "perSecond": "Boolean", "siteIDs": ["ID"], "timeFrame": "TimeFrame", "toRate": "Boolean", "types": ["String"], "useDefaultSizeBucket": "Boolean", "userIDs": ["ID"], "withMissingData": "Boolean"}'`
14
15
 
15
16
  #### Operation Arguments for query.accountMetrics ####
16
- `accountID` [ID] - (optional) Unique Identifier of Account.
17
- `buckets` [Int] - (optional) number of buckets, defaults to 10, max 1000
18
- `groupDevices` [Boolean] - (optional) When the boolean argument groupDevices is set to __true__, then the analytics for all the
17
+
18
+ `accountID` [ID] - (required) Unique Identifier of Account.
19
+ `buckets` [Int] - (required) number of buckets, defaults to 10, max 1000
20
+ `groupDevices` [Boolean] - (required) When the boolean argument groupDevices is set to __true__, then the analytics for all the
19
21
  Sockets (usually two in high availability) are aggregated as one result.
20
22
 
21
23
  For the best results for aggregated Sockets, we recommend that there is consistent
22
- names and functionality (for example Destination) for the links on both Sockets.
23
- `groupInterfaces` [Boolean] - (optional) When the boolean argument groupInterfaces is set to __true__, then the data for all the
24
- interfaces are aggregated to a single interface.
25
- `labels` [TimeseriesMetricType[]] - (optional) N/A Default Value: ['bytesUpstream', 'bytesDownstream', 'bytesUpstreamMax', 'bytesDownstreamMax', 'packetsUpstream', 'packetsDownstream', 'lostUpstream', 'lostDownstream', 'lostUpstreamPcnt', 'lostDownstreamPcnt', 'packetsDiscardedDownstream', 'packetsDiscardedUpstream', 'packetsDiscardedUpstreamPcnt', 'packetsDiscardedDownstreamPcnt', 'jitterUpstream', 'jitterDownstream', 'bytesTotal', 'rtt', 'health', 'tunnelAge', 'lastMilePacketLoss', 'lastMileLatency']
26
- `perSecond` [Boolean] - (optional) whether to normalize the data into per second (i.e. divide by granularity)
27
- `siteIDs` [ID[]] - (optional) A list of unique IDs for each site. If specified, only sites in this list are returned. Otherwise, all sites are returned.
28
- `timeFrame` [TimeFrame] - (required) The time frame for the data that the query returns. The argument is in the format type.time value. This argument is mandatory.
29
- `toRate` [Boolean] - (optional) Normalize collected metrics as per-second values
30
- `types` [String[]] - (optional) N/A
31
- `useDefaultSizeBucket` [Boolean] - (optional) In case we want to have the default size bucket (from properties)
32
- `userIDs` [ID[]] - (optional) A list of unique IDs for each user. If specified, only users in this list are returned. Otherwise, no user metrics are returned.
33
- `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
24
+ names and functionality (for example Destination) for the links on both Sockets.
25
+ `groupInterfaces` [Boolean] - (required) When the boolean argument groupInterfaces is set to __true__, then the data for all the
26
+ interfaces are aggregated to a single interface.
27
+ `labels` [TimeseriesMetricType[]] - (required) N/A Default Value: ['bytesUpstream', 'bytesDownstream', 'bytesUpstreamMax', 'bytesDownstreamMax', 'packetsUpstream', 'packetsDownstream', 'lostUpstream', 'lostDownstream', 'lostUpstreamPcnt', 'lostDownstreamPcnt', 'packetsDiscardedDownstream', 'packetsDiscardedUpstream', 'packetsDiscardedUpstreamPcnt', 'packetsDiscardedDownstreamPcnt', 'jitterUpstream', 'jitterDownstream', 'bytesTotal', 'rtt', 'health', 'tunnelAge', 'lastMilePacketLoss', 'lastMileLatency']
28
+ `perSecond` [Boolean] - (required) whether to normalize the data into per second (i.e. divide by granularity)
29
+ `siteIDs` [ID[]] - (required) A list of unique IDs for each site. If specified, only sites in this list are returned. Otherwise, all sites are returned.
30
+ `timeFrame` [TimeFrame] - (required) The time frame for the data that the query returns. The argument is in the format type.time value. This argument is mandatory.
31
+ `toRate` [Boolean] - (required) Normalize collected metrics as per-second values
32
+ `types` [String[]] - (required) N/A
33
+ `useDefaultSizeBucket` [Boolean] - (required) In case we want to have the default size bucket (from properties)
34
+ `userIDs` [ID[]] - (required) A list of unique IDs for each user. If specified, only users in this list are returned. Otherwise, no user metrics are returned.
35
+ `withMissingData` [Boolean] - (required) If false, the data field will be set to '0' for buckets with no reported data. Otherwise it will be set to -1
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_accountMetrics_parse(query_subparsers):
5
- query_accountMetrics_parser = query_subparsers.add_parser('accountMetrics',
6
- help='accountMetrics() query operation',
7
- usage=get_help("query_accountMetrics"))
5
+ query_accountMetrics_parser = query_subparsers.add_parser('accountMetrics',
6
+ help='accountMetrics() query operation',
7
+ usage=get_help("query_accountMetrics"))
8
8
 
9
- query_accountMetrics_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_accountMetrics_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_accountMetrics_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_accountMetrics_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_accountMetrics_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_accountMetrics_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_accountMetrics_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_accountMetrics_parser.set_defaults(func=createRequest,operation_name='query.accountMetrics')
9
+ query_accountMetrics_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_accountMetrics_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_accountMetrics_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_accountMetrics_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_accountMetrics_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_accountMetrics_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_accountMetrics_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_accountMetrics_parser.set_defaults(func=createRequest,operation_name='query.accountMetrics')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.accountRoles:
3
- [Click here](https://api.catonetworks.com/documentation/#query-accountRoles) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.accountRoles) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.accountRoles:
6
6
 
@@ -8,10 +8,12 @@
8
8
 
9
9
  `catocli query accountRoles <json>`
10
10
 
11
- `catocli query accountRoles "$(cat < accountRoles.json)"`
11
+ `catocli query accountRoles "$(cat < query.accountRoles.json)"`
12
+
13
+ `catocli query accountRoles '{"accountType":"SYSTEM"}'`
12
14
 
13
- `catocli query accountRoles '{"accountType": "enum(AccountType)"}'`
14
15
 
15
16
  #### Operation Arguments for query.accountRoles ####
16
- `accountID` [ID] - (required) N/A
17
- `accountType` [AccountType] - (optional) N/A Default Value: ['SYSTEM', 'REGULAR', 'RESELLER', 'ALL']
17
+
18
+ `accountID` [ID] - (required) N/A
19
+ `accountType` [AccountType] - (required) N/A Default Value: ['SYSTEM', 'REGULAR', 'RESELLER', 'ALL']
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_accountRoles_parse(query_subparsers):
5
- query_accountRoles_parser = query_subparsers.add_parser('accountRoles',
6
- help='accountRoles() query operation',
7
- usage=get_help("query_accountRoles"))
5
+ query_accountRoles_parser = query_subparsers.add_parser('accountRoles',
6
+ help='accountRoles() query operation',
7
+ usage=get_help("query_accountRoles"))
8
8
 
9
- query_accountRoles_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_accountRoles_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_accountRoles_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_accountRoles_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_accountRoles_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_accountRoles_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_accountRoles_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_accountRoles_parser.set_defaults(func=createRequest,operation_name='query.accountRoles')
9
+ query_accountRoles_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_accountRoles_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_accountRoles_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_accountRoles_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_accountRoles_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_accountRoles_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_accountRoles_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_accountRoles_parser.set_defaults(func=createRequest,operation_name='query.accountRoles')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.accountSnapshot:
3
- [Click here](https://api.catonetworks.com/documentation/#query-accountSnapshot) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.accountSnapshot) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.accountSnapshot:
6
6
 
@@ -8,11 +8,13 @@
8
8
 
9
9
  `catocli query accountSnapshot <json>`
10
10
 
11
- `catocli query accountSnapshot "$(cat < accountSnapshot.json)"`
11
+ `catocli query accountSnapshot "$(cat < query.accountSnapshot.json)"`
12
+
13
+ `catocli query accountSnapshot '{"siteIDs":["id1","id2"],"userIDs":["id1","id2"]}'`
12
14
 
13
- `catocli query accountSnapshot '{"siteIDs": ["ID"], "userIDs": ["ID"]}'`
14
15
 
15
16
  #### Operation Arguments for query.accountSnapshot ####
16
- `accountID` [ID] - (optional) Unique Identifier of Account.
17
- `siteIDs` [ID[]] - (optional) List of Unique Site Identifiers. If specified, only sites in list will be returned
18
- `userIDs` [ID[]] - (optional) request specific IDs, regardless of if connected or not
17
+
18
+ `accountID` [ID] - (required) Unique Identifier of Account.
19
+ `siteIDs` [ID[]] - (required) List of Unique Site Identifiers. If specified, only sites in list will be returned
20
+ `userIDs` [ID[]] - (required) request specific IDs, regardless of if connected or not
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_accountSnapshot_parse(query_subparsers):
5
- query_accountSnapshot_parser = query_subparsers.add_parser('accountSnapshot',
6
- help='accountSnapshot() query operation',
7
- usage=get_help("query_accountSnapshot"))
5
+ query_accountSnapshot_parser = query_subparsers.add_parser('accountSnapshot',
6
+ help='accountSnapshot() query operation',
7
+ usage=get_help("query_accountSnapshot"))
8
8
 
9
- query_accountSnapshot_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_accountSnapshot_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_accountSnapshot_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_accountSnapshot_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_accountSnapshot_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_accountSnapshot_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_accountSnapshot_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_accountSnapshot_parser.set_defaults(func=createRequest,operation_name='query.accountSnapshot')
9
+ query_accountSnapshot_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_accountSnapshot_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_accountSnapshot_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_accountSnapshot_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_accountSnapshot_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_accountSnapshot_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_accountSnapshot_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_accountSnapshot_parser.set_defaults(func=createRequest,operation_name='query.accountSnapshot')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.admin:
3
- [Click here](https://api.catonetworks.com/documentation/#query-admin) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.admin) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.admin:
6
6
 
@@ -8,10 +8,12 @@
8
8
 
9
9
  `catocli query admin <json>`
10
10
 
11
- `catocli query admin "$(cat < admin.json)"`
11
+ `catocli query admin "$(cat < query.admin.json)"`
12
+
13
+ `catocli query admin '{"adminID":"id"}'`
12
14
 
13
- `catocli query admin '{"adminID": "ID"}'`
14
15
 
15
16
  #### Operation Arguments for query.admin ####
16
- `accountId` [ID] - (required) N/A
17
- `adminID` [ID] - (required) N/A
17
+
18
+ `accountId` [ID] - (required) N/A
19
+ `adminID` [ID] - (required) N/A
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_admin_parse(query_subparsers):
5
- query_admin_parser = query_subparsers.add_parser('admin',
6
- help='admin() query operation',
7
- usage=get_help("query_admin"))
5
+ query_admin_parser = query_subparsers.add_parser('admin',
6
+ help='admin() query operation',
7
+ usage=get_help("query_admin"))
8
8
 
9
- query_admin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_admin_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_admin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_admin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_admin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_admin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_admin_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_admin_parser.set_defaults(func=createRequest,operation_name='query.admin')
9
+ query_admin_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_admin_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_admin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_admin_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_admin_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_admin_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_admin_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_admin_parser.set_defaults(func=createRequest,operation_name='query.admin')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.admins:
3
- [Click here](https://api.catonetworks.com/documentation/#query-admins) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.admins) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.admins:
6
6
 
@@ -8,14 +8,16 @@
8
8
 
9
9
  `catocli query admins <json>`
10
10
 
11
- `catocli query admins "$(cat < admins.json)"`
11
+ `catocli query admins "$(cat < query.admins.json)"`
12
+
13
+ `catocli query admins '{"adminIDs":["id1","id2"],"from":1,"limit":1,"search":"string","sortInput":{"field":"string","order":"asc"}}'`
12
14
 
13
- `catocli query admins '{"adminIDs": ["ID"], "from": "Int", "limit": "Int", "search": "String", "sortInput": {"field": {"field": "String"}, "order": {"order": "enum(DirectionInput)"}}}'`
14
15
 
15
16
  #### Operation Arguments for query.admins ####
16
- `accountID` [ID] - (required) N/A
17
- `adminIDs` [ID[]] - (optional) N/A
18
- `from` [Int] - (optional) N/A
19
- `limit` [Int] - (optional) N/A
20
- `search` [String] - (optional) N/A
21
- `sortInput` [SortInput[]] - (optional) N/A
17
+
18
+ `accountID` [ID] - (required) N/A
19
+ `adminIDs` [ID[]] - (required) N/A
20
+ `from` [Int] - (required) N/A
21
+ `limit` [Int] - (required) N/A
22
+ `search` [String] - (required) N/A
23
+ `sortInput` [SortInput[]] - (required) N/A
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_admins_parse(query_subparsers):
5
- query_admins_parser = query_subparsers.add_parser('admins',
6
- help='admins() query operation',
7
- usage=get_help("query_admins"))
5
+ query_admins_parser = query_subparsers.add_parser('admins',
6
+ help='admins() query operation',
7
+ usage=get_help("query_admins"))
8
8
 
9
- query_admins_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_admins_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_admins_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_admins_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_admins_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_admins_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_admins_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_admins_parser.set_defaults(func=createRequest,operation_name='query.admins')
9
+ query_admins_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_admins_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_admins_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_admins_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_admins_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_admins_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_admins_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_admins_parser.set_defaults(func=createRequest,operation_name='query.admins')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.appStats:
3
- [Click here](https://api.catonetworks.com/documentation/#query-appStats) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.appStats) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.appStats:
6
6
 
@@ -8,16 +8,25 @@
8
8
 
9
9
  `catocli query appStats <json>`
10
10
 
11
- `catocli query appStats "$(cat < appStats.json)"`
11
+ `catocli query appStats "$(cat < query.appStats.json)"`
12
+
13
+ `catocli query appStats '{"appStatsFilter":{"fieldName":"ad_name","operator":"is","values":["string1","string2"]},"appStatsSort":{"fieldName":"ad_name","order":"asc"},"dimension":{"fieldName":"ad_name"},"from":1,"limit":1,"measure":{"aggType":"sum","fieldName":"ad_name","trend":true},"timeFrame":"example_value"}'`
14
+
15
+
16
+ ## Advanced Usage
17
+ # Query to export flows_created, and distinct users (user_name) for user_names for last day
18
+
19
+ `catocli query appStats '{"appStatsFilter":[],"appStatsSort":[],"dimension":[{"fieldName":"user_name"}],"measure":[{"aggType":"sum","fieldName":"flows_created"},{"aggType":"count_distinct","fieldName":"user_name"}],"timeFrame":"last.P1M"}'`
20
+
12
21
 
13
- `catocli query appStats '{"appStatsFilter": {"fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "operator": {"operator": "enum(FilterOperator)"}, "values": {"values": ["String"]}}, "appStatsSort": {"fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "order": {"order": "enum(DirectionEnum)"}}, "dimension": {"fieldName": {"fieldName": "enum(AppStatsFieldName)"}}, "from": "Int", "limit": "Int", "measure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "trend": {"trend": "Boolean"}}, "timeFrame": "TimeFrame"}'`
14
22
 
15
23
  #### Operation Arguments for query.appStats ####
16
- `accountID` [ID] - (required) Account ID
17
- `appStatsFilter` [AppStatsFilter[]] - (optional) N/A
18
- `appStatsSort` [AppStatsSort[]] - (optional) N/A
19
- `dimension` [Dimension[]] - (optional) N/A
20
- `from` [Int] - (optional) N/A
21
- `limit` [Int] - (optional) N/A
22
- `measure` [Measure[]] - (optional) N/A
23
- `timeFrame` [TimeFrame] - (required) N/A
24
+
25
+ `accountID` [ID] - (required) Account ID
26
+ `appStatsFilter` [AppStatsFilter[]] - (required) N/A
27
+ `appStatsSort` [AppStatsSort[]] - (required) N/A
28
+ `dimension` [Dimension[]] - (required) N/A
29
+ `from` [Int] - (required) N/A
30
+ `limit` [Int] - (required) N/A
31
+ `measure` [Measure[]] - (required) N/A
32
+ `timeFrame` [TimeFrame] - (required) N/A
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_appStats_parse(query_subparsers):
5
- query_appStats_parser = query_subparsers.add_parser('appStats',
6
- help='appStats() query operation',
7
- usage=get_help("query_appStats"))
5
+ query_appStats_parser = query_subparsers.add_parser('appStats',
6
+ help='appStats() query operation',
7
+ usage=get_help("query_appStats"))
8
8
 
9
- query_appStats_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_appStats_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_appStats_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_appStats_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_appStats_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_appStats_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_appStats_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_appStats_parser.set_defaults(func=createRequest,operation_name='query.appStats')
9
+ query_appStats_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_appStats_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_appStats_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_appStats_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_appStats_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_appStats_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_appStats_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_appStats_parser.set_defaults(func=createRequest,operation_name='query.appStats')
@@ -1,6 +1,6 @@
1
1
 
2
2
  ## CATO-CLI - query.appStatsTimeSeries:
3
- [Click here](https://api.catonetworks.com/documentation/#query-appStatsTimeSeries) for documentation on this operation.
3
+ [Click here](https://api.catonetworks.com/documentation/#query-query.appStatsTimeSeries) for documentation on this operation.
4
4
 
5
5
  ### Usage for query.appStatsTimeSeries:
6
6
 
@@ -8,17 +8,26 @@
8
8
 
9
9
  `catocli query appStatsTimeSeries <json>`
10
10
 
11
- `catocli query appStatsTimeSeries "$(cat < appStatsTimeSeries.json)"`
11
+ `catocli query appStatsTimeSeries "$(cat < query.appStatsTimeSeries.json)"`
12
+
13
+ `catocli query appStatsTimeSeries '{"appStatsFilter":{"fieldName":"ad_name","operator":"is","values":["string1","string2"]},"buckets":1,"dimension":{"fieldName":"ad_name"},"measure":{"aggType":"sum","fieldName":"ad_name","trend":true},"perSecond":true,"timeFrame":"example_value","useDefaultSizeBucket":true,"withMissingData":true}'`
14
+
15
+
16
+ ## Advanced Usage
17
+ # Query to export upstream, downstream and traffic for user_name and application_name for last day broken into 1 hour buckets
18
+
19
+ `catocli query appStatsTimeSeries '{"appStatsFilter":[],"buckets":24,"dimension":[{"fieldName":"user_name"},{"fieldName":"application_name"}],"measure":[{"aggType":"sum","fieldName":"upstream"},{"aggType":"sum","fieldName":"downstream"},{"aggType":"sum","fieldName":"traffic"}],"timeFrame":"last.PT5M"}'`
20
+
12
21
 
13
- `catocli query appStatsTimeSeries '{"appStatsFilter": {"fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "operator": {"operator": "enum(FilterOperator)"}, "values": {"values": ["String"]}}, "buckets": "Int", "dimension": {"fieldName": {"fieldName": "enum(AppStatsFieldName)"}}, "measure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "trend": {"trend": "Boolean"}}, "perSecond": "Boolean", "timeFrame": "TimeFrame", "useDefaultSizeBucket": "Boolean", "withMissingData": "Boolean"}'`
14
22
 
15
23
  #### Operation Arguments for query.appStatsTimeSeries ####
16
- `accountID` [ID] - (required) Account ID
17
- `appStatsFilter` [AppStatsFilter[]] - (optional) N/A
18
- `buckets` [Int] - (required) N/A
19
- `dimension` [Dimension[]] - (optional) N/A
20
- `measure` [Measure[]] - (optional) N/A
21
- `perSecond` [Boolean] - (optional) whether to normalize the data into per second (i.e. divide by granularity)
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
24
+
25
+ `accountID` [ID] - (required) Account ID
26
+ `appStatsFilter` [AppStatsFilter[]] - (required) N/A
27
+ `buckets` [Int] - (required) N/A
28
+ `dimension` [Dimension[]] - (required) N/A
29
+ `measure` [Measure[]] - (required) N/A
30
+ `perSecond` [Boolean] - (required) whether to normalize the data into per second (i.e. divide by granularity)
31
+ `timeFrame` [TimeFrame] - (required) N/A
32
+ `useDefaultSizeBucket` [Boolean] - (required) In case we want to have the default size bucket (from properties)
33
+ `withMissingData` [Boolean] - (required) If false, the data field will be set to '0' for buckets with no reported data. Otherwise it will be set to -1
@@ -1,16 +1,16 @@
1
1
 
2
- from ..parserApiClient import createRequest, get_help
2
+ from ..customParserApiClient import createRequest, get_help
3
3
 
4
4
  def query_appStatsTimeSeries_parse(query_subparsers):
5
- query_appStatsTimeSeries_parser = query_subparsers.add_parser('appStatsTimeSeries',
6
- help='appStatsTimeSeries() query operation',
7
- usage=get_help("query_appStatsTimeSeries"))
5
+ query_appStatsTimeSeries_parser = query_subparsers.add_parser('appStatsTimeSeries',
6
+ help='appStatsTimeSeries() query operation',
7
+ usage=get_help("query_appStatsTimeSeries"))
8
8
 
9
- query_appStatsTimeSeries_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
- query_appStatsTimeSeries_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_appStatsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
- query_appStatsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
- query_appStatsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
- query_appStatsTimeSeries_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
- query_appStatsTimeSeries_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_appStatsTimeSeries_parser.set_defaults(func=createRequest,operation_name='query.appStatsTimeSeries')
9
+ query_appStatsTimeSeries_parser.add_argument('json', nargs='?', default='{}', help='Variables in JSON format (defaults to empty object if not provided).')
10
+ query_appStatsTimeSeries_parser.add_argument('-accountID', help='The cato account ID to use for this operation. Overrides the account_id value in the profile setting. This is use for reseller and MSP accounts to run queries against cato sub accounts from the parent account.')
11
+ query_appStatsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print GraphQL query without sending API call')
12
+ query_appStatsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_appStatsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_appStatsTimeSeries_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_appStatsTimeSeries_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_appStatsTimeSeries_parser.set_defaults(func=createRequest,operation_name='query.appStatsTimeSeries')