-
Notifications
You must be signed in to change notification settings - Fork 2
/
definition_workflow_01O5037A0BIRH6MFeU1CH8LlcbAdwYiuwzN.json
180 lines (180 loc) · 6.64 KB
/
definition_workflow_01O5037A0BIRH6MFeU1CH8LlcbAdwYiuwzN.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
{
"workflow": {
"unique_name": "definition_workflow_01O5037A0BIRH6MFeU1CH8LlcbAdwYiuwzN",
"name": "CDO REST - Monitor Jobs",
"title": "CDO REST - Monitor Jobs",
"type": "generic.workflow",
"base_type": "workflow",
"variables": [
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "input",
"name": "Job UID",
"type": "datatype.string",
"is_required": true,
"is_invisible": false
},
"unique_name": "variable_workflow_01O50379SBHBF6Qc14B9VBdkKUO9QeJMN0U",
"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_01O50379SBMA12Eh6wqgcwE2sS93pz4pgfY",
"object_type": "variable_workflow"
},
{
"schema_id": "datatype.string",
"properties": {
"value": "",
"scope": "output",
"name": "Status",
"type": "datatype.string",
"is_required": false,
"is_invisible": false
},
"unique_name": "variable_workflow_01O50379SBNMQ6XCCTknkkLVHuxQG7P1jPW",
"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 monitor a deployment job 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 job UID as input (optional)\n4. The output of this atomic action is the status of a job on CDO. If no job UID is supplied, the output is the overall status of all jobs on CDO.",
"display_name": "CDO REST - Monitor Jobs",
"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_01O50384K3RXL6S4fK9PvjdUh1dhReBFV7n",
"name": "HTTP Request",
"title": "CDO - Get Job Status",
"type": "web-service.http_request",
"base_type": "activity",
"properties": {
"accept": "application/json, text/plain, */*",
"action_timeout": 180,
"allow_auto_redirect": true,
"content_type": "application/json",
"continue_on_error_status_code": false,
"continue_on_failure": false,
"custom_headers": [
{
"name": "Authorization",
"value": "Bearer $workflow.definition_workflow_01O5037A0BIRH6MFeU1CH8LlcbAdwYiuwzN.input.variable_workflow_01O50379SBMA12Eh6wqgcwE2sS93pz4pgfY$"
},
{
"name": "Sec-Fetch-Site",
"value": "same-origin"
},
{
"name": "Sec-Fetch-Mode",
"value": "cors"
}
],
"display_name": "CDO - Get Job Status",
"method": "GET",
"relative_url": "services/state-machines/jobs/$workflow.definition_workflow_01O5037A0BIRH6MFeU1CH8LlcbAdwYiuwzN.input.variable_workflow_01O50379SBHBF6Qc14B9VBdkKUO9QeJMN0U$",
"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_01O5038K6KYMT2WPkYf5mucnAz08Sw2JeHp",
"name": "JSONPath Query",
"title": "Parse Progress",
"type": "corejava.jsonpathquery",
"base_type": "activity",
"properties": {
"action_timeout": 180,
"continue_on_failure": false,
"display_name": "Parse Progress",
"input_json": "$activity.definition_activity_01O50384K3RXL6S4fK9PvjdUh1dhReBFV7n.output.response_body$",
"jsonpath_queries": [
{
"jsonpath_query": "$.overallProgress",
"jsonpath_query_name": "Progress",
"jsonpath_query_type": "string"
}
],
"skip_execution": false
},
"object_type": "definition_activity"
},
{
"unique_name": "definition_activity_01O5039EL7RY600fSLFdupJ4bE0s6LJVhZX",
"name": "Set Variables",
"title": "Set Job Progress as Output",
"type": "core.set_multiple_variables",
"base_type": "activity",
"properties": {
"continue_on_failure": false,
"display_name": "Set Job Progress as Output",
"skip_execution": false,
"variables_to_update": [
{
"variable_to_update": "$workflow.definition_workflow_01O5037A0BIRH6MFeU1CH8LlcbAdwYiuwzN.output.variable_workflow_01O50379SBNMQ6XCCTknkkLVHuxQG7P1jPW$",
"variable_value_new": "$activity.definition_activity_01O5038K6KYMT2WPkYf5mucnAz08Sw2JeHp.output.jsonpath_queries.Progress$"
}
]
},
"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"
}
}
}
}