catocli 3.0.10__py3-none-any.whl → 3.0.12__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 (59) hide show
  1. catocli/Utils/clidriver.py +2 -2
  2. catocli/Utils/graphql_utils.py +15 -5
  3. catocli/Utils/help_formatter.py +50 -15
  4. catocli/__init__.py +1 -1
  5. catocli/parsers/custom/__init__.py +1 -1
  6. catocli/parsers/custom/customLib.py +3 -1
  7. catocli/parsers/mutation_groups_createGroup/README.md +39 -1
  8. catocli/parsers/mutation_groups_deleteGroup/README.md +39 -1
  9. catocli/parsers/mutation_groups_updateGroup/README.md +39 -1
  10. catocli/parsers/query_accountMetrics/README.md +29 -2
  11. catocli/parsers/query_accountSnapshot/README.md +16 -0
  12. catocli/parsers/query_appStats/README.md +11 -1
  13. catocli/parsers/query_appStatsTimeSeries/README.md +16 -2
  14. catocli/parsers/query_auditFeed/README.md +3 -1
  15. catocli/parsers/query_catalogs/README.md +178 -0
  16. catocli/parsers/query_container/README.md +49 -0
  17. catocli/parsers/query_devices/README.md +728 -0
  18. catocli/parsers/query_enterpriseDirectory/README.md +83 -0
  19. catocli/parsers/query_events/README.md +5 -1
  20. catocli/parsers/query_eventsTimeSeries/README.md +10 -2
  21. catocli/parsers/query_groups_groupList/README.md +39 -1
  22. catocli/parsers/query_hardware/README.md +153 -0
  23. catocli/parsers/query_hardwareManagement/README.md +56 -0
  24. catocli/parsers/query_popLocations/README.md +63 -0
  25. catocli/parsers/query_sandbox/README.md +69 -0
  26. catocli/parsers/query_socketPortMetrics/README.md +5 -1
  27. catocli/parsers/query_socketPortMetricsTimeSeries/README.md +10 -2
  28. catocli/parsers/query_xdr_stories/README.md +7 -2
  29. {catocli-3.0.10.dist-info → catocli-3.0.12.dist-info}/METADATA +1 -1
  30. {catocli-3.0.10.dist-info → catocli-3.0.12.dist-info}/RECORD +59 -59
  31. models/mutation.accountManagement.disableAccount.json +2 -2
  32. models/mutation.accountManagement.removeAccount.json +2 -2
  33. models/mutation.groups.createGroup.json +810 -0
  34. models/mutation.groups.deleteGroup.json +810 -0
  35. models/mutation.groups.updateGroup.json +810 -0
  36. models/query.accountMetrics.json +333 -1
  37. models/query.accountSnapshot.json +50 -1
  38. models/query.appStats.json +38 -0
  39. models/query.appStatsTimeSeries.json +78 -1
  40. models/query.auditFeed.json +105 -0
  41. models/query.catalogs.json +2708 -1
  42. models/query.container.json +793 -1
  43. models/query.devices.json +10338 -1
  44. models/query.enterpriseDirectory.json +1315 -1
  45. models/query.events.json +38 -0
  46. models/query.eventsFeed.json +1587 -0
  47. models/query.eventsTimeSeries.json +78 -1
  48. models/query.groups.groupList.json +810 -0
  49. models/query.hardware.json +2333 -1
  50. models/query.hardwareManagement.json +1086 -1
  51. models/query.popLocations.json +1172 -1
  52. models/query.sandbox.json +825 -1
  53. models/query.socketPortMetrics.json +38 -0
  54. models/query.socketPortMetricsTimeSeries.json +78 -1
  55. schema/catolib.py +107 -37
  56. {catocli-3.0.10.dist-info → catocli-3.0.12.dist-info}/WHEEL +0 -0
  57. {catocli-3.0.10.dist-info → catocli-3.0.12.dist-info}/entry_points.txt +0 -0
  58. {catocli-3.0.10.dist-info → catocli-3.0.12.dist-info}/licenses/LICENSE +0 -0
  59. {catocli-3.0.10.dist-info → catocli-3.0.12.dist-info}/top_level.txt +0 -0
@@ -11,6 +11,89 @@ catocli query enterpriseDirectory <json>
11
11
 
