-
Notifications
You must be signed in to change notification settings - Fork 2
/
definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.json
262 lines (262 loc) · 10.6 KB
/
definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.json
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
{
"workflow": {
"unique_name": "definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT",
"name": "CDO REST - New Service Object",
"title": "CDO REST - New Service Object",
"type": "generic.workflow",
"base_type": "workflow",
"variables": [
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "input",
"name": "Service Object Name",
"type": "datatype.string",
"is_required": true,
"is_invisible": false
},
"unique_name": "variable_workflow_01O7PRKHDFWJ222YuvCdHWEP0wUVkbdnGOy",
"object_type": "variable_workflow"
},
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "output",
"name": "Service Object UID",
"type": "datatype.string",
"is_required": false,
"is_invisible": false
},
"unique_name": "variable_workflow_01O7PRKHDG1N23Pq9KFThwfr1kB4JplaeFy",
"object_type": "variable_workflow"
},
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "input",
"name": "Service Object Description",
"type": "datatype.string",
"is_required": false,
"is_invisible": false
},
"unique_name": "variable_workflow_01O7PRKHDG0HR4bWSmu2s5JqO6Icvb0dut3",
"object_type": "variable_workflow"
},
{
"schema_id": "datatype.secure_string",
"properties": {
"value": "",
"scope": "input",
"name": "CDO Bearer",
"type": "datatype.secure_string",
"is_required": true,
"is_invisible": false
},
"unique_name": "variable_workflow_01O7PRKHDFZ800NGFwGufPP2t1nJMzSKVJp",
"object_type": "variable_workflow"
},
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "input",
"name": "Protocol",
"type": "datatype.string",
"description": "tcp, udp, tcp-udp",
"is_required": true,
"is_invisible": false
},
"unique_name": "variable_workflow_01O7PV7YH9UEI0cJOKVNLsijrl5eiYIVgJu",
"object_type": "variable_workflow"
},
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "input",
"name": "Destination Port",
"type": "datatype.string",
"is_required": false,
"is_invisible": false
},
"unique_name": "variable_workflow_01O7PWQV29PP05QlXO4nzT0YoF1RwXbEmYm",
"object_type": "variable_workflow"
},
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "input",
"name": "Source Port",
"type": "datatype.string",
"is_required": false,
"is_invisible": false
},
"unique_name": "variable_workflow_01O7PVK5FN15F3kqSQxZTytCVN1P5YxjvWA",
"object_type": "variable_workflow"
}
],
"properties": {
"atomic": {
"atomic_group": "Cisco Defense Orchestrator",
"is_atomic": true
},
"delete_workflow_instance": false,
"description": "This atomic action makes use of CDO's REST API to create a new service object on CDO. \n\nSteps to use:\n1. Create a target for the CDO REST API: https://www.defenseorchestrator.com/aegis/rest/v1/\n2. Input CDO API Token to this workflow\n3. Supply the protocol, object name, description, source/destination ports for the service object as applicable\n4. The output of this atomic action is the UID of the Service Object created",
"display_name": "CDO REST - New Service Object",
"runtime_user": {
"override_target_runtime_user": false,
"specify_on_workflow_start": false,
"target_default": true
},
"target": {
"target_type": "web-service.endpoint",
"target_id": "definition_target_01NKG9ZKYGAF56OaKjPkRvYn4LMuWTyKafg",
"execute_on_workflow_target": true
}
},
"object_type": "definition_workflow",
"actions": [
{
"unique_name": "definition_activity_01O7PRLTSONGL2xlFS71HoYPLBa3DtMhDJG",
"name": "HTTP Request",
"title": "CDO - Create Service Object",
"type": "web-service.http_request",
"base_type": "activity",
"properties": {
"accept": "application/json, text/plain, */*",
"action_timeout": 180,
"allow_auto_redirect": true,
"body": "{\n \"name\": \"$workflow.definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.input.variable_workflow_01O7PRKHDFWJ222YuvCdHWEP0wUVkbdnGOy$\",\n \"@typeName\": \"LocalObject\",\n \"objectType\": \"SERVICE_OBJECT\",\n \"contents\": [\n {\n \"@type\": \"ServiceContent\",\n \"protocol\": \"$workflow.definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.input.variable_workflow_01O7PV7YH9UEI0cJOKVNLsijrl5eiYIVgJu$\",\n \"sourcePort\": {\n \"@type\": \"PortContent\",\n \"operation\": \"EQ\",\n \"ports\": [\n \"$workflow.definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.input.variable_workflow_01O7PVK5FN15F3kqSQxZTytCVN1P5YxjvWA$\"\n ],\n \"type\": \"UNSPECIFIED\"\n },\n \"destinationPort\": {\n \"@type\": \"PortContent\",\n \"operation\": \"EQ\",\n \"ports\": [\n \"$workflow.definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.input.variable_workflow_01O7PWQV29PP05QlXO4nzT0YoF1RwXbEmYm$\"\n ],\n \"type\": \"UNSPECIFIED\"\n }\n }\n ],\n \"deviceType\": \"ASA\",\n \"description\": \"$workflow.definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.input.variable_workflow_01O7PRKHDG0HR4bWSmu2s5JqO6Icvb0dut3$\",\n \"stateMachineContext\": {}\n}",
"content_type": "application/json",
"continue_on_error_status_code": false,
"continue_on_failure": false,
"custom_headers": [
{
"name": "Authorization",
"value": "Bearer $workflow.definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.input.variable_workflow_01O7PRKHDFZ800NGFwGufPP2t1nJMzSKVJp$"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
}
],
"display_name": "CDO - Create Service Object",
"method": "POST",
"relative_url": "/services/targets/objects",
"runtime_user": {
"override_target_runtime_user": false,
"target_default": true
},
"skip_execution": false,
"target": {
"override_workflow_target": false,
"override_workflow_target_group_criteria": false,
"use_workflow_target": true,
"use_workflow_target_group": false
},
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36 Edg/90.0.818.42"
},
"object_type": "definition_activity"
},
{
"unique_name": "definition_activity_01O7PRM9M8PTL5UPwLZR9jpv9Hiy2wjOQMT",
"name": "JSONPath Query",
"title": "Parse Response - UID",
"type": "corejava.jsonpathquery",
"base_type": "activity",
"properties": {
"action_timeout": 180,
"continue_on_failure": false,
"display_name": "Parse Response - UID",
"input_json": "$activity.definition_activity_01O7PRLTSONGL2xlFS71HoYPLBa3DtMhDJG.output.response_body$",
"jsonpath_queries": [
{
"jsonpath_query": "$..uid",
"jsonpath_query_name": "Service Object UID",
"jsonpath_query_type": "string"
}
],
"skip_execution": false
},
"object_type": "definition_activity"
},
{
"unique_name": "definition_activity_01O7PRMPHVAFK3SNStwHdCzae6LYEo8zzoy",
"name": "Replace String",
"title": "Clean Up Response",
"type": "core.replacestring",
"base_type": "activity",
"properties": {
"continue_on_failure": false,
"display_name": "Clean Up Response",
"input_string": "$activity.definition_activity_01O7PRM9M8PTL5UPwLZR9jpv9Hiy2wjOQMT.output.jsonpath_queries.Service Object UID$",
"replace_list": [
{
"replaced_string": "[",
"replacement_string": ""
},
{
"replaced_string": "]",
"replacement_string": ""
},
{
"replaced_string": "\"",
"replacement_string": ""
}
],
"skip_execution": false
},
"object_type": "definition_activity"
},
{
"unique_name": "definition_activity_01O7PRN6HQDXR67oUYFDmi3pUiDRtzi9PDS",
"name": "Set Variables",
"title": "Set SVC Object UID as Output",
"type": "core.set_multiple_variables",
"base_type": "activity",
"properties": {
"continue_on_failure": false,
"display_name": "Set SVC Object UID as Output",
"skip_execution": false,
"variables_to_update": [
{
"variable_to_update": "$workflow.definition_workflow_01O7PRKHLAVEG0ZlODoGdPH324Ct6GKlqoT.output.variable_workflow_01O7PRKHDG1N23Pq9KFThwfr1kB4JplaeFy$",
"variable_value_new": "$activity.definition_activity_01O7PRMPHVAFK3SNStwHdCzae6LYEo8zzoy.output.result_string$"
}
]
},
"object_type": "definition_activity"
}
],
"categories": [
"category_1BMfMXSnJMyt5Ihqi7rWJr5N8cf"
]
},
"targets": {
"definition_target_01NKG9ZKYGAF56OaKjPkRvYn4LMuWTyKafg": {
"unique_name": "definition_target_01NKG9ZKYGAF56OaKjPkRvYn4LMuWTyKafg",
"name": "CDO REST API",
"title": "CDO REST API",
"type": "web-service.endpoint",
"base_type": "target",
"object_type": "definition_target",
"properties": {
"disable_certificate_validation": false,
"display_name": "CDO REST API",
"host": "www.defenseorchestrator.com",
"ignore_proxy": false,
"no_runtime_user": true,
"path": "/aegis/rest/v1",
"protocol": "https"
}
}
}
}