· 6 years ago · Oct 04, 2019, 04:48 PM
1{
2 "workflow": {
3 "unique_name": "definition_workflow_01ABJFMZX1MUZ1GiJLcvpBfXbofoQwPo4IU",
4 "name": "CA Creating Accountkeys",
5 "title": "CA Creating Accountkeys",
6 "type": "generic.workflow",
7 "base_type": "workflow",
8 "variables": [
9 {
10 "schema_id": "tabletype_01ABLTDWU1SQP7PoRuNl2wGPUJ7ZNzVBg4o",
11 "properties": {
12 "value": [
13 {
14 "column_data": {
15 "Type": "runtime_user.amqp_password_credentials"
16 }
17 },
18 {
19 "column_data": {
20 "Type": "runtime_user.ansible_tower_credentials"
21 }
22 },
23 {
24 "column_data": {
25 "Type": "runtime_user.aws_credentials"
26 }
27 },
28 {
29 "column_data": {
30 "Type": "runtime_user.ccs_explicit_user"
31 }
32 },
33 {
34 "column_data": {
35 "Type": "runtime_user.database_credentials"
36 }
37 },
38 {
39 "column_data": {
40 "Type": "runtime_user.email_credentials"
41 }
42 },
43 {
44 "column_data": {
45 "Type": "runtime_user.gcp_credentials"
46 }
47 },
48 {
49 "column_data": {
50 "Type": "runtime_user.git_password_credentials"
51 }
52 },
53 {
54 "column_data": {
55 "Type": "runtime_user.kafka_credentials"
56 }
57 },
58 {
59 "column_data": {
60 "Type": "runtime_user.meraki_credentials"
61 }
62 },
63 {
64 "column_data": {
65 "Type": "runtime_user.psc_credentials"
66 }
67 },
68 {
69 "column_data": {
70 "Type": "runtime_user.snmp_credentials"
71 }
72 },
73 {
74 "column_data": {
75 "Type": "runtime_user.terminal_password_credentials"
76 }
77 },
78 {
79 "column_data": {
80 "Type": "runtime_user.web-service_basic_credentials"
81 }
82 }
83 ],
84 "scope": "local",
85 "name": "Account Key Type",
86 "type": "datatype.table",
87 "is_required": false
88 },
89 "unique_name": "variable_workflow_01ABLV785EYIM6ro1nVA6HwQgDAlgAQigUJ",
90 "object_type": "variable_workflow"
91 },
92 {
93 "schema_id": "tabletype_01AIOCWOK7ZUI6yQ626SmDNxZ9BnxrYxNLM",
94 "properties": {
95 "scope": "output",
96 "name": "Extracted Account key Id's",
97 "type": "datatype.table",
98 "is_required": false
99 },
100 "unique_name": "variable_workflow_01AJ0SMD2SQLU64K0u7KuZoXPTUeqWA1lut",
101 "object_type": "variable_workflow"
102 }
103 ],
104 "properties": {
105 "atomic": {
106 "is_atomic": false
107 },
108 "delete_workflow_instance": false,
109 "display_name": "CA Creating Accountkeys",
110 "runtime_user": {
111 "override_target_runtime_user": false,
112 "specify_on_workflow_start": false,
113 "target_default": true
114 },
115 "target": {
116 "execute_on_target_group": false,
117 "execute_on_workflow_target": false,
118 "no_target": true,
119 "specify_on_workflow_start": false
120 }
121 },
122 "object_type": "definition_workflow",
123 "actions": [
124 {
125 "unique_name": "definition_activity_01ABL96A1X04D75r633TMOeutTLBF4lAhnD",
126 "name": "For Each",
127 "title": "For Each",
128 "type": "logic.for_each",
129 "base_type": "activity",
130 "properties": {
131 "continue_on_failure": true,
132 "display_name": "For Each",
133 "skip_execution": false,
134 "source_array": "$global.variable_01AJ03Y57LS8O2vsuXQLzftwJsJHYbyNOQs.global.variable_01AJ03Y57LS8O2vsuXQLzftwJsJHYbyNOQs$"
135 },
136 "object_type": "definition_activity",
137 "actions": [
138 {
139 "unique_name": "definition_activity_01ABL91R40G6L5CLAN89ZWDFURvTgcfYgMy",
140 "name": "Generic CCS API Request",
141 "title": "Creating Account keys",
142 "type": "ccs.api_request",
143 "base_type": "activity",
144 "properties": {
145 "action_timeout": 180,
146 "api_body": "$activity.definition_activity_01ABL96A1X04D75r633TMOeutTLBF4lAhnD.input.source_array[@].Payload$",
147 "api_call_method": "POST",
148 "continue_on_failure": true,
149 "display_name": "Creating Account keys",
150 "relative_url": "be-console/api/v1/runtime_users",
151 "runtime_user": {
152 "override_target_runtime_user": false,
153 "target_default": true
154 },
155 "skip_execution": false,
156 "target": {
157 "override_workflow_target": true,
158 "target_id": "definition_target_01f9IQgvQRJv3tvlqwR145Bbrye0toH0Q"
159 }
160 },
161 "object_type": "definition_activity"
162 },
163 {
164 "unique_name": "definition_activity_01ABM3Q1WLREL2AqRyLmsGlOSclqmagKgP8",
165 "name": "JSONPath Query",
166 "title": "Extracting Created Accountkey Id's",
167 "type": "corejava.jsonpathquery",
168 "base_type": "activity",
169 "properties": {
170 "action_timeout": 180,
171 "continue_on_failure": false,
172 "display_name": "Extracting Created Accountkey Id's",
173 "input_json": "$activity.definition_activity_01ABL91R40G6L5CLAN89ZWDFURvTgcfYgMy.output.response_body$",
174 "jsonpath_queries": [
175 {
176 "jsonpath_query": "$.[?(@.type=='$activity.definition_activity_01ABL96A1X04D75r633TMOeutTLBF4lAhnD.input.source_array[@].Schema_Type$')].id",
177 "jsonpath_query_name": "Accoun Key Ids",
178 "jsonpath_query_type": "string"
179 }
180 ],
181 "skip_execution": false
182 },
183 "object_type": "definition_activity"
184 },
185 {
186 "unique_name": "definition_activity_01AE4VZWPJ4CM1s5QaYmoq3rRmEPFaWbnmA",
187 "name": "Add Row to Table",
188 "title": "Adding Extracted Accountkey Id's to output Table",
189 "type": "core.addrowtotable",
190 "base_type": "activity",
191 "properties": {
192 "action_timeout": 180,
193 "continue_on_failure": true,
194 "description": " ",
195 "display_name": "Adding Extracted Accountkey Id's to output Table",
196 "input_table": "$workflow.definition_workflow_01ABJFMZX1MUZ1GiJLcvpBfXbofoQwPo4IU.output.variable_workflow_01AJ0SMD2SQLU64K0u7KuZoXPTUeqWA1lut$",
197 "row": [
198 {
199 "key": "ActivityName",
200 "type": "string",
201 "value": "$activity.definition_activity_01ABL96A1X04D75r633TMOeutTLBF4lAhnD.input.source_array[@].Name$"
202 },
203 {
204 "key": "ExtractedId's",
205 "type": "string",
206 "value": "$activity.definition_activity_01ABM3Q1WLREL2AqRyLmsGlOSclqmagKgP8.output.jsonpath_queries.Accoun Key Ids$"
207 },
208 {
209 "key": "SchemaType",
210 "type": "string",
211 "value": "$activity.definition_activity_01ABL96A1X04D75r633TMOeutTLBF4lAhnD.input.source_array[@].Schema_Type$"
212 }
213 ],
214 "skip_execution": false
215 },
216 "object_type": "definition_activity"
217 }
218 ]
219 }
220 ],
221 "categories": [
222 "category_1BMfMXSnJMyt5Ihqi7rWJr5N8cf"
223 ]
224 },
225 "variables": {
226 "variable_01AJ03Y57LS8O2vsuXQLzftwJsJHYbyNOQs": {
227 "unique_name": "variable_01AJ03Y57LS8O2vsuXQLzftwJsJHYbyNOQs",
228 "schema_id": "tabletype_01AIB7SS1KCY442d0EDVIBpQdnrqrxc65lU",
229 "properties": {
230 "value": [
231 {
232 "column_data": {
233 "HttpMethod": "POST",
234 "Name": "AMQP Password-Based Credentials",
235 "Payload": "{ \"name\": \"amqp_password_credentials\", \"title\": \"amqp_password_credentials\", \"type\": \"runtime_user.amqp_password_credentials\", \"base_type\": \"runtime_user\", \"properties\": { \"display_name\": \"amqp_password_credentials\", \"password\": \"admin\", \"username\": \"admin\" } }",
236 "Schema_Type": "runtime_user.amqp_password_credentials"
237 }
238 },
239 {
240 "column_data": {
241 "HttpMethod": "POST",
242 "Name": "Ansible Tower Credentials",
243 "Payload": "{ \"name\": \"Ansible Tower Credentials\", \"title\": \"Ansible Tower Credentials\", \"type\": \"runtime_user.ansible_tower_credentials\", \"properties\": { \"display_name\": \"Ansible Tower Credentials\", \"username\": \"longhornadmin\", \"password\": \"Cisco123!\" } }",
244 "Schema_Type": "runtime_user.ansible_tower_credentials"
245 }
246 },
247 {
248 "column_data": {
249 "HttpMethod": "POST",
250 "Name": "CloudCenter Suite Explicit User",
251 "Payload": "{ \"name\": \"CloudCenter Suite Explicit User\", \"title\": \"CloudCenter Suite Explicit User\", \"type\": \"runtime_user.ccs_explicit_user\", \"properties\": { \"display_name\": \"CloudCenter Suite Explicit User\", \"username\": \"caddan@cisco.com\", \"password\": \"Cisco123!\", \"tenant_id\": \"cisco\" } }",
252 "Schema_Type": "runtime_user.ccs_explicit_user"
253 }
254 },
255 {
256 "column_data": {
257 "HttpMethod": "POST",
258 "Name": "JDBC Login Credentials",
259 "Payload": "{ \"name\": \"JDBC Login Credentials\", \"type\": \"runtime_user.database_credentials\", \"properties\": { \"username\": \"longhornadmin\", \"password\": \"admin\", \"display_name\": \"JDBC Login Credentials\" } }",
260 "Schema_Type": "runtime_user.database_credentials"
261 }
262 },
263 {
264 "column_data": {
265 "HttpMethod": "POST",
266 "Name": "Email Credentials",
267 "Payload": "{ \"name\": \"Eamil Credentials\", \"title\": \"Eamil Credentials\", \"type\": \"runtime_user.email_credentials\", \"properties\": { \"sender\": \"chprakash@tidalsoft.local\", \"password\": \"Cisco,8112\", \"display_name\": \"Eamil Credentials\" } }",
268 "Schema_Type": "runtime_user.email_credentials"
269 }
270 },
271 {
272 "column_data": {
273 "HttpMethod": "POST",
274 "Name": "Google Cloud Platform Authentication",
275 "Payload": "{ \"name\": \"Google Cloud Platform Authentication\", \"title\": \"Google Cloud Platform Authentication\", \"type\": \"runtime_user.gcp_credentials\", \"properties\": { \"display_name\": \"Google Cloud Platform Authentication\", \"key\": \"{\\n \\\"type\\\": \\\"service_account\\\",\\n \\\"project_id\\\": \\\"longhorn-186314\\\",\\n \\\"private_key_id\\\": \\\"a521bfd3d051240beeeb429ab6b728a634b5af2b\\\",\\n \\\"private_key\\\": \\\"-----BEGIN PRIVATE KEY-----\\\\nMIIEuwIBADANBgkqhkiG9w0BAQEFAASCBKUwggShAgEAAoIBAQC6P1s3rbZq43gV\\\\nYuloZYkwT3biX1FtE/Ebgf4sIRXYZiO0vTv7lIx0lJRXIJLn4OtXmJ8M4UzwPNtW\\\\n9+Z+sHO80IrWhBDrz9VDyNZcMZBzM93ctdXsogBjIrU52Vfb+hLSh0afKUZVJwQn\\\\nq2D7IhyozBweI+qd3IA62D6lzpMrdKNtXweARoN/hg9RMDZYQQw3VcgjO2Mxn5wp\\\\nMbFmuDZTXh8Vv3yy3nq+W+Vn3fAwWZFe0Eb9g1LybukSGLerC6nE3iBVhYnWnKkz\\\\nf/4IT515VGpMgHWzA5495ir3LyIqjISJQCFb/WR94Au4Bt74CfTSmnv3zXT+yATf\\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v9V0vxUJgYZJswwXQ2jXnjcXmyMLRO7uAzOh+al2rLxPlkK\\\\nycqSs1ooP2xEWeASS6N9dIB4y85O0PfpGrU8pwKBgBYY2gaTnXvnwqXtAIwG7ccb\\\\nW4khQUWsVyNtl+NzR4FP6v0yiC6FO5xRJ67dyL+5g01SB8tsfH9K3u8rRFdVpOWL\\\\n30/B4ZkqwWMjlp5cq6xAduw3+DiTrN/GLQgUzHMmjr9dvGkgyjT8tsBl1dCNPKLR\\\\nb4sQzX1sA5+LOgMbtDWD\\\\n-----END PRIVATE KEY-----\\\\n\\\",\\n \\\"client_email\\\": \\\"longhorn-qa@longhorn-186314.iam.gserviceaccount.com\\\",\\n \\\"client_id\\\": \\\"106910988228686833980\\\",\\n \\\"auth_uri\\\": \\\"https://accounts.google.com/o/oauth2/auth\\\",\\n \\\"token_uri\\\": \\\"https://oauth2.googleapis.com/token\\\",\\n \\\"auth_provider_x509_cert_url\\\": \\\"https://www.googleapis.com/oauth2/v1/certs\\\",\\n \\\"client_x509_cert_url\\\": \\\"https://www.googleapis.com/robot/v1/metadata/x509/longhorn-qa%40longhorn-186314.iam.gserviceaccount.com\\\"\\n}\" } }",
276 "Schema_Type": "runtime_user.gcp_credentials"
277 }
278 },
279 {
280 "column_data": {
281 "HttpMethod": "POST",
282 "Name": "Git Password-Based Credentials",
283 "Payload": "{ \"name\": \"Git Password-Based Credentials\", \"title\": \"Git Password-Based Credentials\", \"type\": \"runtime_user.git_password_credentials\", \"properties\": { \"display_name\": \"Git Password-Based Credentials\", \"username\": \"ChandraAddan\", \"password\": \"chandra1235\" } }",
284 "Schema_Type": "runtime_user.git_password_credentials"
285 }
286 },
287 {
288 "column_data": {
289 "HttpMethod": "POST",
290 "Name": "Kafka Authentication",
291 "Payload": "{ \"name\": \"Kafka Authentication\", \"type\": \"runtime_user.kafka_credentials\", \"properties\": { \"username\": \"root\", \"password\": \"control\", \"display_name\": \"Kafka Authentication\" } }",
292 "Schema_Type": "runtime_user.kafka_credentials"
293 }
294 },
295 {
296 "column_data": {
297 "HttpMethod": "POST",
298 "Name": "Meraki Credentials",
299 "Payload": "{ \"name\": \"Meraki Credentials\", \"type\": \"runtime_user.meraki_credentials\", \"properties\": { \"display_name\": \"Meraki Credentials\", \"api_key\": \"f9de4fb146aec170292a71e70d20df7c9fe38f81\" } }",
300 "Schema_Type": "runtime_user.meraki_credentials"
301 }
302 },
303 {
304 "column_data": {
305 "HttpMethod": "POST",
306 "Name": "Cisco Prime Service Catalog Credentials",
307 "Payload": "{ \"type\": \"runtime_user.psc_credentials\", \"name\": \"Cisco Prime Service Catalog Credentials\", \"title\": \" Cisco Prime Service Catalog Credentials\", \"properties\": { \"display_name\": \"Cisco Prime Service Catalog Credentials\", \"username\": \"admin\", \"password\": \"admin\" } }",
308 "Schema_Type": "runtime_user.psc_credentials"
309 }
310 },
311 {
312 "column_data": {
313 "HttpMethod": "POST",
314 "Name": "SNMP Credentials",
315 "Payload": "{ \"name\": \"SNMP Credentials\", \"title\": \"SNMP Credentials\", \"type\": \"runtime_user.snmp_credentials\", \"properties\": { \"version\": \"3\", \"security\": { \"security_level\": \"authPriv\", \"auth_protocol\": 2, \"priv_protocol\": 2, \"auth_key\": \"password\", \"priv_key\": \"password\" }, \"display_name\": \"SNMP Credentials\", \"username\": \"chandra\" } }",
316 "Schema_Type": "runtime_user.snmp_credentials"
317 }
318 },
319 {
320 "column_data": {
321 "HttpMethod": "POST",
322 "Name": "Terminal Password-Based Credentials",
323 "Payload": "{ \"name\": \"CA Terminal Password-Based Credentials\", \"type\": \"runtime_user.terminal_key_credentials\", \"properties\": { \"display_name\": \"Terminal Password-Based Credentials\", \"user\": \"root\", \"password\": \"control\" } }",
324 "Schema_Type": "runtime_user.terminal_password_credentials"
325 }
326 },
327 {
328 "column_data": {
329 "Name": "HTTP Basic Authentication",
330 "Payload": "{ \"name\": \"HTTP Basic Authentication\", \"type\": \"runtime_user.web-service_basic_credentials\", \"properties\": { \"display_name\": \"HTTP Basic Authentication\", \"basic_username\": \"root\", \"basic_password\": \"control\" } }",
331 "Schema_Type": "runtime_user.web-service_basic_credentials"
332 }
333 }
334 ],
335 "scope": "global",
336 "name": "Create Account Keys",
337 "type": "datatype.table",
338 "is_required": false
339 },
340 "object_type": "variable"
341 }
342 },
343 "table_types": {
344 "tabletype_01ABLTDWU1SQP7PoRuNl2wGPUJ7ZNzVBg4o": {
345 "unique_name": "tabletype_01ABLTDWU1SQP7PoRuNl2wGPUJ7ZNzVBg4o",
346 "data_type": "datatype.tabletype",
347 "display_name": "Account key Type",
348 "columns": [
349 {
350 "name": "Type",
351 "title": "Type",
352 "type": "string"
353 }
354 ],
355 "base_type": "datatype",
356 "object_type": "tabletype"
357 },
358 "tabletype_01AIB7SS1KCY442d0EDVIBpQdnrqrxc65lU": {
359 "unique_name": "tabletype_01AIB7SS1KCY442d0EDVIBpQdnrqrxc65lU",
360 "data_type": "datatype.tabletype",
361 "display_name": "CCS API's",
362 "columns": [
363 {
364 "name": "HttpMethod",
365 "title": "Http Method",
366 "type": "string"
367 },
368 {
369 "name": "Name",
370 "title": "Name ",
371 "type": "string"
372 },
373 {
374 "name": "Payload",
375 "title": "Payload",
376 "type": "string"
377 },
378 {
379 "name": "Schema_Type",
380 "title": "Schema_Type",
381 "type": "string"
382 }
383 ],
384 "base_type": "datatype",
385 "object_type": "tabletype"
386 },
387 "tabletype_01AIOCWOK7ZUI6yQ626SmDNxZ9BnxrYxNLM": {
388 "unique_name": "tabletype_01AIOCWOK7ZUI6yQ626SmDNxZ9BnxrYxNLM",
389 "data_type": "datatype.tabletype",
390 "display_name": "CCS Api's Output",
391 "columns": [
392 {
393 "name": "ActivityName",
394 "title": "Activity Name",
395 "type": "string"
396 },
397 {
398 "name": "ExtractedId's",
399 "title": "Extracted Id's",
400 "type": "string"
401 },
402 {
403 "name": "SchemaType",
404 "title": "Schema Tyoe",
405 "type": "string"
406 }
407 ],
408 "base_type": "datatype",
409 "object_type": "tabletype"
410 }
411 }
412}