12
12
  catocli query enterpriseDirectory "$(cat < query.enterpriseDirectory.json)"
13
13
 
14
+ catocli query enterpriseDirectory '{"enterpriseDirectoryLocationListInput":{"locationFilterInput":{"account":{"accountInclusion":"ALL_ACCOUNTS","in":["id1","id2"]},"countryCode":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"freeText":{"search":"string"},"id":{"eq":"id","in":["id1","id2"],"neq":"id","nin":["id1","id2"]},"includeArchived":true,"isShippingLocation":true,"name":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"type":{"eq":"BRANCH","in":"BRANCH","neq":"BRANCH","nin":"BRANCH"}},"locationSortInput":{"country":{"direction":"ASC","priority":1},"name":{"direction":"ASC","priority":1},"type":{"direction":"ASC","priority":1}},"pagingInput":{"from":1,"limit":1}}}'
15
+
16
+ catocli query enterpriseDirectory '{
17
+ "enterpriseDirectoryLocationListInput": {
18
+ "locationFilterInput": {
19
+ "account": {
20
+ "accountInclusion": "ALL_ACCOUNTS",
21
+ "in": [
22
+ "id1",
23
+ "id2"
24
+ ]
25
+ },
26
+ "countryCode": {
27
+ "eq": "string",
28
+ "in": [
29
+ "string1",
30
+ "string2"
31
+ ],
32
+ "neq": "string",
33
+ "nin": [
34
+ "string1",
35
+ "string2"
36
+ ]
37
+ },
38
+ "freeText": {
39
+ "search": "string"
40
+ },
41
+ "id": {
42
+ "eq": "id",
43
+ "in": [
44
+ "id1",
45
+ "id2"
46
+ ],
47
+ "neq": "id",
48
+ "nin": [
49
+ "id1",
50
+ "id2"
51
+ ]
52
+ },
53
+ "includeArchived": true,
54
+ "isShippingLocation": true,
55
+ "name": {
56
+ "eq": "string",
57
+ "in": [
58
+ "string1",
59
+ "string2"
60
+ ],
61
+ "neq": "string",
62
+ "nin": [
63
+ "string1",
64
+ "string2"
65
+ ]
66
+ },
67
+ "type": {
68
+ "eq": "BRANCH",
69
+ "in": "BRANCH",
70
+ "neq": "BRANCH",
71
+ "nin": "BRANCH"
72
+ }
73
+ },
74
+ "locationSortInput": {
75
+ "country": {
76
+ "direction": "ASC",
77
+ "priority": 1
78
+ },
79
+ "name": {
80
+ "direction": "ASC",
81
+ "priority": 1
82
+ },
83
+ "type": {
84
+ "direction": "ASC",
85
+ "priority": 1
86
+ }
87
+ },
88
+ "pagingInput": {
89
+ "from": 1,
90
+ "limit": 1
91
+ }
92
+ }
93
+ }'
94
+ ```
95
+
14
96
  #### Operation Arguments for query.enterpriseDirectory ####
15
97
 
16
98
  `accountId` [ID] - (required) N/A
99
+ `enterpriseDirectoryLocationListInput` [EnterpriseDirectoryLocationListInput] - (required) N/A
@@ -11,7 +11,7 @@ catocli query events <json>
11
11
 
12
12
  catocli query events "$(cat < query.events.json)"
13
13
 
14
- catocli query events '{"eventsDimension":{"fieldName":"access_method"},"eventsFilter":{"fieldName":"access_method","operator":"is","values":["string1","string2"]},"eventsMeasure":{"aggType":"sum","fieldName":"access_method","trend":true},"eventsSort":{"fieldName":"access_method","order":"asc"},"timeFrame":"example_value"}'
14
+ catocli query events '{"eventsDimension":{"fieldName":"access_method"},"eventsFilter":{"fieldName":"access_method","operator":"is","values":["string1","string2"]},"eventsMeasure":{"aggType":"sum","fieldName":"access_method","trend":true},"eventsSort":{"fieldName":"access_method","order":"asc"},"from":1,"limit":1,"timeFrame":"example_value"}'
15
15
 
16
16
  catocli query events '{
17
17
  "eventsDimension": {
@@ -34,6 +34,8 @@ catocli query events '{
34
34
  "fieldName": "access_method",
35
35
  "order": "asc"
36
36
  },
37
+ "from": 1,
38
+ "limit": 1,
37
39
  "timeFrame": "example_value"
38
40
  }'
39
41
  ```
