catocli 2.0.0__py3-none-any.whl → 2.0.2__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 (104) hide show
  1. catocli/Utils/clidriver.py +37 -5
  2. catocli/__init__.py +1 -1
  3. catocli/parsers/custom/__init__.py +3 -2
  4. catocli/parsers/custom/customLib.py +252 -1
  5. catocli/parsers/custom/export_rules/__init__.py +5 -1
  6. catocli/parsers/custom/export_rules/export_rules.py +31 -182
  7. catocli/parsers/custom/export_sites/__init__.py +20 -0
  8. catocli/parsers/custom/export_sites/export_sites.py +233 -0
  9. catocli/parsers/custom/import_rules_to_tf/__init__.py +2 -2
  10. catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +21 -11
  11. catocli/parsers/mutation_accountManagement/__init__.py +15 -18
  12. catocli/parsers/mutation_admin/__init__.py +15 -18
  13. catocli/parsers/mutation_container/__init__.py +5 -6
  14. catocli/parsers/mutation_hardware/__init__.py +5 -6
  15. catocli/parsers/mutation_policy/__init__.py +582 -504
  16. catocli/parsers/mutation_policy_terminalServer/README.md +7 -0
  17. catocli/parsers/mutation_policy_terminalServer_addRule/README.md +18 -0
  18. catocli/parsers/mutation_policy_terminalServer_addSection/README.md +18 -0
  19. catocli/parsers/mutation_policy_terminalServer_createPolicyRevision/README.md +18 -0
  20. catocli/parsers/mutation_policy_terminalServer_discardPolicyRevision/README.md +18 -0
  21. catocli/parsers/mutation_policy_terminalServer_moveRule/README.md +18 -0
  22. catocli/parsers/mutation_policy_terminalServer_moveSection/README.md +18 -0
  23. catocli/parsers/mutation_policy_terminalServer_publishPolicyRevision/README.md +18 -0
  24. catocli/parsers/mutation_policy_terminalServer_removeRule/README.md +18 -0
  25. catocli/parsers/mutation_policy_terminalServer_removeSection/README.md +18 -0
  26. catocli/parsers/mutation_policy_terminalServer_updatePolicy/README.md +18 -0
  27. catocli/parsers/mutation_policy_terminalServer_updateRule/README.md +18 -0
  28. catocli/parsers/mutation_policy_terminalServer_updateSection/README.md +18 -0
  29. catocli/parsers/mutation_sandbox/__init__.py +10 -12
  30. catocli/parsers/mutation_site/__init__.py +164 -150
  31. catocli/parsers/mutation_site_addSocketAddOnCard/README.md +17 -0
  32. catocli/parsers/mutation_site_removeSocketAddOnCard/README.md +17 -0
  33. catocli/parsers/mutation_site_startSiteUpgrade/README.md +17 -0
  34. catocli/parsers/mutation_sites/__init__.py +164 -150
  35. catocli/parsers/mutation_sites_addSocketAddOnCard/README.md +17 -0
  36. catocli/parsers/mutation_sites_removeSocketAddOnCard/README.md +17 -0
  37. catocli/parsers/mutation_sites_startSiteUpgrade/README.md +17 -0
  38. catocli/parsers/mutation_xdr/__init__.py +15 -18
  39. catocli/parsers/query_accountBySubdomain/__init__.py +5 -6
  40. catocli/parsers/query_accountManagement/__init__.py +5 -6
  41. catocli/parsers/query_accountMetrics/__init__.py +5 -6
  42. catocli/parsers/query_accountRoles/__init__.py +5 -6
  43. catocli/parsers/query_accountSnapshot/__init__.py +5 -6
  44. catocli/parsers/query_admin/__init__.py +5 -6
  45. catocli/parsers/query_admins/__init__.py +5 -6
  46. catocli/parsers/query_appStats/__init__.py +5 -6
  47. catocli/parsers/query_appStatsTimeSeries/__init__.py +5 -6
  48. catocli/parsers/query_auditFeed/__init__.py +5 -6
  49. catocli/parsers/query_catalogs/__init__.py +5 -6
  50. catocli/parsers/query_container/__init__.py +5 -6
  51. catocli/parsers/query_devices/README.md +2 -1
  52. catocli/parsers/query_devices/__init__.py +5 -6
  53. catocli/parsers/query_entityLookup/__init__.py +5 -6
  54. catocli/parsers/query_events/__init__.py +5 -6
  55. catocli/parsers/query_eventsFeed/README.md +1 -1
  56. catocli/parsers/query_eventsFeed/__init__.py +5 -6
  57. catocli/parsers/query_eventsTimeSeries/__init__.py +5 -6
  58. catocli/parsers/query_hardware/__init__.py +5 -6
  59. catocli/parsers/query_hardwareManagement/__init__.py +5 -6
  60. catocli/parsers/query_licensing/__init__.py +5 -6
  61. catocli/parsers/query_policy/README.md +2 -1
  62. catocli/parsers/query_policy/__init__.py +5 -6
  63. catocli/parsers/query_sandbox/__init__.py +5 -6
  64. catocli/parsers/query_site/README.md +2 -1
  65. catocli/parsers/query_site/__init__.py +5 -6
  66. catocli/parsers/query_siteLocation/__init__.py +3 -7
  67. catocli/parsers/query_subDomains/__init__.py +5 -6
  68. catocli/parsers/query_xdr/__init__.py +10 -12
  69. catocli/parsers/raw/__init__.py +2 -0
  70. {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/METADATA +1 -1
  71. {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/RECORD +104 -65
  72. graphql_client/api/call_api.py +12 -6
  73. models/mutation.policy.remotePortFwd.updateRule.json +6 -6
  74. models/mutation.policy.terminalServer.addRule.json +2403 -0
  75. models/mutation.policy.terminalServer.addSection.json +1358 -0
  76. models/mutation.policy.terminalServer.createPolicyRevision.json +1873 -0
  77. models/mutation.policy.terminalServer.discardPolicyRevision.json +1807 -0
  78. models/mutation.policy.terminalServer.moveRule.json +1605 -0
  79. models/mutation.policy.terminalServer.moveSection.json +1259 -0
  80. models/mutation.policy.terminalServer.publishPolicyRevision.json +1864 -0
  81. models/mutation.policy.terminalServer.removeRule.json +1253 -0
  82. models/mutation.policy.terminalServer.removeSection.json +958 -0
  83. models/mutation.policy.terminalServer.updatePolicy.json +1883 -0
  84. models/mutation.policy.terminalServer.updateRule.json +2096 -0
  85. models/mutation.policy.terminalServer.updateSection.json +1111 -0
  86. models/mutation.site.addSocketAddOnCard.json +1050 -0
  87. models/mutation.site.removeSocketAddOnCard.json +786 -0
  88. models/mutation.site.startSiteUpgrade.json +802 -0
  89. models/mutation.sites.addSocketAddOnCard.json +1050 -0
  90. models/mutation.sites.removeSocketAddOnCard.json +786 -0
  91. models/mutation.sites.startSiteUpgrade.json +802 -0
  92. models/query.devices.json +311 -2
  93. models/query.events.json +48 -0
  94. models/query.eventsFeed.json +12 -0
  95. models/query.eventsTimeSeries.json +36 -0
  96. models/query.licensing.json +21815 -10093
  97. models/query.policy.json +1898 -305
  98. models/query.site.json +225 -0
  99. models/query.siteLocation.json +97190 -295396
  100. schema/catolib.py +52 -24
  101. {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/LICENSE +0 -0
  102. {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/WHEEL +0 -0
  103. {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/entry_points.txt +0 -0
  104. {catocli-2.0.0.dist-info → catocli-2.0.2.dist-info}/top_level.txt +0 -0
@@ -14,12 +14,11 @@ def mutation_xdr_parse(mutation_subparsers):
14
14
 
15
15
  mutation_xdr_addStoryComment_parser.add_argument('json', help='Variables in JSON format.')
16
16
  mutation_xdr_addStoryComment_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
17
- mutation_xdr_addStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?',
18
- help='Print test request preview without sending api call')
19
- mutation_xdr_addStoryComment_parser.add_argument('-v', const=True, default=False, nargs='?',
20
- help='Verbose output')
21
- mutation_xdr_addStoryComment_parser.add_argument('-p', const=True, default=False, nargs='?',
22
- help='Pretty print')
17
+ mutation_xdr_addStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
18
+ mutation_xdr_addStoryComment_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
19
+ mutation_xdr_addStoryComment_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
20
+ mutation_xdr_addStoryComment_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
21
+ mutation_xdr_addStoryComment_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
23
22
  mutation_xdr_addStoryComment_parser.set_defaults(func=createRequest,operation_name='mutation.xdr.addStoryComment')
24
23
 
25
24
  mutation_xdr_analystFeedback_parser = mutation_xdr_subparsers.add_parser('analystFeedback',
@@ -28,12 +27,11 @@ def mutation_xdr_parse(mutation_subparsers):
28
27
 
29
28
  mutation_xdr_analystFeedback_parser.add_argument('json', help='Variables in JSON format.')
30
29
  mutation_xdr_analystFeedback_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
31
- mutation_xdr_analystFeedback_parser.add_argument('-t', const=True, default=False, nargs='?',
32
- help='Print test request preview without sending api call')
33
- mutation_xdr_analystFeedback_parser.add_argument('-v', const=True, default=False, nargs='?',
34
- help='Verbose output')
35
- mutation_xdr_analystFeedback_parser.add_argument('-p', const=True, default=False, nargs='?',
36
- help='Pretty print')
30
+ mutation_xdr_analystFeedback_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
31
+ mutation_xdr_analystFeedback_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
32
+ mutation_xdr_analystFeedback_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
33
+ mutation_xdr_analystFeedback_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
34
+ mutation_xdr_analystFeedback_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
37
35
  mutation_xdr_analystFeedback_parser.set_defaults(func=createRequest,operation_name='mutation.xdr.analystFeedback')
38
36
 
39
37
  mutation_xdr_deleteStoryComment_parser = mutation_xdr_subparsers.add_parser('deleteStoryComment',
@@ -42,10 +40,9 @@ def mutation_xdr_parse(mutation_subparsers):
42
40
 
43
41
  mutation_xdr_deleteStoryComment_parser.add_argument('json', help='Variables in JSON format.')
44
42
  mutation_xdr_deleteStoryComment_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
45
- mutation_xdr_deleteStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?',
46
- help='Print test request preview without sending api call')
47
- mutation_xdr_deleteStoryComment_parser.add_argument('-v', const=True, default=False, nargs='?',
48
- help='Verbose output')
49
- mutation_xdr_deleteStoryComment_parser.add_argument('-p', const=True, default=False, nargs='?',
50
- help='Pretty print')
43
+ mutation_xdr_deleteStoryComment_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
44
+ mutation_xdr_deleteStoryComment_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
45
+ mutation_xdr_deleteStoryComment_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
46
+ mutation_xdr_deleteStoryComment_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
47
+ mutation_xdr_deleteStoryComment_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
51
48
  mutation_xdr_deleteStoryComment_parser.set_defaults(func=createRequest,operation_name='mutation.xdr.deleteStoryComment')
@@ -8,10 +8,9 @@ def query_accountBySubdomain_parse(query_subparsers):
8
8
 
9
9
  query_accountBySubdomain_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_accountBySubdomain_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountBySubdomain_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_accountBySubdomain_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_accountBySubdomain_parser.set_defaults(func=createRequest,operation_name='query.accountBySubdomain')
@@ -8,10 +8,9 @@ def query_accountManagement_parse(query_subparsers):
8
8
 
9
9
  query_accountManagement_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_accountManagement_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountManagement_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_accountManagement_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_accountManagement_parser.set_defaults(func=createRequest,operation_name='query.accountManagement')
@@ -8,10 +8,9 @@ def query_accountMetrics_parse(query_subparsers):
8
8
 
9
9
  query_accountMetrics_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_accountMetrics_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountMetrics_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_accountMetrics_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_accountMetrics_parser.set_defaults(func=createRequest,operation_name='query.accountMetrics')
@@ -8,10 +8,9 @@ def query_accountRoles_parse(query_subparsers):
8
8
 
9
9
  query_accountRoles_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_accountRoles_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountRoles_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_accountRoles_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_accountRoles_parser.set_defaults(func=createRequest,operation_name='query.accountRoles')
@@ -8,10 +8,9 @@ def query_accountSnapshot_parse(query_subparsers):
8
8
 
9
9
  query_accountSnapshot_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_accountSnapshot_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_accountSnapshot_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_accountSnapshot_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_accountSnapshot_parser.set_defaults(func=createRequest,operation_name='query.accountSnapshot')
@@ -8,10 +8,9 @@ def query_admin_parse(query_subparsers):
8
8
 
9
9
  query_admin_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_admin_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_admin_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_admin_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_admin_parser.set_defaults(func=createRequest,operation_name='query.admin')
@@ -8,10 +8,9 @@ def query_admins_parse(query_subparsers):
8
8
 
9
9
  query_admins_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_admins_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_admins_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_admins_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_admins_parser.set_defaults(func=createRequest,operation_name='query.admins')
@@ -8,10 +8,9 @@ def query_appStats_parse(query_subparsers):
8
8
 
9
9
  query_appStats_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_appStats_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_appStats_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_appStats_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_appStats_parser.set_defaults(func=createRequest,operation_name='query.appStats')
@@ -8,10 +8,9 @@ def query_appStatsTimeSeries_parse(query_subparsers):
8
8
 
9
9
  query_appStatsTimeSeries_parser.add_argument('json', help='Variables in JSON format.')
10
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='?',
12
- help='Print test request preview without sending api call')
13
- query_appStatsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_appStatsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_appStatsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview 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.')
17
16
  query_appStatsTimeSeries_parser.set_defaults(func=createRequest,operation_name='query.appStatsTimeSeries')
@@ -8,10 +8,9 @@ def query_auditFeed_parse(query_subparsers):
8
8
 
9
9
  query_auditFeed_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_auditFeed_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_auditFeed_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_auditFeed_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_auditFeed_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_auditFeed_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_auditFeed_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_auditFeed_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_auditFeed_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_auditFeed_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_auditFeed_parser.set_defaults(func=createRequest,operation_name='query.auditFeed')
@@ -8,10 +8,9 @@ def query_catalogs_parse(query_subparsers):
8
8
 
9
9
  query_catalogs_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_catalogs_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_catalogs_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_catalogs_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_catalogs_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_catalogs_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_catalogs_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_catalogs_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_catalogs_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_catalogs_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_catalogs_parser.set_defaults(func=createRequest,operation_name='query.catalogs')
@@ -8,10 +8,9 @@ def query_container_parse(query_subparsers):
8
8
 
9
9
  query_container_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_container_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_container_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_container_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_container_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_container_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_container_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_container_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_container_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_container_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_container_parser.set_defaults(func=createRequest,operation_name='query.container')
@@ -10,10 +10,11 @@
10
10
 
11
11
  `catocli query devices "$(cat < devices.json)"`
12
12
 
13
- `catocli query devices '{"deviceAttributeCatalogInput": {"pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}, "sortOrderInput": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "stringFilterInput": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "deviceV2Input": {"deviceSortInput": {"category": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "confidence": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "firstSeen": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "hw": {"manufacturer": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "model": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "type": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "id": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "ip": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "lastSeen": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "network": {"networkName": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "subnet": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "nic": {"macAddress": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "vendor": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "os": {"product": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "vendor": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "version": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "riskScore": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "site": {"id": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "user": {"id": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}}, "deviceV2FilterInput": {"category": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "confidence": {"eq": {"eq": "enum(DeviceConfidenceLevel)"}, "in": {"in": "enum(DeviceConfidenceLevel)"}, "neq": {"neq": "enum(DeviceConfidenceLevel)"}, "nin": {"nin": "enum(DeviceConfidenceLevel)"}}, "firstSeen": {"between": {"between": ["DateTime"]}, "eq": {"eq": "DateTime"}, "gt": {"gt": "DateTime"}, "gte": {"gte": "DateTime"}, "in": {"in": ["DateTime"]}, "lt": {"lt": "DateTime"}, "lte": {"lte": "DateTime"}, "neq": {"neq": "DateTime"}, "nin": {"nin": ["DateTime"]}}, "hw": {"manufacturer": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "model": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "type": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "id": {"eq": {"eq": "ID"}, "in": {"in": ["ID"]}, "neq": {"neq": "ID"}, "nin": {"nin": ["ID"]}}, "ip": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "lastSeen": {"between": {"between": ["DateTime"]}, "eq": {"eq": "DateTime"}, "gt": {"gt": "DateTime"}, "gte": {"gte": "DateTime"}, "in": {"in": ["DateTime"]}, "lt": {"lt": "DateTime"}, "lte": {"lte": "DateTime"}, "neq": {"neq": "DateTime"}, "nin": {"nin": ["DateTime"]}}, "name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "network": {"networkName": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "subnet": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "nic": {"macAddress": {"eq": {"eq": "MacAddress"}, "in": {"in": ["MacAddress"]}, "neq": {"neq": "MacAddress"}, "nin": {"nin": ["MacAddress"]}}, "vendor": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "os": {"product": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "vendor": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "version": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "riskScore": {"between": {"between": ["Int"]}, "eq": {"eq": "Int"}, "gt": {"gt": "Int"}, "gte": {"gte": "Int"}, "in": {"in": ["Int"]}, "lt": {"lt": "Int"}, "lte": {"lte": "Int"}, "neq": {"neq": "Int"}, "nin": {"nin": ["Int"]}}, "site": {"eq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "in": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "neq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "nin": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "user": {"eq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "in": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "neq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "nin": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}, "sortOrderInput": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}'`
13
+ `catocli query devices '{"deviceAttributeCatalogInput": {"pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}, "sortOrderInput": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "stringFilterInput": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "deviceV2Input": {"deviceSortInput": {"category": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "confidence": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "firstSeen": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "hw": {"manufacturer": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "model": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "type": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "id": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "ip": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "lastSeen": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "network": {"networkName": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "subnet": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "nic": {"macAddress": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "vendor": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "os": {"product": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "vendor": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "version": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "riskScore": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "site": {"id": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}, "user": {"id": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "name": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}}, "deviceV2FilterInput": {"category": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "confidence": {"eq": {"eq": "enum(DeviceConfidenceLevel)"}, "in": {"in": "enum(DeviceConfidenceLevel)"}, "neq": {"neq": "enum(DeviceConfidenceLevel)"}, "nin": {"nin": "enum(DeviceConfidenceLevel)"}}, "firstSeen": {"between": {"between": ["DateTime"]}, "eq": {"eq": "DateTime"}, "gt": {"gt": "DateTime"}, "gte": {"gte": "DateTime"}, "in": {"in": ["DateTime"]}, "lt": {"lt": "DateTime"}, "lte": {"lte": "DateTime"}, "neq": {"neq": "DateTime"}, "nin": {"nin": ["DateTime"]}}, "hw": {"manufacturer": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "model": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "type": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "id": {"eq": {"eq": "ID"}, "in": {"in": ["ID"]}, "neq": {"neq": "ID"}, "nin": {"nin": ["ID"]}}, "ip": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "lastSeen": {"between": {"between": ["DateTime"]}, "eq": {"eq": "DateTime"}, "gt": {"gt": "DateTime"}, "gte": {"gte": "DateTime"}, "in": {"in": ["DateTime"]}, "lt": {"lt": "DateTime"}, "lte": {"lte": "DateTime"}, "neq": {"neq": "DateTime"}, "nin": {"nin": ["DateTime"]}}, "name": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "network": {"networkName": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "subnet": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "nic": {"macAddress": {"eq": {"eq": "MacAddress"}, "in": {"in": ["MacAddress"]}, "neq": {"neq": "MacAddress"}, "nin": {"nin": ["MacAddress"]}}, "vendor": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "os": {"product": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "vendor": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}, "version": {"eq": {"eq": "String"}, "in": {"in": ["String"]}, "neq": {"neq": "String"}, "nin": {"nin": ["String"]}}}, "riskScore": {"between": {"between": ["Int"]}, "eq": {"eq": "Int"}, "gt": {"gt": "Int"}, "gte": {"gte": "Int"}, "in": {"in": ["Int"]}, "lt": {"lt": "Int"}, "lte": {"lte": "Int"}, "neq": {"neq": "Int"}, "nin": {"nin": ["Int"]}}, "site": {"eq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "in": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "neq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "nin": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "user": {"eq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "in": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "neq": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "nin": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}}, "pagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}}, "jobId": "ID", "sortOrderInput": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}'`
14
14
 
15
15
  #### Operation Arguments for query.devices ####
16
16
  `accountId` [ID] - (required) N/A
17
17
  `deviceAttributeCatalogInput` [DeviceAttributeCatalogInput] - (optional) N/A
18
18
  `deviceV2Input` [DeviceV2Input] - (optional) N/A
19
+ `jobId` [ID] - (required) N/A
19
20
  `sortOrderInput` [SortOrderInput] - (optional) N/A
@@ -8,10 +8,9 @@ def query_devices_parse(query_subparsers):
8
8
 
9
9
  query_devices_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_devices_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_devices_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_devices_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_devices_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_devices_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_devices_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_devices_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_devices_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_devices_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_devices_parser.set_defaults(func=createRequest,operation_name='query.devices')
@@ -8,10 +8,9 @@ def query_entityLookup_parse(query_subparsers):
8
8
 
9
9
  query_entityLookup_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_entityLookup_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_entityLookup_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_entityLookup_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_entityLookup_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_entityLookup_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_entityLookup_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_entityLookup_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_entityLookup_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_entityLookup_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_entityLookup_parser.set_defaults(func=createRequest,operation_name='query.entityLookup')
@@ -8,10 +8,9 @@ def query_events_parse(query_subparsers):
8
8
 
9
9
  query_events_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_events_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_events_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_events_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_events_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_events_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_events_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_events_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_events_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_events_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_events_parser.set_defaults(func=createRequest,operation_name='query.events')
@@ -15,5 +15,5 @@
15
15
  #### Operation Arguments for query.eventsFeed ####
16
16
  `accountIDs` [ID[]] - (optional) List of Unique Account Identifiers.
17
17
  `eventFeedFieldFilterInput` [EventFeedFieldFilterInput[]] - (optional) N/A
18
- `fieldNames` [EventFieldName[]] - (optional) N/A Default Value: ['access_method', 'account_id', 'action', 'actions_taken', 'ad_name', 'alert_id', 'always_on_configuration', 'analyst_verdict', 'api_name', 'api_type', 'app_activity', 'app_activity_category', 'app_activity_type', 'app_stack', 'application', 'application_id', 'application_name', 'application_risk', 'auth_method', 'authentication_type', 'bgp_cato_asn', 'bgp_cato_ip', 'bgp_error_code', 'bgp_peer_asn', 'bgp_peer_ip', 'bgp_route_cidr', 'bgp_suberror_code', 'bypass_duration_sec', 'bypass_method', 'bypass_reason', 'categories', 'cato_app', 'classification', 'client_cert_expires', 'client_cert_name', 'client_class', 'client_version', 'collaborator_name', 'collaborators', 'confidence_level', 'configured_host_name', 'congestion_algorithm', 'connect_on_boot', 'connection_origin', 'connector_name', 'connector_status', 'connector_type', 'container_name', 'correlation_id', 'criticality', 'custom_categories', 'custom_category', 'custom_category_id', 'custom_category_name', 'dest_country', 'dest_country_code', 'dest_group_id', 'dest_group_name', 'dest_ip', 'dest_is_site_or_vpn', 'dest_pid', 'dest_port', 'dest_process_cmdline', 'dest_process_parent_path', 'dest_process_parent_pid', 'dest_process_path', 'dest_site', 'dest_site_id', 'dest_site_name', 'detection_name', 'detection_stage', 'device_categories', 'device_certificate', 'device_id', 'device_manufacturer', 'device_model', 'device_name', 'device_os_type', 'device_posture_profile', 'device_posture_profiles', 'device_type', 'directory_host_name', 'directory_ip', 'directory_sync_result', 'directory_sync_type', 'disinfect_result', 'dlp_fail_mode', 'dlp_profiles', 'dlp_scan_types', 'dns_protection_category', 'dns_query', 'domain_name', 'egress_pop_name', 'egress_site_name', 'email_subject', 'endpoint_id', 'epp_engine_type', 'epp_profile', 'event_count', 'event_id', 'event_message', 'event_sub_type', 'event_type', 'failure_reason', 'file_hash', 'file_name', 'file_operation', 'file_size', 'file_type', 'final_object_status', 'flows_cardinality', 'full_path_url', 'guest_user', 'host_ip', 'host_mac', 'http_request_method', 'incident_aggregation', 'incident_id', 'indication', 'indicator', 'initial_object_status', 'internalId', 'ip_protocol', 'is_admin', 'is_admin_activity', 'is_compliant', 'is_managed', 'is_sanctioned_app', 'is_sinkhole', 'ISP_name', 'key_name', 'labels', 'link_health_is_congested', 'link_health_jitter', 'link_health_latency', 'link_health_pkt_loss', 'link_type', 'logged_in_user', 'login_type', 'matched_data_types', 'mitre_attack_subtechniques', 'mitre_attack_tactics', 'mitre_attack_techniques', 'network_access', 'network_rule', 'notification_api_error', 'notification_description', 'object_id', 'object_name', 'object_type', 'office_mode', 'os_type', 'os_version', 'out_of_band_access', 'owner', 'pac_file', 'parent_connector_name', 'pop_name', 'precedence', 'processes_count', 'producer', 'prompt_action', 'public_ip', 'qos_priority', 'qos_reported_time', 'quarantine_folder_path', 'quarantine_uuid', 'raw_data', 'recommended_actions', 'reference_url', 'registration_code', 'risk_level', 'rule', 'rule_id', 'rule_name', 'severity', 'sharing_scope', 'sign_in_event_types', 'signature_id', 'socket_interface', 'socket_interface_id', 'socket_new_version', 'socket_old_version', 'socket_reset', 'socket_role', 'socket_serial', 'socket_version', 'split_tunnel_configuration', 'src_country', 'src_country_code', 'src_ip', 'src_is_site_or_vpn', 'src_isp_ip', 'src_or_dest_site_id', 'src_pid', 'src_port', 'src_process_cmdline', 'src_process_parent_path', 'src_process_parent_pid', 'src_process_path', 'src_site', 'src_site_id', 'src_site_name', 'static_host', 'status', 'story_id', 'subnet_name', 'targets_cardinality', 'tcp_acceleration', 'tenant_id', 'tenant_name', 'tenant_restriction_rule_name', 'threat_confidence', 'threat_name', 'threat_reference', 'threat_score', 'threat_type', 'threat_verdict', 'time', 'time_str', 'title', 'tls_certificate_error', 'tls_error_description', 'tls_error_type', 'tls_inspection', 'tls_rule_name', 'tls_version', 'traffic_direction', 'translated_client_ip', 'translated_server_ip', 'trigger', 'trust_type', 'trusted_networks', 'tunnel_ip_protocol', 'tunnel_protocol', 'upgrade_end_time', 'upgrade_initiated_by', 'upgrade_start_time', 'url', 'user_agent', 'user_awareness_method', 'user_id', 'user_name', 'user_reference_id', 'user_risk_level', 'vendor', 'vendor_collaborator_id', 'vendor_device_id', 'vendor_device_name', 'vendor_event_id', 'vendor_user_id', 'visible_device_id', 'vpn_lan_access', 'vpn_user_email', 'windows_domain_name', 'xff']
18
+ `fieldNames` [EventFieldName[]] - (optional) N/A Default Value: ['access_method', 'account_id', 'action', 'actions_taken', 'ad_name', 'alert_id', 'always_on_configuration', 'analyst_verdict', 'api_name', 'api_type', 'app_activity', 'app_activity_category', 'app_activity_type', 'app_stack', 'application', 'application_id', 'application_name', 'application_risk', 'auth_method', 'authentication_type', 'bgp_cato_asn', 'bgp_cato_ip', 'bgp_error_code', 'bgp_peer_asn', 'bgp_peer_ip', 'bgp_route_cidr', 'bgp_suberror_code', 'bypass_duration_sec', 'bypass_method', 'bypass_reason', 'categories', 'cato_app', 'classification', 'client_cert_expires', 'client_cert_name', 'client_class', 'client_version', 'collaborator_name', 'collaborators', 'confidence_level', 'configured_host_name', 'congestion_algorithm', 'connect_on_boot', 'connection_origin', 'connector_name', 'connector_status', 'connector_type', 'container_name', 'correlation_id', 'criticality', 'custom_categories', 'custom_category', 'custom_category_id', 'custom_category_name', 'dest_country', 'dest_country_code', 'dest_group_id', 'dest_group_name', 'dest_ip', 'dest_is_site_or_vpn', 'dest_pid', 'dest_port', 'dest_process_cmdline', 'dest_process_parent_path', 'dest_process_parent_pid', 'dest_process_path', 'dest_site', 'dest_site_id', 'dest_site_name', 'detection_name', 'detection_stage', 'device_categories', 'device_certificate', 'device_id', 'device_manufacturer', 'device_model', 'device_name', 'device_os_type', 'device_posture_profile', 'device_posture_profiles', 'device_type', 'directory_host_name', 'directory_ip', 'directory_sync_result', 'directory_sync_type', 'disinfect_result', 'dlp_fail_mode', 'dlp_profiles', 'dlp_scan_types', 'dns_protection_category', 'dns_query', 'domain_name', 'egress_pop_name', 'egress_site_name', 'email_subject', 'endpoint_id', 'epp_engine_type', 'epp_profile', 'event_count', 'event_id', 'event_message', 'event_sub_type', 'event_type', 'failure_reason', 'file_hash', 'file_name', 'file_operation', 'file_size', 'file_type', 'final_object_status', 'flows_cardinality', 'full_path_url', 'guest_user', 'host_ip', 'host_mac', 'http_request_method', 'incident_aggregation', 'incident_id', 'indication', 'indicator', 'initial_object_status', 'internalId', 'ip_protocol', 'is_admin', 'is_admin_activity', 'is_compliant', 'is_managed', 'is_sanctioned_app', 'is_sinkhole', 'ISP_name', 'key_name', 'labels', 'link_health_is_congested', 'link_health_jitter', 'link_health_latency', 'link_health_pkt_loss', 'link_type', 'logged_in_user', 'login_type', 'matched_data_types', 'mitre_attack_subtechniques', 'mitre_attack_tactics', 'mitre_attack_techniques', 'network_access', 'network_rule', 'notification_api_error', 'notification_description', 'object_id', 'object_name', 'object_type', 'office_mode', 'os_type', 'os_version', 'out_of_band_access', 'owner', 'pac_file', 'parent_connector_name', 'pop_name', 'precedence', 'processes_count', 'producer', 'prompt_action', 'public_ip', 'qos_priority', 'qos_reported_time', 'quarantine_folder_path', 'quarantine_uuid', 'raw_data', 'recommended_actions', 'reference_url', 'referer_url', 'registration_code', 'risk_level', 'rule', 'rule_id', 'rule_name', 'severity', 'sharing_scope', 'sign_in_event_types', 'signature_id', 'socket_interface', 'socket_interface_id', 'socket_new_version', 'socket_old_version', 'socket_reset', 'socket_role', 'socket_serial', 'socket_version', 'split_tunnel_configuration', 'src_country', 'src_country_code', 'src_ip', 'src_is_site_or_vpn', 'src_isp_ip', 'src_or_dest_site_id', 'src_pid', 'src_port', 'src_process_cmdline', 'src_process_parent_path', 'src_process_parent_pid', 'src_process_path', 'src_site', 'src_site_id', 'src_site_name', 'static_host', 'status', 'story_id', 'subnet_name', 'targets_cardinality', 'tcp_acceleration', 'tenant_id', 'tenant_name', 'tenant_restriction_rule_name', 'threat_confidence', 'threat_name', 'threat_reference', 'threat_score', 'threat_type', 'threat_verdict', 'time', 'time_str', 'title', 'tls_certificate_error', 'tls_error_description', 'tls_error_type', 'tls_inspection', 'tls_rule_name', 'tls_version', 'traffic_direction', 'translated_client_ip', 'translated_server_ip', 'trigger', 'trust_type', 'trusted_networks', 'tunnel_ip_protocol', 'tunnel_protocol', 'upgrade_end_time', 'upgrade_initiated_by', 'upgrade_start_time', 'url', 'user_agent', 'user_awareness_method', 'user_id', 'user_name', 'user_reference_id', 'user_risk_level', 'vendor', 'vendor_collaborator_id', 'vendor_device_id', 'vendor_device_name', 'vendor_event_id', 'vendor_user_id', 'visible_device_id', 'vpn_lan_access', 'vpn_user_email', 'windows_domain_name', 'xff']
19
19
  `marker` [String] - (optional) Marker to use to get results from
@@ -8,10 +8,9 @@ def query_eventsFeed_parse(query_subparsers):
8
8
 
9
9
  query_eventsFeed_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_eventsFeed_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_eventsFeed_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_eventsFeed_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_eventsFeed_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_eventsFeed_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_eventsFeed_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_eventsFeed_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_eventsFeed_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_eventsFeed_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_eventsFeed_parser.set_defaults(func=createRequest,operation_name='query.eventsFeed')
@@ -8,10 +8,9 @@ def query_eventsTimeSeries_parse(query_subparsers):
8
8
 
9
9
  query_eventsTimeSeries_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_eventsTimeSeries_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_eventsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_eventsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_eventsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_eventsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_eventsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_eventsTimeSeries_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_eventsTimeSeries_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_eventsTimeSeries_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_eventsTimeSeries_parser.set_defaults(func=createRequest,operation_name='query.eventsTimeSeries')
@@ -8,10 +8,9 @@ def query_hardware_parse(query_subparsers):
8
8
 
9
9
  query_hardware_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_hardware_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_hardware_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_hardware_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_hardware_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_hardware_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_hardware_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_hardware_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_hardware_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_hardware_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_hardware_parser.set_defaults(func=createRequest,operation_name='query.hardware')
@@ -8,10 +8,9 @@ def query_hardwareManagement_parse(query_subparsers):
8
8
 
9
9
  query_hardwareManagement_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_hardwareManagement_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_hardwareManagement_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_hardwareManagement_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_hardwareManagement_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_hardwareManagement_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_hardwareManagement_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_hardwareManagement_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_hardwareManagement_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_hardwareManagement_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_hardwareManagement_parser.set_defaults(func=createRequest,operation_name='query.hardwareManagement')
@@ -8,10 +8,9 @@ def query_licensing_parse(query_subparsers):
8
8
 
9
9
  query_licensing_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_licensing_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_licensing_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_licensing_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_licensing_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_licensing_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_licensing_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_licensing_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_licensing_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_licensing_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_licensing_parser.set_defaults(func=createRequest,operation_name='query.licensing')
@@ -10,7 +10,7 @@
10
10
 
11
11
  `catocli query policy "$(cat < policy.json)"`
12
12
 
13
- `catocli query policy '{"appTenantRestrictionPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "dynamicIpAllocationPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "internetFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "remotePortFwdPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "socketLanPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "wanFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "wanNetworkPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
13
+ `catocli query policy '{"appTenantRestrictionPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "dynamicIpAllocationPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "internetFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "remotePortFwdPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "socketLanPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "terminalServerPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "wanFirewallPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "wanNetworkPolicyInput": {"policyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
14
14
 
15
15
  #### Operation Arguments for query.policy ####
16
16
  `accountId` [ID] - (required) N/A
@@ -19,5 +19,6 @@
19
19
  `internetFirewallPolicyInput` [InternetFirewallPolicyInput] - (optional) N/A
20
20
  `remotePortFwdPolicyInput` [RemotePortFwdPolicyInput] - (optional) N/A
21
21
  `socketLanPolicyInput` [SocketLanPolicyInput] - (optional) N/A
22
+ `terminalServerPolicyInput` [TerminalServerPolicyInput] - (optional) N/A
22
23
  `wanFirewallPolicyInput` [WanFirewallPolicyInput] - (optional) N/A
23
24
  `wanNetworkPolicyInput` [WanNetworkPolicyInput] - (optional) N/A
@@ -8,10 +8,9 @@ def query_policy_parse(query_subparsers):
8
8
 
9
9
  query_policy_parser.add_argument('json', help='Variables in JSON format.')
10
10
  query_policy_parser.add_argument('-accountID', help='Override the CATO_ACCOUNT_ID environment variable with this value.')
11
- query_policy_parser.add_argument('-t', const=True, default=False, nargs='?',
12
- help='Print test request preview without sending api call')
13
- query_policy_parser.add_argument('-v', const=True, default=False, nargs='?',
14
- help='Verbose output')
15
- query_policy_parser.add_argument('-p', const=True, default=False, nargs='?',
16
- help='Pretty print')
11
+ query_policy_parser.add_argument('-t', const=True, default=False, nargs='?', help='Print test request preview without sending api call')
12
+ query_policy_parser.add_argument('-v', const=True, default=False, nargs='?', help='Verbose output')
13
+ query_policy_parser.add_argument('-p', const=True, default=False, nargs='?', help='Pretty print')
14
+ query_policy_parser.add_argument('-H', '--header', action='append', dest='headers', help='Add custom headers in "Key: Value" format. Can be used multiple times.')
15
+ query_policy_parser.add_argument('--headers-file', dest='headers_file', help='Load headers from a file. Each line should contain a header in "Key: Value" format.')
17
16
  query_policy_parser.set_defaults(func=createRequest,operation_name='query.policy')