catocli 1.0.8__py3-none-any.whl → 1.0.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of catocli might be problematic. Click here for more details.
- catocli/Utils/clidriver.py +14 -0
- catocli/__init__.py +1 -1
- catocli/parsers/custom/customLib.py +1 -1
- catocli/parsers/mutation_admin/__init__.py +3 -3
- catocli/parsers/mutation_admin_addAdmin/README.md +2 -2
- catocli/parsers/mutation_admin_removeAdmin/README.md +2 -2
- catocli/parsers/mutation_admin_updateAdmin/README.md +2 -2
- catocli/parsers/mutation_container/__init__.py +1 -1
- catocli/parsers/mutation_container_delete/README.md +2 -2
- catocli/parsers/mutation_policy/__init__.py +24 -24
- catocli/parsers/mutation_policy_internetFirewall_addRule/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_addSection/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_createPolicyRevision/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_discardPolicyRevision/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_moveRule/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_moveSection/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_publishPolicyRevision/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_removeRule/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_removeSection/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_updatePolicy/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_updateRule/README.md +2 -2
- catocli/parsers/mutation_policy_internetFirewall_updateSection/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_addRule/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_addSection/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_createPolicyRevision/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_discardPolicyRevision/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_moveRule/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_moveSection/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_publishPolicyRevision/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_removeRule/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_removeSection/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_updatePolicy/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_updateRule/README.md +2 -2
- catocli/parsers/mutation_policy_wanFirewall_updateSection/README.md +2 -2
- catocli/parsers/mutation_site/__init__.py +15 -15
- catocli/parsers/mutation_site_addIpsecIkeV2Site/README.md +2 -2
- catocli/parsers/mutation_site_addIpsecIkeV2SiteTunnels/README.md +2 -2
- catocli/parsers/mutation_site_addNetworkRange/README.md +2 -2
- catocli/parsers/mutation_site_addSocketSite/README.md +2 -2
- catocli/parsers/mutation_site_addStaticHost/README.md +2 -2
- catocli/parsers/mutation_site_removeNetworkRange/README.md +2 -2
- catocli/parsers/mutation_site_removeSite/README.md +2 -2
- catocli/parsers/mutation_site_removeStaticHost/README.md +2 -2
- catocli/parsers/mutation_site_updateHa/README.md +2 -2
- catocli/parsers/mutation_site_updateIpsecIkeV2SiteGeneralDetails/README.md +2 -2
- catocli/parsers/mutation_site_updateIpsecIkeV2SiteTunnels/README.md +2 -2
- catocli/parsers/mutation_site_updateNetworkRange/README.md +2 -2
- catocli/parsers/mutation_site_updateSiteGeneralDetails/README.md +2 -2
- catocli/parsers/mutation_site_updateSocketInterface/README.md +2 -2
- catocli/parsers/mutation_site_updateStaticHost/README.md +2 -2
- catocli/parsers/mutation_sites/__init__.py +15 -15
- catocli/parsers/mutation_sites_addIpsecIkeV2Site/README.md +2 -2
- catocli/parsers/mutation_sites_addIpsecIkeV2SiteTunnels/README.md +2 -2
- catocli/parsers/mutation_sites_addNetworkRange/README.md +2 -2
- catocli/parsers/mutation_sites_addSocketSite/README.md +2 -2
- catocli/parsers/mutation_sites_addStaticHost/README.md +2 -2
- catocli/parsers/mutation_sites_removeNetworkRange/README.md +2 -2
- catocli/parsers/mutation_sites_removeSite/README.md +2 -2
- catocli/parsers/mutation_sites_removeStaticHost/README.md +2 -2
- catocli/parsers/mutation_sites_updateHa/README.md +2 -2
- catocli/parsers/mutation_sites_updateIpsecIkeV2SiteGeneralDetails/README.md +2 -2
- catocli/parsers/mutation_sites_updateIpsecIkeV2SiteTunnels/README.md +2 -2
- catocli/parsers/mutation_sites_updateNetworkRange/README.md +2 -2
- catocli/parsers/mutation_sites_updateSiteGeneralDetails/README.md +2 -2
- catocli/parsers/mutation_sites_updateSocketInterface/README.md +2 -2
- catocli/parsers/mutation_sites_updateStaticHost/README.md +2 -2
- catocli/parsers/parserApiClient.py +1 -4
- catocli/parsers/query_accountBySubdomain/README.md +2 -2
- catocli/parsers/query_accountBySubdomain/__init__.py +1 -1
- catocli/parsers/query_accountMetrics/README.md +2 -2
- catocli/parsers/query_accountMetrics/__init__.py +1 -1
- catocli/parsers/query_accountRoles/README.md +2 -2
- catocli/parsers/query_accountRoles/__init__.py +1 -1
- catocli/parsers/query_accountSnapshot/README.md +2 -2
- catocli/parsers/query_accountSnapshot/__init__.py +1 -1
- catocli/parsers/query_admin/README.md +2 -2
- catocli/parsers/query_admin/__init__.py +1 -1
- catocli/parsers/query_admins/README.md +2 -2
- catocli/parsers/query_admins/__init__.py +1 -1
- catocli/parsers/query_appStats/README.md +2 -2
- catocli/parsers/query_appStats/__init__.py +1 -1
- catocli/parsers/query_appStatsTimeSeries/README.md +2 -2
- catocli/parsers/query_appStatsTimeSeries/__init__.py +1 -1
- catocli/parsers/query_auditFeed/README.md +2 -2
- catocli/parsers/query_auditFeed/__init__.py +1 -1
- catocli/parsers/query_container/README.md +2 -2
- catocli/parsers/query_container/__init__.py +1 -1
- catocli/parsers/query_entityLookup/README.md +2 -2
- catocli/parsers/query_entityLookup/__init__.py +1 -1
- catocli/parsers/query_events/README.md +2 -2
- catocli/parsers/query_events/__init__.py +1 -1
- catocli/parsers/query_eventsFeed/README.md +2 -2
- catocli/parsers/query_eventsFeed/__init__.py +1 -1
- catocli/parsers/query_eventsTimeSeries/README.md +2 -2
- catocli/parsers/query_eventsTimeSeries/__init__.py +1 -1
- catocli/parsers/query_hardwareManagement/README.md +2 -2
- catocli/parsers/query_hardwareManagement/__init__.py +1 -1
- catocli/parsers/query_licensing/README.md +2 -2
- catocli/parsers/query_licensing/__init__.py +1 -1
- catocli/parsers/query_policy/README.md +2 -2
- catocli/parsers/query_policy/__init__.py +1 -1
- catocli/parsers/query_siteLocation/README.md +6 -6
- catocli/parsers/query_siteLocation/__init__.py +1 -1
- catocli/parsers/query_subDomains/README.md +2 -2
- catocli/parsers/query_subDomains/__init__.py +1 -1
- catocli/parsers/query_xdr/__init__.py +2 -2
- catocli/parsers/query_xdr_stories/README.md +2 -2
- catocli/parsers/query_xdr_story/README.md +2 -2
- {catocli-1.0.8.dist-info → catocli-1.0.10.dist-info}/METADATA +1 -1
- {catocli-1.0.8.dist-info → catocli-1.0.10.dist-info}/RECORD +115 -115
- schema/catolib.py +27 -13
- {catocli-1.0.8.dist-info → catocli-1.0.10.dist-info}/LICENSE +0 -0
- {catocli-1.0.8.dist-info → catocli-1.0.10.dist-info}/WHEEL +0 -0
- {catocli-1.0.8.dist-info → catocli-1.0.10.dist-info}/entry_points.txt +0 -0
- {catocli-1.0.8.dist-info → catocli-1.0.10.dist-info}/top_level.txt +0 -0
|
@@ -6,8 +6,8 @@ def query_accountRoles_parse(query_subparsers):
|
|
|
6
6
|
help='accountRoles() query operation',
|
|
7
7
|
usage=get_help("query_accountRoles"))
|
|
8
8
|
|
|
9
|
-
query_accountRoles_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_accountRoles_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_accountRoles_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_accountRoles_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_accountRoles_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query accountSnapshot <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query accountSnapshot
|
|
11
|
+
`catocli query accountSnapshot "$(cat < accountSnapshot.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query accountSnapshot
|
|
13
|
+
`catocli query accountSnapshot '{"siteIDs": ["ID"], "userIDs": ["ID"]}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.accountSnapshot ####
|
|
16
16
|
`accountID` [ID] - (optional) Unique Identifier of Account.
|
|
@@ -6,8 +6,8 @@ def query_accountSnapshot_parse(query_subparsers):
|
|
|
6
6
|
help='accountSnapshot() query operation',
|
|
7
7
|
usage=get_help("query_accountSnapshot"))
|
|
8
8
|
|
|
9
|
-
query_accountSnapshot_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_accountSnapshot_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_accountSnapshot_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_accountSnapshot_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_accountSnapshot_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query admin <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query admin
|
|
11
|
+
`catocli query admin "$(cat < admin.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query admin
|
|
13
|
+
`catocli query admin '{"adminID": "ID"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.admin ####
|
|
16
16
|
`accountId` [ID] - (required) N/A
|
|
@@ -6,8 +6,8 @@ def query_admin_parse(query_subparsers):
|
|
|
6
6
|
help='admin() query operation',
|
|
7
7
|
usage=get_help("query_admin"))
|
|
8
8
|
|
|
9
|
-
query_admin_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_admin_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_admin_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_admin_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_admin_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query admins <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query admins
|
|
11
|
+
`catocli query admins "$(cat < admins.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query admins
|
|
13
|
+
`catocli query admins '{"SortInput": {"field": {"field": "String"}, "order": {"order": "enum(DirectionInput)"}}, "adminIDs": ["ID"], "from": "Int", "limit": "Int", "search": "String"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.admins ####
|
|
16
16
|
`SortInput` [SortInput[]] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_admins_parse(query_subparsers):
|
|
|
6
6
|
help='admins() query operation',
|
|
7
7
|
usage=get_help("query_admins"))
|
|
8
8
|
|
|
9
|
-
query_admins_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_admins_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_admins_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_admins_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_admins_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query appStats <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query appStats
|
|
11
|
+
`catocli query appStats "$(cat < appStats.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query appStats
|
|
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)"}}, "Measure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "trend": {"trend": "Boolean"}}, "from": "Int", "limit": "Int", "timeFrame": "TimeFrame"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.appStats ####
|
|
16
16
|
`AppStatsFilter` [AppStatsFilter[]] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_appStats_parse(query_subparsers):
|
|
|
6
6
|
help='appStats() query operation',
|
|
7
7
|
usage=get_help("query_appStats"))
|
|
8
8
|
|
|
9
|
-
query_appStats_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_appStats_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_appStats_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_appStats_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_appStats_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query appStatsTimeSeries <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query appStatsTimeSeries
|
|
11
|
+
`catocli query appStatsTimeSeries "$(cat < appStatsTimeSeries.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query appStatsTimeSeries
|
|
13
|
+
`catocli query appStatsTimeSeries '{"AppStatsFilter": {"fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "operator": {"operator": "enum(FilterOperator)"}, "values": {"values": ["String"]}}, "Dimension": {"fieldName": {"fieldName": "enum(AppStatsFieldName)"}}, "Measure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(AppStatsFieldName)"}, "trend": {"trend": "Boolean"}}, "buckets": "Int", "perSecond": "Boolean", "timeFrame": "TimeFrame", "withMissingData": "Boolean"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.appStatsTimeSeries ####
|
|
16
16
|
`AppStatsFilter` [AppStatsFilter[]] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_appStatsTimeSeries_parse(query_subparsers):
|
|
|
6
6
|
help='appStatsTimeSeries() query operation',
|
|
7
7
|
usage=get_help("query_appStatsTimeSeries"))
|
|
8
8
|
|
|
9
|
-
query_appStatsTimeSeries_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_appStatsTimeSeries_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_appStatsTimeSeries_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_appStatsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_appStatsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query auditFeed <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query auditFeed
|
|
11
|
+
`catocli query auditFeed "$(cat < auditFeed.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query auditFeed
|
|
13
|
+
`catocli query auditFeed '{"AuditFieldFilterInput": {"FieldNameInput": {"AuditFieldName": {"AuditFieldName": "enum(AuditFieldName)"}, "EventFieldName": {"EventFieldName": "enum(EventFieldName)"}}, "operator": {"operator": "enum(ElasticOperator)"}, "values": {"values": ["String"]}}, "accountIDs": ["ID"], "fieldNames": "enum(AuditFieldName)", "marker": "String", "timeFrame": "TimeFrame"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.auditFeed ####
|
|
16
16
|
`AuditFieldFilterInput` [AuditFieldFilterInput[]] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_auditFeed_parse(query_subparsers):
|
|
|
6
6
|
help='auditFeed() query operation',
|
|
7
7
|
usage=get_help("query_auditFeed"))
|
|
8
8
|
|
|
9
|
-
query_auditFeed_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_auditFeed_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_auditFeed_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_auditFeed_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_auditFeed_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query container <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query container
|
|
11
|
+
`catocli query container "$(cat < container.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query container
|
|
13
|
+
`catocli query container '{"ContainerSearchInput": {"ContainerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "types": {"types": "enum(ContainerType)"}}, "DownloadFqdnContainerFileInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "DownloadIpAddressRangeContainerFileInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}, "FqdnContainerSearchFqdnInput": {"fqdn": {"fqdn": "Fqdn"}}, "FqdnContainerSearchInput": {"ContainerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "IpAddressRangeContainerSearchInput": {"ContainerRefInput": {"by": {"by": "enum(ObjectRefBy)"}, "input": {"input": "String"}}}, "IpAddressRangeContainerSearchIpAddressRangeInput": {"IpAddressRangeInput": {"from": {"from": "IPAddress"}, "to": {"to": "IPAddress"}}}}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.container ####
|
|
16
16
|
`ContainerSearchInput` [ContainerSearchInput] - (required) N/A
|
|
@@ -6,8 +6,8 @@ def query_container_parse(query_subparsers):
|
|
|
6
6
|
help='container() query operation',
|
|
7
7
|
usage=get_help("query_container"))
|
|
8
8
|
|
|
9
|
-
query_container_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_container_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_container_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_container_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_container_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query entityLookup <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query entityLookup
|
|
11
|
+
`catocli query entityLookup "$(cat < entityLookup.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query entityLookup
|
|
13
|
+
`catocli query entityLookup '{"EntityInput": {"id": {"id": "ID"}, "name": {"name": "String"}, "type": {"type": "enum(EntityType)"}}, "LookupFilterInput": {"filter": {"filter": "enum(LookupFilterType)"}, "value": {"value": "String"}}, "SortInput": {"field": {"field": "String"}, "order": {"order": "enum(DirectionInput)"}}, "entityIDs": ["ID"], "from": "Int", "helperFields": ["String"], "limit": "Int", "search": "String", "type": "enum(EntityType)"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.entityLookup ####
|
|
16
16
|
`EntityInput` [EntityInput] - (optional) Return items under a parent entity (can be site, vpn user, etc),
|
|
@@ -6,8 +6,8 @@ def query_entityLookup_parse(query_subparsers):
|
|
|
6
6
|
help='entityLookup() query operation',
|
|
7
7
|
usage=get_help("query_entityLookup"))
|
|
8
8
|
|
|
9
|
-
query_entityLookup_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_entityLookup_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_entityLookup_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_entityLookup_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_entityLookup_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query events <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query events
|
|
11
|
+
`catocli query events "$(cat < events.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query events
|
|
13
|
+
`catocli query events '{"EventsDimension": {"fieldName": {"fieldName": "enum(EventFieldName)"}}, "EventsFilter": {"fieldName": {"fieldName": "enum(EventFieldName)"}, "operator": {"operator": "enum(FilterOperator)"}, "values": {"values": ["String"]}}, "EventsMeasure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(EventFieldName)"}, "trend": {"trend": "Boolean"}}, "EventsSort": {"fieldName": {"fieldName": "enum(EventFieldName)"}, "order": {"order": "enum(DirectionEnum)"}}, "from": "Int", "limit": "Int", "timeFrame": "TimeFrame"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.events ####
|
|
16
16
|
`EventsDimension` [EventsDimension[]] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_events_parse(query_subparsers):
|
|
|
6
6
|
help='events() query operation',
|
|
7
7
|
usage=get_help("query_events"))
|
|
8
8
|
|
|
9
|
-
query_events_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_events_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_events_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_events_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_events_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query eventsFeed <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query eventsFeed
|
|
11
|
+
`catocli query eventsFeed "$(cat < eventsFeed.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query eventsFeed
|
|
13
|
+
`catocli query eventsFeed '{"EventFeedFieldFilterInput": {"fieldName": {"fieldName": "enum(EventFeedFilterFieldName)"}, "operator": {"operator": "enum(EventFeedFilterOperator)"}, "values": {"values": ["String"]}}, "accountIDs": ["ID"], "fieldNames": "enum(EventFieldName)", "marker": "String"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.eventsFeed ####
|
|
16
16
|
`EventFeedFieldFilterInput` [EventFeedFieldFilterInput[]] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_eventsFeed_parse(query_subparsers):
|
|
|
6
6
|
help='eventsFeed() query operation',
|
|
7
7
|
usage=get_help("query_eventsFeed"))
|
|
8
8
|
|
|
9
|
-
query_eventsFeed_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_eventsFeed_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_eventsFeed_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_eventsFeed_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_eventsFeed_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query eventsTimeSeries <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query eventsTimeSeries
|
|
11
|
+
`catocli query eventsTimeSeries "$(cat < eventsTimeSeries.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query eventsTimeSeries
|
|
13
|
+
`catocli query eventsTimeSeries '{"EventsDimension": {"fieldName": {"fieldName": "enum(EventFieldName)"}}, "EventsFilter": {"fieldName": {"fieldName": "enum(EventFieldName)"}, "operator": {"operator": "enum(FilterOperator)"}, "values": {"values": ["String"]}}, "EventsMeasure": {"aggType": {"aggType": "enum(AggregationType)"}, "fieldName": {"fieldName": "enum(EventFieldName)"}, "trend": {"trend": "Boolean"}}, "buckets": "Int", "perSecond": "Boolean", "timeFrame": "TimeFrame", "withMissingData": "Boolean"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.eventsTimeSeries ####
|
|
16
16
|
`EventsDimension` [EventsDimension[]] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_eventsTimeSeries_parse(query_subparsers):
|
|
|
6
6
|
help='eventsTimeSeries() query operation',
|
|
7
7
|
usage=get_help("query_eventsTimeSeries"))
|
|
8
8
|
|
|
9
|
-
query_eventsTimeSeries_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_eventsTimeSeries_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_eventsTimeSeries_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_eventsTimeSeries_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_eventsTimeSeries_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query hardwareManagement <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query hardwareManagement
|
|
11
|
+
`catocli query hardwareManagement "$(cat < hardwareManagement.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query hardwareManagement
|
|
13
|
+
`catocli query hardwareManagement '{"SocketInventoryInput": {"PagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}, "SocketInventoryFilterInput": {"freeText": {"search": {"search": "String"}}}, "SocketInventoryOrderInput": {"deliverySiteName": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "description": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "installedSite": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "serialNumber": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "shippingCompany": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "shippingDate": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "socketType": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}, "status": {"direction": {"direction": "enum(SortOrder)"}, "priority": {"priority": "Int"}}}}}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.hardwareManagement ####
|
|
16
16
|
`SocketInventoryInput` [SocketInventoryInput] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_hardwareManagement_parse(query_subparsers):
|
|
|
6
6
|
help='hardwareManagement() query operation',
|
|
7
7
|
usage=get_help("query_hardwareManagement"))
|
|
8
8
|
|
|
9
|
-
query_hardwareManagement_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_hardwareManagement_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_hardwareManagement_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_hardwareManagement_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_hardwareManagement_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query licensing <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query licensing
|
|
11
|
+
`catocli query licensing "$(cat < licensing.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query licensing
|
|
13
|
+
`catocli query licensing '{}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.licensing ####
|
|
16
16
|
`accountId` [ID] - (required) N/A
|
|
@@ -6,8 +6,8 @@ def query_licensing_parse(query_subparsers):
|
|
|
6
6
|
help='licensing() query operation',
|
|
7
7
|
usage=get_help("query_licensing"))
|
|
8
8
|
|
|
9
|
-
query_licensing_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_licensing_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_licensing_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_licensing_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_licensing_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query policy <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query policy
|
|
11
|
+
`catocli query policy "$(cat < policy.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query policy
|
|
13
|
+
`catocli query policy '{"InternetFirewallPolicyInput": {"PolicyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}, "WanFirewallPolicyInput": {"PolicyRevisionInput": {"id": {"id": "ID"}, "type": {"type": "enum(PolicyRevisionType)"}}}}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.policy ####
|
|
16
16
|
`InternetFirewallPolicyInput` [InternetFirewallPolicyInput] - (optional) N/A
|
|
@@ -6,8 +6,8 @@ def query_policy_parse(query_subparsers):
|
|
|
6
6
|
help='policy() query operation',
|
|
7
7
|
usage=get_help("query_policy"))
|
|
8
8
|
|
|
9
|
-
query_policy_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_policy_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_policy_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_policy_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_policy_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query siteLocation <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query siteLocation
|
|
11
|
+
`catocli query siteLocation "$(cat < siteLocation.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query siteLocation
|
|
13
|
+
`catocli query siteLocation '{"filters":[{"search": "Your city here","field":"city","operation":"exact"}]}'`
|
|
14
14
|
|
|
15
|
-
`catocli query siteLocation
|
|
15
|
+
`catocli query siteLocation '{"filters":[{"search": "Your Country here","field":"countryName","operation":"startsWith"}]}'`
|
|
16
16
|
|
|
17
|
-
`catocli query siteLocation
|
|
17
|
+
`catocli query siteLocation '{"filters":[{"search": "Your stateName here","field":"stateName","operation":"endsWith"}]}'`
|
|
18
18
|
|
|
19
|
-
`catocli query siteLocation
|
|
19
|
+
`catocli query siteLocation '{filters:[{"search": "Your City here","field":"city","operation":"startsWith"},{"search": "Your StateName here","field":"stateName","operation":"endsWith"},{"search": "Your Country here","field":"countryName","operation":"contains"}}'`
|
|
20
20
|
|
|
21
21
|
#### Operation Arguments for query.siteLocation ####
|
|
22
|
-
`accountID` [ID] - (
|
|
22
|
+
`accountID` [ID] - (required) Unique Identifier of Account.
|
|
23
23
|
`filters[]` [Array] - (optional) Array of objects consisting of `search`, `field` and `operation` attributes.
|
|
24
24
|
`filters[].search` [String] - (required) String to match countryName, stateName, or city specificed in `filters[].field`.
|
|
25
25
|
`filters[].field` [String] - (required) Specify field to match query against, defaults to look for any. Possible values: `countryName`, `stateName`, or `city`.
|
|
@@ -6,8 +6,8 @@ def query_siteLocation_parse(query_subparsers):
|
|
|
6
6
|
help='siteLocation local cli query',
|
|
7
7
|
usage=get_help("query_siteLocation"))
|
|
8
8
|
|
|
9
|
-
query_siteLocation_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_siteLocation_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_siteLocation_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_siteLocation_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_siteLocation_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query subDomains <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query subDomains
|
|
11
|
+
`catocli query subDomains "$(cat < subDomains.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query subDomains
|
|
13
|
+
`catocli query subDomains '{"managedAccount": "Boolean"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.subDomains ####
|
|
16
16
|
`accountID` [ID] - (required) Unique Identifier of Account
|
|
@@ -6,8 +6,8 @@ def query_subDomains_parse(query_subparsers):
|
|
|
6
6
|
help='subDomains() query operation',
|
|
7
7
|
usage=get_help("query_subDomains"))
|
|
8
8
|
|
|
9
|
-
query_subDomains_parser.add_argument('accountID', help='The Account ID.')
|
|
10
9
|
query_subDomains_parser.add_argument('json', help='Variables in JSON format.')
|
|
10
|
+
query_subDomains_parser.add_argument('-accountID', help='The Account ID.')
|
|
11
11
|
query_subDomains_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
12
12
|
help='Print test request preview without sending api call')
|
|
13
13
|
query_subDomains_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -12,8 +12,8 @@ def query_xdr_parse(query_subparsers):
|
|
|
12
12
|
help='stories() xdr operation',
|
|
13
13
|
usage=get_help("query_xdr_stories"))
|
|
14
14
|
|
|
15
|
-
query_xdr_stories_parser.add_argument('accountID', help='The Account ID.')
|
|
16
15
|
query_xdr_stories_parser.add_argument('json', help='Variables in JSON format.')
|
|
16
|
+
query_xdr_stories_parser.add_argument('-accountID', help='The Account ID.')
|
|
17
17
|
query_xdr_stories_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
18
18
|
help='Print test request preview without sending api call')
|
|
19
19
|
query_xdr_stories_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -26,8 +26,8 @@ def query_xdr_parse(query_subparsers):
|
|
|
26
26
|
help='story() xdr operation',
|
|
27
27
|
usage=get_help("query_xdr_story"))
|
|
28
28
|
|
|
29
|
-
query_xdr_story_parser.add_argument('accountID', help='The Account ID.')
|
|
30
29
|
query_xdr_story_parser.add_argument('json', help='Variables in JSON format.')
|
|
30
|
+
query_xdr_story_parser.add_argument('-accountID', help='The Account ID.')
|
|
31
31
|
query_xdr_story_parser.add_argument('-t', const=True, default=False, nargs='?',
|
|
32
32
|
help='Print test request preview without sending api call')
|
|
33
33
|
query_xdr_story_parser.add_argument('-v', const=True, default=False, nargs='?',
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query xdr stories <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query xdr stories
|
|
11
|
+
`catocli query xdr stories "$(cat < stories.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query xdr stories
|
|
13
|
+
`catocli query xdr stories '{"StoryInput": {"PagingInput": {"from": {"from": "Int"}, "limit": {"limit": "Int"}}, "StoryFilterInput": {"accountId": {"in": {"in": ["ID"]}, "not_in": {"not_in": ["ID"]}}, "criticality": {"eq": {"eq": "Int"}, "gt": {"gt": "Int"}, "gte": {"gte": "Int"}, "in": {"in": ["Int"]}, "lt": {"lt": "Int"}, "lte": {"lte": "Int"}, "not_in": {"not_in": ["Int"]}}, "engineType": {"in": {"in": "enum(StoryEngineTypeEnum)"}, "not_in": {"not_in": "enum(StoryEngineTypeEnum)"}}, "incidentId": {"contains": {"contains": "String"}, "in": {"in": ["String"]}, "not_in": {"not_in": ["String"]}}, "ioa": {"contains": {"contains": "String"}, "in": {"in": ["String"]}, "not_in": {"not_in": ["String"]}}, "muted": {"is": {"is": "String"}}, "producer": {"in": {"in": "enum(StoryProducerEnum)"}, "not_in": {"not_in": "enum(StoryProducerEnum)"}}, "queryName": {"contains": {"contains": "String"}, "in": {"in": ["String"]}, "not_in": {"not_in": ["String"]}}, "severity": {"in": {"in": "enum(SeverityEnum)"}, "not_in": {"not_in": "enum(SeverityEnum)"}}, "source": {"contains": {"contains": "String"}, "in": {"in": ["String"]}, "not_in": {"not_in": ["String"]}}, "sourceIp": {"contains": {"contains": "String"}, "in": {"in": ["String"]}, "not_in": {"not_in": ["String"]}}, "status": {"in": {"in": "enum(StoryStatusEnum)"}, "not_in": {"not_in": "enum(StoryStatusEnum)"}}, "storyId": {"in": {"in": ["ID"]}, "not_in": {"not_in": ["ID"]}}, "timeFrame": {"time": {"time": "TimeFrame"}, "timeFrameModifier": {"timeFrameModifier": "enum(TimeFrameModifier)"}}, "vendor": {"in": {"in": "enum(VendorEnum)"}, "not_in": {"not_in": "enum(VendorEnum)"}}, "verdict": {"in": {"in": "enum(StoryVerdictEnum)"}, "not_in": {"not_in": "enum(StoryVerdictEnum)"}}}, "StorySortInput": {"fieldName": {"fieldName": "enum(StorySortFieldName)"}, "order": {"order": "enum(SortDirectionEnum)"}}}, "perSecond": "Boolean"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.xdr.stories ####
|
|
16
16
|
`StoryInput` [StoryInput] - (required) N/A
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
`catocli query xdr story <accountID> <json>`
|
|
10
10
|
|
|
11
|
-
`catocli query xdr story
|
|
11
|
+
`catocli query xdr story "$(cat < story.json)"`
|
|
12
12
|
|
|
13
|
-
`catocli query xdr story
|
|
13
|
+
`catocli query xdr story '{"incidentId": "ID", "perSecond": "Boolean", "producer": "enum(StoryProducerEnum)", "storyId": "ID"}'`
|
|
14
14
|
|
|
15
15
|
#### Operation Arguments for query.xdr.story ####
|
|
16
16
|
`accountID` [ID] - (required) N/A
|