@@ -66,4 +68,6 @@ Format: `"utc.YYYY-MM-{DD/HH:MM:SS--DD/HH:MM:SS}"`
66
68
  `eventsFilter` [EventsFilter[]] - (required) N/A
67
69
  `eventsMeasure` [EventsMeasure[]] - (required) N/A
68
70
  `eventsSort` [EventsSort[]] - (required) N/A
71
+ `from` [Int] - (required) N/A
72
+ `limit` [Int] - (required) N/A
69
73
  `timeFrame` [TimeFrame] - (required) N/A
@@ -11,9 +11,10 @@ catocli query eventsTimeSeries <json>
11
11
 
12
12
  catocli query eventsTimeSeries "$(cat < query.eventsTimeSeries.json)"
13
13
 
14
- catocli query eventsTimeSeries '{"eventsDimension":{"fieldName":"access_method"},"eventsFilter":{"fieldName":"access_method","operator":"is","values":["string1","string2"]},"eventsMeasure":{"aggType":"sum","fieldName":"access_method","trend":true},"timeFrame":"example_value"}'
14
+ catocli query eventsTimeSeries '{"buckets":1,"eventsDimension":{"fieldName":"access_method"},"eventsFilter":{"fieldName":"access_method","operator":"is","values":["string1","string2"]},"eventsMeasure":{"aggType":"sum","fieldName":"access_method","trend":true},"perSecond":true,"timeFrame":"example_value","useDefaultSizeBucket":true,"withMissingData":true}'
15
15
 
16
16
  catocli query eventsTimeSeries '{
17
+ "buckets": 1,
17
18
  "eventsDimension": {
18
19
  "fieldName": "access_method"
19
20
  },
@@ -30,7 +31,10 @@ catocli query eventsTimeSeries '{
30
31
  "fieldName": "access_method",
31
32
  "trend": true
32
33
  },
33
- "timeFrame": "example_value"
34
+ "perSecond": true,
35
+ "timeFrame": "example_value",
36
+ "useDefaultSizeBucket": true,
37
+ "withMissingData": true
34
38
  }'
