-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathZscalerIntegration.yml
More file actions
executable file
·192 lines (192 loc) · 8.81 KB
/
Copy pathZscalerIntegration.yml
File metadata and controls
executable file
·192 lines (192 loc) · 8.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
name: Falcon-Zscaler Integration
parameters:
actions:
configuration:
GetUrlCategory:
properties:
urlCategoryConfiguredName:
required: false
iterations_handler_7b9614a1:
properties:
quantity:
required: false
provision_on_install: true
trigger:
next:
- CreateVariable
name: On demand
type: On demand
actions:
CreateVariable:
id: 702d15788dbbffdf0b68d8e2f3599aa4
class: CreateVariable
name: Create variable
next:
- GetUrlCategory
properties:
variable_schema:
properties:
PaginationMarker:
type: string
UrlCategoryConfiguredName:
type: string
UrlCategoryID:
type: string
lookup_result_start_key:
type: string
type: object
version_constraint: ~1
GetUrlCategory:
id: functions.get-url-category.get-url-category
name: get-url-category
next:
- urlcategoryid_exists_urlcategoryconfiguredname_exists
properties:
apiDefinitionId: ZIA Cloud Service API
apiOperationId: _GET_urlcategories_lite
version_constraint: ~0
UpdateVariable2:
id: 6c6eab39063fa3b72d98c82af60deb8a
class: UpdateVariable
name: Update variable
next:
- iterations_handler_7b9614a1
properties:
WorkflowCustomVariable:
UrlCategoryConfiguredName: ${data['GetUrlCategory.FaaS.get-url-category.get-url-category.urlCategoryConfiguredName']}
UrlCategoryID: ${data['GetUrlCategory.FaaS.get-url-category.get-url-category.urlCategoryId']}
version_constraint: ~1
activate_changes_1c6055a6:
id: api_integrations.ZIA Cloud Service API._POST__status_activate
name: Activate Changes
properties:
json: '{}'
params:
header:
Content-Type: application/json
iterations_handler_7b9614a1:
id: functions.iterations.iterations-handler
name: iterations-handler
next:
- activity_7b9614a1_28fa_4a5b_b923_7ee07f42f792_faas_iterations_iterations_handler_offset_18bc5891
properties: {}
conditions:
urlcategoryid_exists_urlcategoryconfiguredname_exists:
next:
- UpdateVariable2
expression: GetUrlCategory.FaaS.get-url-category.get-url-category.urlCategoryId:!null+GetUrlCategory.FaaS.get-url-category.get-url-category.urlCategoryConfiguredName:!null
display:
- UrlCategoryId exists
- UrlCategoryConfiguredName exists
loops:
activity_7b9614a1_28fa_4a5b_b923_7ee07f42f792_faas_iterations_iterations_handler_offset_18bc5891:
next:
- activate_changes_1c6055a6
for:
input: iterations_handler_7b9614a1.FaaS.iterations.iterations-handler.offset
continue_on_partial_execution: false
sequential: true
trigger:
next:
- PullLookupUrls
actions:
ExtractHandler2:
id: functions.extract.extract-handler
name: extract-handler
next:
- PushIocsToZiaHandler2
properties:
json:
json:
list: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.lookup_results']}
version_constraint: ~0
LoopBreak:
id: 08277433694a898fee7a993d614d9836
class: Break
name: Loop break
properties:
sub_model_node_id: activity_7b9614a1_28fa_4a5b_b923_7ee07f42f792_faas_iterations_iterations_handler_offset_18bc5891
PullLookupUrls:
id: functions.pull-lookup-urls.pull-lookup-urls
name: pull-lookup-urls
next:
- WriteToLogRepo
properties:
apiDefinitionId: ZIA Cloud Service API
apiOperationId: _POST__urllookup
marker: ${data['WorkflowCustomVariable.PaginationMarker']}
offset: ${iterations_handler_7b9614a1.FaaS.iterations.iterations-handler.offset.#}
version_constraint: ~0
PushIocsToZiaHandler2:
id: functions.push-iocs-to-zia.push-iocs-to-zia-handler
name: push-iocs-to-zia-handler
next:
- WritePushIOCsHandlerResponseToLogRepo
properties:
action: ADD_TO_LIST
apiDefinitionId: ZIA Cloud Service API
apiOperationId: _PUT__urlcategories
categoryID: ${data['WorkflowCustomVariable.UrlCategoryID']}
configuredName: ${data['WorkflowCustomVariable.UrlCategoryConfiguredName']}
customCategory: "TRUE"
superCategory: USER_DEFINED
urls:
- ${ExtractHandler2.FaaS.extract.extract-handler.urls}
version_constraint: ~0
UpdatePaginationMarkerValue:
id: 6c6eab39063fa3b72d98c82af60deb8a
class: UpdateVariable
name: Update pagination marker value
next:
- datapulllookupurls_faas_pull_lookup_urls_pull_lookup_urls_lookup_results__null_sizedatapulllookupurl
properties:
WorkflowCustomVariable:
PaginationMarker: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.marker']}
version_constraint: ~1
WritePushIOCsHandlerResponseToLogRepo:
id: 0ec68880256f6192b9abef766d31fb04
name: write push IOCs handler response to log repo
next:
- paginationmarker_does_not_exist
properties:
custom_json:
errors: ${data['PushIocsToZiaHandler2.FaaS.push-iocs-to-zia.push-iocs-to-zia-handler.errors']}
lookup_result: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.lookup_results']}
type: push-iocs-to-zia-result
urlCategoryConfiguredName: ${data['PushIocsToZiaHandler2.FaaS.push-iocs-to-zia.push-iocs-to-zia-handler.urlCategoryConfiguredName']}
urlCategoryId: ${data['PushIocsToZiaHandler2.FaaS.push-iocs-to-zia.push-iocs-to-zia-handler.urlCategoryId']}
urls: ${data['PushIocsToZiaHandler2.FaaS.push-iocs-to-zia.push-iocs-to-zia-handler.urls']}
foundry_app_id: ${{FOUNDRY_APP_ID}}
version_constraint: ~1
WriteToLogRepo:
id: 0ec68880256f6192b9abef766d31fb04
name: Write to log repo
next:
- UpdatePaginationMarkerValue
properties:
custom_json:
errors: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.errors']}
lookup_result: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.lookup_results']}
marker: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.marker']}
totalIntelIndicatorRecords: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.totalIntelIndicatorRecords']}
type: pull-lookup-urls-result
urls: ${data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.urls']}
foundry_app_id: ${{FOUNDRY_APP_ID}}
version_constraint: ~1
conditions:
datapulllookupurls_faas_pull_lookup_urls_pull_lookup_urls_lookup_results__null_sizedatapulllookupurl:
next:
- ExtractHandler2
cel_expression: |-
data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.lookup_results'] != null &&
size(data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.lookup_results']) > 0
display:
- |-
data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.lookup_results'] != null &&
size(data['PullLookupUrls.FaaS.pull-lookup-urls.pull-lookup-urls.lookup_results']) > 0
paginationmarker_does_not_exist:
next:
- LoopBreak
expression: WorkflowCustomVariable.PaginationMarker:null
display:
- PaginationMarker does not exist