35
39
  ```
36
40
 
@@ -58,7 +62,11 @@ Format: `"utc.YYYY-MM-{DD/HH:MM:SS--DD/HH:MM:SS}"`
58
62
  #### Operation Arguments for query.eventsTimeSeries ####
59
63
 
60
64
  `accountID` [ID] - (required) Account ID
65
+ `buckets` [Int] - (required) N/A
61
66
  `eventsDimension` [EventsDimension[]] - (required) N/A
62
67
  `eventsFilter` [EventsFilter[]] - (required) N/A
63
68
  `eventsMeasure` [EventsMeasure[]] - (required) N/A
69
+ `perSecond` [Boolean] - (required) whether to normalize the data into per second (i.e. divide by granularity)
64
70
  `timeFrame` [TimeFrame] - (required) N/A
71
+ `useDefaultSizeBucket` [Boolean] - (required) In case we want to have the default size bucket (from properties)
72
+ `withMissingData` [Boolean] - (required) If false, the data field will be set to '0' for buckets with no reported data. Otherwise it will be set to -1
@@ -11,7 +11,7 @@ catocli query groups groupList <json>
11
11
 
12
12
  catocli query groups groupList "$(cat < query.groups.groupList.json)"
13
13
 
14
- catocli query groups groupList '{"groupListInput":{"groupListFilterInput":{"audit":{"updatedBy":{"by":"ID","input":"string"},"updatedTime":{"between":["example1","example2"],"eq":"example_value","gt":"example_value","gte":"example_value","in":["example1","example2"],"lt":"example_value","lte":"example_value","neq":"example_value","nin":["example1","example2"]}},"freeText":{"search":"string"},"id":{"eq":"id","in":["id1","id2"],"neq":"id","nin":["id1","id2"]},"member":{"ref":{"by":"ID","input":"string","type":"SITE"}},"name":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"],"regex":"string"}},"groupListSortInput":{"audit":{"updatedBy":{"direction":"ASC","priority":1},"updatedTime":{"direction":"ASC","priority":1}},"name":{"direction":"ASC","priority":1}},"pagingInput":{"from":1,"limit":1}}}'
14
+ catocli query groups groupList '{"groupListInput":{"groupListFilterInput":{"audit":{"updatedBy":{"by":"ID","input":"string"},"updatedTime":{"between":["example1","example2"],"eq":"example_value","gt":"example_value","gte":"example_value","in":["example1","example2"],"lt":"example_value","lte":"example_value","neq":"example_value","nin":["example1","example2"]}},"freeText":{"search":"string"},"id":{"eq":"id","in":["id1","id2"],"neq":"id","nin":["id1","id2"]},"member":{"ref":{"by":"ID","input":"string","type":"SITE"}},"name":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"],"regex":"string"}},"groupListSortInput":{"audit":{"updatedBy":{"direction":"ASC","priority":1},"updatedTime":{"direction":"ASC","priority":1}},"name":{"direction":"ASC","priority":1}},"pagingInput":{"from":1,"limit":1}},"groupMembersListInput":{"groupMembersListFilterInput":{"name":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"],"regex":"string"},"type":{"eq":"SITE","in":"SITE","neq":"SITE","nin":"SITE"}},"groupMembersListSortInput":{"name":{"direction":"ASC","priority":1},"type":{"direction":"ASC","priority":1}},"pagingInput":{"from":1,"limit":1}}}'
15
15
 
16
16
  catocli query groups groupList '{
17
17
  "groupListInput": {
@@ -98,6 +98,43 @@ catocli query groups groupList '{
98
98
  "from": 1,
99
99
  "limit": 1
100
100
  }
101
+ },
102
+ "groupMembersListInput": {
103
+ "groupMembersListFilterInput": {
104
+ "name": {
105
+ "eq": "string",
106
+ "in": [
107
+ "string1",
108
+ "string2"
109
+ ],
110
+ "neq": "string",
111
+ "nin": [
112
+ "string1",
113
+ "string2"
114
+ ],
115
+ "regex": "string"
116
+ },
117
+ "type": {
118
+ "eq": "SITE",
119
+ "in": "SITE",
120
+ "neq": "SITE",
121
+ "nin": "SITE"
122
+ }
123
+ },
124
+ "groupMembersListSortInput": {
125
+ "name": {
126
+ "direction": "ASC",
127
+ "priority": 1
128
+ },
129
+ "type": {
130
+ "direction": "ASC",
131
+ "priority": 1
132
+ }
133
+ },
134
+ "pagingInput": {
135
+ "from": 1,
136
+ "limit": 1
137
+ }
101
138
  }
102
139
  }'
103
140
  ```
@@ -106,3 +143,4 @@ catocli query groups groupList '{
106
143
 
107
144
  `accountId` [ID] - (required) N/A
108
145
  `groupListInput` [GroupListInput] - (required) N/A
146
+ `groupMembersListInput` [GroupMembersListInput] - (required) N/A
@@ -11,6 +11,159 @@ catocli query hardware <json>
11
11
 
12
12
  catocli query hardware "$(cat < query.hardware.json)"
13
13
 
14
+ catocli query hardware '{"hardwareSearchInput":{"hardwareFilterInput":{"account":{"accountInclusion":"ALL_ACCOUNTS","in":["id1","id2"]},"countryCode":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"countryName":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"freeText":{"search":"string"},"id":{"eq":"id","in":["id1","id2"],"neq":"id","nin":["id1","id2"]},"licenseStartDate":{"between":["example1","example2"],"eq":"example_value","gt":"example_value","gte":"example_value","in":["example1","example2"],"lt":"example_value","lte":"example_value","neq":"example_value","nin":["example1","example2"]},"product":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"serialNumber":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"shippingStatus":{"eq":"PENDING_INFO","in":"PENDING_INFO","neq":"PENDING_INFO","nin":"PENDING_INFO"},"validAddress":{"eq":true,"neq":true}},"hardwareSortInput":{"country":{"direction":"ASC","priority":1},"incoterms":{"direction":"ASC","priority":1},"licenseId":{"direction":"ASC","priority":1},"licenseStartDate":{"direction":"ASC","priority":1},"productType":{"direction":"ASC","priority":1},"quoteId":{"direction":"ASC","priority":1},"shippingDate":{"direction":"ASC","priority":1},"shippingStatus":{"direction":"ASC","priority":1},"siteName":{"direction":"ASC","priority":1}},"pagingInput":{"from":1,"limit":1}}}'
15
+
16
+ catocli query hardware '{
17
+ "hardwareSearchInput": {
18
+ "hardwareFilterInput": {
19
+ "account": {
20
+ "accountInclusion": "ALL_ACCOUNTS",
21
+ "in": [
22
+ "id1",
23
+ "id2"
24
+ ]
25
+ },
26
+ "countryCode": {
27
+ "eq": "string",
28
+ "in": [
29
+ "string1",
30
+ "string2"
31
+ ],
32
+ "neq": "string",
33
+ "nin": [
34
+ "string1",
35
+ "string2"
36
+ ]
37
+ },
38
+ "countryName": {
39
+ "eq": "string",
40
+ "in": [
41
+ "string1",
42
+ "string2"
43
+ ],
44
+ "neq": "string",
45
+ "nin": [
46
+ "string1",
47
+ "string2"
48
+ ]
49
+ },
50
+ "freeText": {
51
+ "search": "string"
52
+ },
53
+ "id": {
54
+ "eq": "id",
55
+ "in": [
56
+ "id1",
57
+ "id2"
58
+ ],
59
+ "neq": "id",
60
+ "nin": [
61
+ "id1",
62
+ "id2"
63
+ ]
64
+ },
65
+ "licenseStartDate": {
66
+ "between": [
67
+ "example1",
68
+ "example2"
69
+ ],
70
+ "eq": "example_value",
71
+ "gt": "example_value",
72
+ "gte": "example_value",
73
+ "in": [
74
+ "example1",
75
+ "example2"
76
+ ],
77
+ "lt": "example_value",
78
+ "lte": "example_value",
79
+ "neq": "example_value",
80
+ "nin": [
81
+ "example1",
82
+ "example2"
83
+ ]
84
+ },
85
+ "product": {
86
+ "eq": "string",
87
+ "in": [
88
+ "string1",
89
+ "string2"
90
+ ],
91
+ "neq": "string",
92
+ "nin": [
93
+ "string1",
94
+ "string2"
95
+ ]
96
+ },
97
+ "serialNumber": {
98
+ "eq": "string",
99
+ "in": [
100
+ "string1",
101
+ "string2"
102
+ ],
103
+ "neq": "string",
104
+ "nin": [
105
+ "string1",
106
+ "string2"
107
+ ]
108
+ },
109
+ "shippingStatus": {
110
+ "eq": "PENDING_INFO",
111
+ "in": "PENDING_INFO",
112
+ "neq": "PENDING_INFO",
113
+ "nin": "PENDING_INFO"
114
+ },
115
+ "validAddress": {
116
+ "eq": true,
117
+ "neq": true
118
+ }
119
+ },
120
+ "hardwareSortInput": {
121
+ "country": {
122
+ "direction": "ASC",
123
+ "priority": 1
124
+ },
125
+ "incoterms": {
126
+ "direction": "ASC",
127
+ "priority": 1
128
+ },
129
+ "licenseId": {
130
+ "direction": "ASC",
131
+ "priority": 1
132
+ },
133
+ "licenseStartDate": {
134
+ "direction": "ASC",
135
+ "priority": 1
136
+ },
137
+ "productType": {
138
+ "direction": "ASC",
139
+ "priority": 1
140
+ },
141
+ "quoteId": {
142
+ "direction": "ASC",
143
+ "priority": 1
144
+ },
145
+ "shippingDate": {
146
+ "direction": "ASC",
147
+ "priority": 1
148
+ },
149
+ "shippingStatus": {
150
+ "direction": "ASC",
151
+ "priority": 1
152
+ },
153
+ "siteName": {
154
+ "direction": "ASC",
155
+ "priority": 1
156
+ }
157
+ },
158
+ "pagingInput": {
159
+ "from": 1,
160
+ "limit": 1
161
+ }
162
+ }
163
+ }'
164
+ ```
165
+
14
166
  #### Operation Arguments for query.hardware ####
15
167
 
16
168
  `accountId` [ID] - (required) N/A
169
+ `hardwareSearchInput` [HardwareSearchInput] - (required) N/A
@@ -11,6 +11,62 @@ catocli query hardwareManagement <json>
11
11
 
12
12
  catocli query hardwareManagement "$(cat < query.hardwareManagement.json)"
13
13
 
14
+ catocli query hardwareManagement '{"socketInventoryInput":{"pagingInput":{"from":1,"limit":1},"socketInventoryFilterInput":{"freeText":{"search":"string"}},"socketInventoryOrderInput":{"accountName":{"direction":"ASC","priority":1},"deliverySiteName":{"direction":"ASC","priority":1},"description":{"direction":"ASC","priority":1},"installedSite":{"direction":"ASC","priority":1},"serialNumber":{"direction":"ASC","priority":1},"shippingCompany":{"direction":"ASC","priority":1},"shippingDate":{"direction":"ASC","priority":1},"socketType":{"direction":"ASC","priority":1},"status":{"direction":"ASC","priority":1}}}}'
15
+
16
+ catocli query hardwareManagement '{
17
+ "socketInventoryInput": {
18
+ "pagingInput": {
19
+ "from": 1,
20
+ "limit": 1
21
+ },
22
+ "socketInventoryFilterInput": {
23
+ "freeText": {
24
+ "search": "string"
25
+ }
26
+ },
27
+ "socketInventoryOrderInput": {
28
+ "accountName": {
29
+ "direction": "ASC",
30
+ "priority": 1
31
+ },
32
+ "deliverySiteName": {
33
+ "direction": "ASC",
34
+ "priority": 1
35
+ },
36
+ "description": {
37
+ "direction": "ASC",
38
+ "priority": 1
39
+ },
40
+ "installedSite": {
41
+ "direction": "ASC",
42
+ "priority": 1
43
+ },
44
+ "serialNumber": {
45
+ "direction": "ASC",
46
+ "priority": 1
47
+ },
48
+ "shippingCompany": {
49
+ "direction": "ASC",
50
+ "priority": 1
51
+ },
52
+ "shippingDate": {
53
+ "direction": "ASC",
54
+ "priority": 1
55
+ },
56
+ "socketType": {
57
+ "direction": "ASC",
58
+ "priority": 1
59
+ },
60
+ "status": {
61
+ "direction": "ASC",
62
+ "priority": 1
63
+ }
64
+ }
65
+ }
66
+ }'
67
+ ```
68
+
14
69
  #### Operation Arguments for query.hardwareManagement ####
15
70
 
16
71
  `accountId` [ID] - (required) N/A
72
+ `socketInventoryInput` [SocketInventoryInput] - (required) N/A
@@ -11,6 +11,69 @@ catocli query popLocations <json>
11
11
 
12
12
  catocli query popLocations "$(cat < query.popLocations.json)"
13
13
 
14
+ catocli query popLocations '{"popLocationFilterInput":{"booleanFilterInput":{"eq":true,"neq":true},"countryRefFilterInput":{"eq":{"by":"ID","input":"string"},"in":{"by":"ID","input":"string"},"neq":{"by":"ID","input":"string"},"nin":{"by":"ID","input":"string"}},"idFilterInput":{"eq":"id","in":["id1","id2"],"neq":"id","nin":["id1","id2"]},"popLocationCloudInterconnectFilterInput":{"taggingMethod":{"eq":"DOT1Q","in":"DOT1Q","neq":"DOT1Q","nin":"DOT1Q"}},"stringFilterInput":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]}}}'
15
+
16
+ catocli query popLocations '{
17
+ "popLocationFilterInput": {
18
+ "booleanFilterInput": {
19
+ "eq": true,
20
+ "neq": true
21
+ },
22
+ "countryRefFilterInput": {
23
+ "eq": {
24
+ "by": "ID",
25
+ "input": "string"
26
+ },
27
+ "in": {
28
+ "by": "ID",
29
+ "input": "string"
30
+ },
31
+ "neq": {
32
+ "by": "ID",
33
+ "input": "string"
34
+ },
35
+ "nin": {
36
+ "by": "ID",
37
+ "input": "string"
38
+ }
39
+ },
40
+ "idFilterInput": {
41
+ "eq": "id",
42
+ "in": [
43
+ "id1",
44
+ "id2"
45
+ ],
46
+ "neq": "id",
47
+ "nin": [
48
+ "id1",
49
+ "id2"
50
+ ]
51
+ },
52
+ "popLocationCloudInterconnectFilterInput": {
53
+ "taggingMethod": {
54
+ "eq": "DOT1Q",
55
+ "in": "DOT1Q",
56
+ "neq": "DOT1Q",
57
+ "nin": "DOT1Q"
58
+ }
59
+ },
60
+ "stringFilterInput": {
61
+ "eq": "string",
62
+ "in": [
63
+ "string1",
64
+ "string2"
65
+ ],
66
+ "neq": "string",
67
+ "nin": [
68
+ "string1",
69
+ "string2"
70
+ ]
71
+ }
72
+ }
73
+ }'
74
+ ```
75
+
14
76
  #### Operation Arguments for query.popLocations ####
15
77
 
16
78
  `accountId` [ID] - (required) N/A
79
+ `popLocationFilterInput` [PopLocationFilterInput] - (required) N/A
@@ -11,6 +11,75 @@ catocli query sandbox <json>
11
11
 
12
12
  catocli query sandbox "$(cat < query.sandbox.json)"
13
13
 
14
+ catocli query sandbox '{"sandboxReportsInput":{"pagingInput":{"from":1,"limit":1},"sandboxReportsFilterInput":{"fileHash":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"fileName":{"eq":"string","in":["string1","string2"],"neq":"string","nin":["string1","string2"]},"reportCreateDate":{"between":["example1","example2"],"eq":"example_value","gt":"example_value","gte":"example_value","in":["example1","example2"],"lt":"example_value","lte":"example_value","neq":"example_value","nin":["example1","example2"]}},"sandboxReportsSortInput":{"fileName":{"direction":"ASC","priority":1},"reportCreateDate":{"direction":"ASC","priority":1}}}}'
15
+
16
+ catocli query sandbox '{
17
+ "sandboxReportsInput": {
18
+ "pagingInput": {
19
+ "from": 1,
20
+ "limit": 1
21
+ },
22
+ "sandboxReportsFilterInput": {
23
+ "fileHash": {
24
+ "eq": "string",
25
+ "in": [
26
+ "string1",
27
+ "string2"
28
+ ],
29
+ "neq": "string",
30
+ "nin": [
31
+ "string1",
32
+ "string2"
33
+ ]
34
+ },
35
+ "fileName": {
36
+ "eq": "string",
37
+ "in": [
38
+ "string1",
39
+ "string2"
40
+ ],
41
+ "neq": "string",
42
+ "nin": [
43
+ "string1",
44
+ "string2"
45
+ ]
46
+ },
47
+ "reportCreateDate": {
48
+ "between": [
49
+ "example1",
50
+ "example2"
51
+ ],
52
+ "eq": "example_value",
53
+ "gt": "example_value",
54
+ "gte": "example_value",
55
+ "in": [
56
+ "example1",
57
+ "example2"
58
+ ],
59
+ "lt": "example_value",
60
+ "lte": "example_value",
61
+ "neq": "example_value",
62
+ "nin": [
63
+ "example1",
64
+ "example2"
65
+ ]
66
+ }
67
+ },
68
+ "sandboxReportsSortInput": {
69
+ "fileName": {
70
+ "direction": "ASC",
71
+ "priority": 1
72
+ },
73
+ "reportCreateDate": {
74
+ "direction": "ASC",
75
+ "priority": 1
76
+ }
77
+ }
78
+ }
79
+ }'
80
+ ```
81
+
14
82
  #### Operation Arguments for query.sandbox ####
15
83
 
16
84
  `accountId` [ID] - (required) N/A
85
+ `sandboxReportsInput` [SandboxReportsInput] - (required) N/A
@@ -11,9 +11,11 @@ catocli query socketPortMetrics <json>
11
11
 
12
12
  catocli query socketPortMetrics "$(cat < query.socketPortMetrics.json)"
13
13
 
14
- catocli query socketPortMetrics '{"socketPortMetricsDimension":{"fieldName":"account_id"},"socketPortMetricsFilter":{"fieldName":"account_id","operator":"is","values":["string1","string2"]},"socketPortMetricsMeasure":{"aggType":"sum","fieldName":"account_id","trend":true},"socketPortMetricsSort":{"fieldName":"account_id","order":"asc"},"timeFrame":"example_value"}'
14
+ catocli query socketPortMetrics '{"from":1,"limit":1,"socketPortMetricsDimension":{"fieldName":"account_id"},"socketPortMetricsFilter":{"fieldName":"account_id","operator":"is","values":["string1","string2"]},"socketPortMetricsMeasure":{"aggType":"sum","fieldName":"account_id","trend":true},"socketPortMetricsSort":{"fieldName":"account_id","order":"asc"},"timeFrame":"example_value"}'
15
15
 
16
16
  catocli query socketPortMetrics '{
17
+ "from": 1,
18
+ "limit": 1,
17
19
  "socketPortMetricsDimension": {
18
20
  "fieldName": "account_id"
19
21
  },
@@ -62,6 +64,8 @@ Format: `"utc.YYYY-MM-{DD/HH:MM:SS--DD/HH:MM:SS}"`
62
64
  #### Operation Arguments for query.socketPortMetrics ####
63
65
 
64
66
  `accountID` [ID] - (required) Account ID
67
+ `from` [Int] - (required) N/A
68
+ `limit` [Int] - (required) N/A
65
69
  `socketPortMetricsDimension` [SocketPortMetricsDimension[]] - (required) N/A
66
70
  `socketPortMetricsFilter` [SocketPortMetricsFilter[]] - (required) N/A
67
71
  `socketPortMetricsMeasure` [SocketPortMetricsMeasure[]] - (required) N/A
@@ -11,9 +11,11 @@ catocli query socketPortMetricsTimeSeries <json>
11
11
 
12
12
  catocli query socketPortMetricsTimeSeries "$(cat < query.socketPortMetricsTimeSeries.json)"
13
13
 
14
- catocli query socketPortMetricsTimeSeries '{"socketPortMetricsDimension":{"fieldName":"account_id"},"socketPortMetricsFilter":{"fieldName":"account_id","operator":"is","values":["string1","string2"]},"socketPortMetricsMeasure":{"aggType":"sum","fieldName":"account_id","trend":true},"timeFrame":"example_value"}'
14
+ catocli query socketPortMetricsTimeSeries '{"buckets":1,"perSecond":true,"socketPortMetricsDimension":{"fieldName":"account_id"},"socketPortMetricsFilter":{"fieldName":"account_id","operator":"is","values":["string1","string2"]},"socketPortMetricsMeasure":{"aggType":"sum","fieldName":"account_id","trend":true},"timeFrame":"example_value","useDefaultSizeBucket":true,"withMissingData":true}'
15
15
 
16
16
  catocli query socketPortMetricsTimeSeries '{
17
+ "buckets": 1,
18
+ "perSecond": true,
17
19
  "socketPortMetricsDimension": {
18
20
  "fieldName": "account_id"
19
21
  },
@@ -30,7 +32,9 @@ catocli query socketPortMetricsTimeSeries '{
30
32
  "fieldName": "account_id",
31
33
  "trend": true
32
34
  },
33
- "timeFrame": "example_value"
35
+ "timeFrame": "example_value",
36
+ "useDefaultSizeBucket": true,
37
+ "withMissingData": true
34
38
  }'
35
39
  ```
36
40
 
@@ -58,7 +62,11 @@ Format: `"utc.YYYY-MM-{DD/HH:MM:SS--DD/HH:MM:SS}"`
58
62
  #### Operation Arguments for query.socketPortMetricsTimeSeries ####
59
63
 
60
64
  `accountID` [ID] - (required) Account ID
65
+ `buckets` [Int] - (required) N/A
66
+ `perSecond` [Boolean] - (required) whether to normalize the data into per second (i.e. divide by granularity)
61
67
  `socketPortMetricsDimension` [SocketPortMetricsDimension[]] - (required) N/A
62
68
  `socketPortMetricsFilter` [SocketPortMetricsFilter[]] - (required) N/A
63
69
  `socketPortMetricsMeasure` [SocketPortMetricsMeasure[]] - (required) N/A
64
70
  `timeFrame` [TimeFrame] - (required) N/A
71
+ `useDefaultSizeBucket` [Boolean] - (required) In case we want to have the default size bucket (from properties)
72
+ `withMissingData` [Boolean] - (required) If false, the data field will be set to '0' for buckets with no reported data. Otherwise it will be set to -1