aspera-cli 4.29.1 → 4.30.0
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -4
- data/CHANGELOG.md +119 -0
- data/CONTRIBUTING.md +8 -1
- data/README.md +2 -0
- data/TODO.md +4 -5
- data/bin/asession +2 -2
- data/docs/README.md +616 -86
- data/docs/test-mcp-with-ai.md +4 -0
- data/lib/aspera/agent/base.rb +62 -6
- data/lib/aspera/agent/factory.rb +127 -20
- data/lib/aspera/ascp/data_repository.rb +71 -0
- data/lib/aspera/ascp/installation.rb +16 -11
- data/lib/aspera/ascp/log_analyzer/lines.rb +4 -4
- data/lib/aspera/ascp/log_analyzer/log_file.rb +5 -3
- data/lib/aspera/ascp/log_analyzer/records.rb +11 -6
- data/lib/aspera/ascp/log_analyzer.rb +43 -18
- data/lib/aspera/ascp/log_locations.rb +2 -2
- data/lib/aspera/assert.rb +8 -0
- data/lib/aspera/bundle_registry.rb +528 -0
- data/lib/aspera/cli/argument.rb +110 -0
- data/lib/aspera/cli/bool_value.rb +41 -0
- data/lib/aspera/cli/bootstrapper.rb +31 -24
- data/lib/aspera/cli/command/mount.rb +53 -0
- data/lib/aspera/cli/command/registry.rb +434 -0
- data/lib/aspera/cli/command.rb +95 -0
- data/lib/aspera/cli/command_line.rb +91 -91
- data/lib/aspera/cli/complete.rb +22 -0
- data/lib/aspera/cli/completion_actions.rb +28 -26
- data/lib/aspera/cli/context.rb +29 -6
- data/lib/aspera/cli/error.rb +39 -0
- data/lib/aspera/cli/extended_value.rb +25 -4
- data/lib/aspera/cli/formatter.rb +8 -8
- data/lib/aspera/cli/hints.rb +17 -52
- data/lib/aspera/cli/http.rb +17 -12
- data/lib/aspera/cli/mailer.rb +7 -24
- data/lib/aspera/cli/mcp/tool.rb +10 -2
- data/lib/aspera/cli/option/declarator.rb +80 -0
- data/lib/aspera/cli/option/registry.rb +74 -0
- data/lib/aspera/cli/option/source.rb +38 -0
- data/lib/aspera/cli/option/type.rb +37 -0
- data/lib/aspera/cli/option/value.rb +376 -0
- data/lib/aspera/cli/option.rb +78 -0
- data/lib/aspera/cli/options.schema.yaml +28 -783
- data/lib/aspera/cli/parser.rb +73 -41
- data/lib/aspera/cli/plugins/base.rb +122 -42
- data/lib/aspera/cli/plugins/basic_auth.rb +13 -2
- data/lib/aspera/cli/plugins/config.rb +101 -167
- data/lib/aspera/cli/plugins/factory.rb +139 -43
- data/lib/aspera/cli/plugins/mcp.rb +61 -54
- data/lib/aspera/cli/plugins/oauth.rb +19 -6
- data/lib/aspera/cli/poll.rb +14 -20
- data/lib/aspera/cli/preset_actions.rb +11 -3
- data/lib/aspera/cli/preset_manager.rb +16 -6
- data/lib/aspera/cli/result.rb +2 -2
- data/lib/aspera/cli/runner.rb +71 -99
- data/lib/aspera/cli/secret_finder.rb +1 -1
- data/lib/aspera/cli/security.rb +102 -4
- data/lib/aspera/{preview/terminal.rb → cli/terminal_image.rb} +93 -94
- data/lib/aspera/cli/vault_manager.rb +3 -3
- data/lib/aspera/cli/version.rb +1 -1
- data/lib/aspera/cli/wizard.rb +9 -3
- data/lib/aspera/coverage.rb +1 -2
- data/lib/aspera/line_logger.rb +35 -6
- data/lib/aspera/log.rb +3 -2
- data/lib/aspera/oauth/client/base.rb +19 -1
- data/lib/aspera/oauth/client/factory.rb +1 -7
- data/lib/aspera/plugin.schema.yaml +178 -0
- data/lib/aspera/plugins/alee/api.rb +25 -0
- data/lib/aspera/{cli/plugins/alee.rb → plugins/alee/commands.rb} +10 -8
- data/lib/aspera/plugins/alee/plugin.yaml +3 -0
- data/lib/aspera/plugins/aoc/admin_resources.rb +148 -0
- data/lib/aspera/plugins/aoc/api.rb +783 -0
- data/lib/aspera/{cli/plugins/aoc.rb → plugins/aoc/commands.rb} +404 -330
- data/lib/aspera/plugins/aoc/graphql.rb +45 -0
- data/lib/aspera/plugins/aoc/plugin.yaml +31 -0
- data/lib/aspera/{schema → plugins/aoc/schemas}/IBM Aspera on Cloud API-0.2.6-enhanced.yaml +15042 -7076
- data/lib/aspera/plugins/aoc/schemas/options.yaml +47 -0
- data/lib/aspera/plugins/ats/api.rb +51 -0
- data/lib/aspera/{cli/plugins/ats.rb → plugins/ats/commands.rb} +33 -33
- data/lib/aspera/plugins/ats/plugin.yaml +6 -0
- data/lib/aspera/plugins/connect/agent.rb +199 -0
- data/lib/aspera/plugins/connect/plugin.yaml +11 -0
- data/lib/aspera/plugins/connect/schemas/agent_options.yaml +6 -0
- data/lib/aspera/{cli/plugins/console.rb → plugins/console/commands.rb} +41 -33
- data/lib/aspera/plugins/console/plugin.yaml +8 -0
- data/lib/aspera/plugins/cos/api.rb +114 -0
- data/lib/aspera/{cli/plugins/cos.rb → plugins/cos/commands.rb} +19 -16
- data/lib/aspera/plugins/cos/plugin.yaml +9 -0
- data/lib/aspera/plugins/cos/schemas/options.yaml +30 -0
- data/lib/aspera/plugins/desktop/agent.rb +165 -0
- data/lib/aspera/plugins/desktop/plugin.yaml +11 -0
- data/lib/aspera/plugins/desktop/schemas/agent_options.yaml +6 -0
- data/lib/aspera/plugins/direct/agent.rb +518 -0
- data/lib/aspera/plugins/direct/plugin.yaml +11 -0
- data/lib/aspera/plugins/direct/schemas/agent_options.yaml +86 -0
- data/lib/aspera/plugins/faspex4/gateway_options.rb +18 -0
- data/lib/aspera/plugins/faspex4/gw_servlet.rb +122 -0
- data/lib/aspera/plugins/faspex4/plugin.yaml +7 -0
- data/lib/aspera/plugins/faspex4/schemas/options.yaml +57 -0
- data/lib/aspera/plugins/faspex5/api.rb +269 -0
- data/lib/aspera/{cli/plugins/faspex5.rb → plugins/faspex5/commands.rb} +152 -114
- data/lib/aspera/plugins/faspex5/faspex4_post_proc_servlet.rb +241 -0
- data/lib/aspera/plugins/faspex5/plugin.yaml +14 -0
- data/lib/aspera/{schema → plugins/faspex5/schemas}/IBM Aspera Faspex API-5.0-enhanced.yaml +279 -76
- data/lib/aspera/plugins/faspex5/schemas/options.yaml +87 -0
- data/lib/aspera/{cli/plugins/faspio.rb → plugins/faspio/commands.rb} +11 -7
- data/lib/aspera/plugins/faspio/plugin.yaml +8 -0
- data/lib/aspera/{schema → plugins/faspio/schemas}/IBM Aspera faspio Gateway API-1.0.0-enhanced.yaml +4 -2
- data/lib/aspera/plugins/httpgw/agent.rb +126 -0
- data/lib/aspera/plugins/httpgw/api.rb +411 -0
- data/lib/aspera/{cli/plugins/httpgw.rb → plugins/httpgw/commands.rb} +9 -9
- data/lib/aspera/plugins/httpgw/plugin.yaml +12 -0
- data/lib/aspera/plugins/httpgw/schemas/agent_options.yaml +24 -0
- data/lib/aspera/plugins/node/agent.rb +184 -0
- data/lib/aspera/plugins/node/api.rb +699 -0
- data/lib/aspera/{cli/plugins/node.rb → plugins/node/commands.rb} +166 -141
- data/lib/aspera/plugins/node/emulator.rb +774 -0
- data/lib/aspera/plugins/node/plugin.yaml +20 -0
- data/lib/aspera/plugins/node/schemas/agent_options.yaml +20 -0
- data/lib/aspera/plugins/node/schemas/options.yaml +190 -0
- data/lib/aspera/{cli/plugins/orchestrator.rb → plugins/orchestrator/commands.rb} +139 -110
- data/lib/aspera/plugins/orchestrator/plugin.yaml +34 -0
- data/lib/aspera/{schema → plugins/orchestrator/schemas}/IBM Aspera Orchestrator API-v1-enhanced.yaml +486 -16
- data/lib/aspera/plugins/orchestrator/schemas/options.yaml +143 -0
- data/lib/aspera/plugins/orchestrator/workflow_checker.rb +692 -0
- data/lib/aspera/{cli/plugins/preview.rb → plugins/preview/commands.rb} +53 -51
- data/lib/aspera/plugins/preview/file_types.rb +121 -0
- data/lib/aspera/plugins/preview/generator.rb +350 -0
- data/lib/aspera/plugins/preview/plugin.yaml +12 -0
- data/lib/aspera/{preview/options.schema.yaml → plugins/preview/schemas/options.yaml} +1 -1
- data/lib/aspera/plugins/preview/utils.rb +213 -0
- data/lib/aspera/plugins/server/ascmd.rb +374 -0
- data/lib/aspera/{cli/plugins/server.rb → plugins/server/commands.rb} +48 -32
- data/lib/aspera/plugins/server/plugin.yaml +9 -0
- data/lib/aspera/plugins/server/schemas/options.yaml +30 -0
- data/lib/aspera/{cli/plugins/shares.rb → plugins/shares/commands.rb} +29 -21
- data/lib/aspera/plugins/shares/plugin.yaml +10 -0
- data/lib/aspera/plugins/shares/shares_web.rb +97 -0
- data/lib/aspera/plugins/transferd/agent.rb +258 -0
- data/lib/aspera/plugins/transferd/api.rb +180 -0
- data/lib/aspera/plugins/transferd/client.rb +67 -0
- data/lib/aspera/{cli/plugins/transferd.rb → plugins/transferd/commands.rb} +43 -42
- data/lib/aspera/plugins/transferd/config_commands.rb +38 -0
- data/lib/aspera/plugins/transferd/plugin.yaml +27 -0
- data/lib/aspera/plugins/transferd/product.rb +146 -0
- data/lib/aspera/plugins/transferd/schemas/agent_options.yaml +31 -0
- data/lib/aspera/plugins/transferd/schemas/options.yaml +80 -0
- data/lib/aspera/plugins/transferd/service.rb +617 -0
- data/lib/aspera/plugins/xfer/ascp_actions.rb +131 -0
- data/lib/aspera/plugins/xfer/ascp_logs_actions.rb +198 -0
- data/lib/aspera/plugins/xfer/async_transfer_store.rb +131 -0
- data/lib/aspera/plugins/xfer/config_commands.rb +119 -0
- data/lib/aspera/plugins/xfer/helper.rb +19 -0
- data/lib/aspera/plugins/xfer/plugin.yaml +42 -0
- data/lib/aspera/plugins/xfer/schemas/agent_extension.schema.yaml +26 -0
- data/lib/aspera/plugins/xfer/schemas/options.yaml +125 -0
- data/lib/aspera/plugins/xfer/sync_actions.rb +253 -0
- data/lib/aspera/plugins/xfer/transfer_actions.rb +176 -0
- data/lib/aspera/plugins/xfer/transfer_agent.rb +505 -0
- data/lib/aspera/products/cli_v3.rb +34 -0
- data/lib/aspera/products/connect.rb +1 -1
- data/lib/aspera/products/drive.rb +29 -0
- data/lib/aspera/products/hsts.rb +34 -0
- data/lib/aspera/products/transferd.rb +25 -3
- data/lib/aspera/products.rb +54 -0
- data/lib/aspera/prompt.rb +184 -0
- data/lib/aspera/proxy_auto_config.rb +3 -3
- data/lib/aspera/rest/aspera_errors.rb +4 -38
- data/lib/aspera/rest/error_analyzer.rb +6 -2
- data/lib/aspera/rest/list.rb +4 -5
- data/lib/aspera/schema/reader.rb +15 -0
- data/lib/aspera/schema/registry.rb +239 -45
- data/lib/aspera/schema/validator.rb +63 -17
- data/lib/aspera/sealed_hash.rb +4 -0
- data/lib/aspera/secret/hider.rb +159 -24
- data/lib/aspera/secret/reference.rb +8 -0
- data/lib/aspera/secret/resolver.rb +8 -4
- data/lib/aspera/secret/store/base.rb +10 -9
- data/lib/aspera/secret/store/encrypted_hash.rb +6 -6
- data/lib/aspera/secret/store/hashicorp_vault.rb +3 -3
- data/lib/aspera/secret/store/keeper.rb +2 -2
- data/lib/aspera/secret/store/macos_security.rb +2 -3
- data/lib/aspera/secret/store/one_password_api.rb +2 -2
- data/lib/aspera/secret/store/one_password_cli.rb +3 -3
- data/lib/aspera/secret/store/secret_service.rb +2 -2
- data/lib/aspera/ssl.rb +3 -3
- data/lib/aspera/standard_input.rb +20 -0
- data/lib/aspera/{schema → sync}/async_tables.yaml +1 -1
- data/lib/aspera/sync/database.rb +7 -0
- data/lib/aspera/sync/log_parser.rb +138 -0
- data/lib/aspera/sync/operations.rb +59 -34
- data/lib/aspera/transfer/command_line_builder.rb +248 -0
- data/lib/aspera/transfer/command_line_converter.rb +37 -0
- data/lib/aspera/transfer/faux_file.rb +2 -2
- data/lib/aspera/transfer/parameters.rb +9 -10
- data/lib/aspera/transfer/spec.rb +28 -1
- data/lib/aspera/transfer/spec.schema.yaml +30 -5
- data/lib/aspera/units/decimal.rb +1 -1
- data/lib/aspera/units/timestamp.rb +84 -0
- data/lib/aspera/uri_reader.rb +2 -2
- data/lib/aspera/web_auth/paste.rb +2 -2
- data/lib/aspera/web_server_simple.rb +10 -4
- data.tar.gz.sig +0 -0
- metadata +137 -80
- metadata.gz.sig +0 -0
- data/lib/aspera/agent/connect.rb +0 -188
- data/lib/aspera/agent/desktop.rb +0 -154
- data/lib/aspera/agent/direct.rb +0 -496
- data/lib/aspera/agent/httpgw.rb +0 -100
- data/lib/aspera/agent/node.rb +0 -166
- data/lib/aspera/agent/transferd.rb +0 -341
- data/lib/aspera/api/alee.rb +0 -19
- data/lib/aspera/api/aoc.rb +0 -776
- data/lib/aspera/api/ats.rb +0 -49
- data/lib/aspera/api/cos_node.rb +0 -107
- data/lib/aspera/api/faspex.rb +0 -258
- data/lib/aspera/api/httpgw.rb +0 -409
- data/lib/aspera/api/node.rb +0 -684
- data/lib/aspera/ascmd.rb +0 -248
- data/lib/aspera/cli/ascp_actions.rb +0 -113
- data/lib/aspera/cli/ascp_logs_actions.rb +0 -188
- data/lib/aspera/cli/async_transfer_store.rb +0 -129
- data/lib/aspera/cli/command_registry.rb +0 -371
- data/lib/aspera/cli/command_spec.rb +0 -273
- data/lib/aspera/cli/option_declarator.rb +0 -74
- data/lib/aspera/cli/option_registry.rb +0 -72
- data/lib/aspera/cli/option_types.rb +0 -120
- data/lib/aspera/cli/option_value.rb +0 -345
- data/lib/aspera/cli/prompt.rb +0 -186
- data/lib/aspera/cli/sync_actions.rb +0 -181
- data/lib/aspera/cli/transfer_actions.rb +0 -98
- data/lib/aspera/cli/transfer_agent.rb +0 -348
- data/lib/aspera/command_line_builder.rb +0 -244
- data/lib/aspera/command_line_converter.rb +0 -35
- data/lib/aspera/data_repository.rb +0 -69
- data/lib/aspera/faspex_gw.rb +0 -172
- data/lib/aspera/faspex_postproc.rb +0 -237
- data/lib/aspera/graphql.rb +0 -41
- data/lib/aspera/node_emulator.rb +0 -758
- data/lib/aspera/oauth/client/shares_web.rb +0 -94
- data/lib/aspera/orchestrator_workflow_checker.rb +0 -688
- data/lib/aspera/preview/file_types.rb +0 -119
- data/lib/aspera/preview/generator.rb +0 -345
- data/lib/aspera/preview/utils.rb +0 -211
- data/lib/aspera/products/other.rb +0 -92
- data/lib/aspera/products/transferd_service.rb +0 -610
- /data/lib/aspera/{data → ascp/data}/1 +0 -0
- /data/lib/aspera/{data → ascp/data}/2 +0 -0
- /data/lib/aspera/{data → ascp/data}/3 +0 -0
- /data/lib/aspera/{data → ascp/data}/4 +0 -0
- /data/lib/aspera/{data → ascp/data}/5 +0 -0
- /data/lib/aspera/{data → ascp/data}/6 +0 -0
- /data/lib/aspera/{api → plugins/aoc}/queries/bss_subscription_account.graphql +0 -0
- /data/lib/aspera/{api → plugins/aoc}/queries/bss_subscription_usage.graphql +0 -0
- /data/lib/aspera/{schema → plugins/aoc/schemas}/IBM Aspera on Cloud Automation API-1.0.5-enhanced.yaml +0 -0
- /data/lib/aspera/{schema → plugins/console/schemas}/IBM Aspera Console-enhanced.yaml +0 -0
- /data/lib/aspera/{schema → plugins/node/schemas}/IBM Aspera Node API-4.4.6.yaml +0 -0
- /data/lib/aspera/{preview → plugins/preview}/image_error.png +0 -0
- /data/lib/aspera/{preview → plugins/preview}/video_error.png +0 -0
- /data/lib/aspera/{schema → plugins/shares/schemas}/IBM_Aspera_Shares.yaml +0 -0
- /data/lib/{transferd_pb.rb → aspera/plugins/transferd/grpc/transferd_pb.rb} +0 -0
- /data/lib/{transferd_services_pb.rb → aspera/plugins/transferd/grpc/transferd_services_pb.rb} +0 -0
- /data/lib/aspera/{schema → plugins/transferd/schemas}/transferd-config.schema.json +0 -0
data/lib/aspera/{schema → plugins/orchestrator/schemas}/IBM Aspera Orchestrator API-v1-enhanced.yaml
RENAMED
|
@@ -69,6 +69,7 @@ paths:
|
|
|
69
69
|
operationId: login
|
|
70
70
|
security: []
|
|
71
71
|
summary: Authenticate and obtain JWT token
|
|
72
|
+
description: 'Returns a JWT for the `Authorization: Bearer` header of the other calls. Returns 403 when JWT authentication is disabled in the configuration.'
|
|
72
73
|
tags:
|
|
73
74
|
- Authentication
|
|
74
75
|
requestBody:
|
|
@@ -122,20 +123,26 @@ paths:
|
|
|
122
123
|
content:
|
|
123
124
|
application/json:
|
|
124
125
|
schema:
|
|
126
|
+
description: Token and identity of the user
|
|
125
127
|
type: object
|
|
126
128
|
properties:
|
|
127
129
|
message:
|
|
130
|
+
description: Result message
|
|
128
131
|
type: string
|
|
129
132
|
examples:
|
|
130
133
|
- Logged in successfully
|
|
131
134
|
user:
|
|
135
|
+
description: Authenticated user
|
|
132
136
|
type: object
|
|
133
137
|
properties:
|
|
134
138
|
id:
|
|
139
|
+
description: User ID
|
|
135
140
|
type: integer
|
|
136
141
|
login:
|
|
142
|
+
description: User login
|
|
137
143
|
type: string
|
|
138
144
|
email:
|
|
145
|
+
description: Email of the user
|
|
139
146
|
type: string
|
|
140
147
|
token:
|
|
141
148
|
type: string
|
|
@@ -148,6 +155,7 @@ paths:
|
|
|
148
155
|
get:
|
|
149
156
|
operationId: workflows_list
|
|
150
157
|
summary: List all workflows
|
|
158
|
+
description: Lists all the workflows, with their publication status, revisions and folder. Requires the monitor permission.
|
|
151
159
|
tags:
|
|
152
160
|
- Workflows
|
|
153
161
|
parameters:
|
|
@@ -158,36 +166,46 @@ paths:
|
|
|
158
166
|
content:
|
|
159
167
|
application/json:
|
|
160
168
|
schema:
|
|
169
|
+
description: All workflows
|
|
161
170
|
type: object
|
|
162
171
|
properties:
|
|
163
172
|
workflows:
|
|
173
|
+
description: Wrapper of the list
|
|
164
174
|
type: object
|
|
165
175
|
properties:
|
|
166
176
|
time:
|
|
167
177
|
type: string
|
|
168
178
|
description: UTC time
|
|
169
179
|
action:
|
|
180
|
+
description: Name of the call
|
|
170
181
|
type: string
|
|
171
182
|
const: list
|
|
172
183
|
id:
|
|
184
|
+
description: Always `0` for this call
|
|
173
185
|
type: integer
|
|
174
186
|
workflow:
|
|
187
|
+
description: Workflows
|
|
175
188
|
type: array
|
|
176
189
|
items:
|
|
177
190
|
type: object
|
|
178
191
|
properties:
|
|
179
192
|
id:
|
|
193
|
+
description: Workflow ID
|
|
180
194
|
type: integer
|
|
181
195
|
name:
|
|
196
|
+
description: Workflow name
|
|
182
197
|
type: string
|
|
183
198
|
full_name:
|
|
184
199
|
type: string
|
|
185
200
|
description: Name with the folder path
|
|
186
201
|
folder_id:
|
|
202
|
+
description: Folder of the workflow, `null` at the root
|
|
187
203
|
type: [integer, 'null']
|
|
188
204
|
portable_id:
|
|
205
|
+
description: Portable ID, kept across export and import
|
|
189
206
|
type: [string, 'null']
|
|
190
207
|
published_status:
|
|
208
|
+
description: Whether a revision is published
|
|
191
209
|
type: string
|
|
192
210
|
enum:
|
|
193
211
|
- published
|
|
@@ -199,9 +217,11 @@ paths:
|
|
|
199
217
|
type: [integer, string]
|
|
200
218
|
description: '`-` when there is no whiteboard'
|
|
201
219
|
last_modification:
|
|
220
|
+
description: Last update of the workflow
|
|
202
221
|
type: string
|
|
203
222
|
format: date-time
|
|
204
223
|
comments:
|
|
224
|
+
description: Comments of the workflow
|
|
205
225
|
type: [string, 'null']
|
|
206
226
|
'401':
|
|
207
227
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -211,6 +231,7 @@ paths:
|
|
|
211
231
|
get:
|
|
212
232
|
operationId: workflows_status
|
|
213
233
|
summary: Running status of workflows
|
|
234
|
+
description: Tells, for each workflow or for one workflow, whether work orders are running.
|
|
214
235
|
tags:
|
|
215
236
|
- Workflows
|
|
216
237
|
parameters:
|
|
@@ -226,29 +247,37 @@ paths:
|
|
|
226
247
|
content:
|
|
227
248
|
application/json:
|
|
228
249
|
schema:
|
|
250
|
+
description: Running status of the workflows
|
|
229
251
|
type: object
|
|
230
252
|
properties:
|
|
231
253
|
workflows:
|
|
254
|
+
description: Wrapper of the list
|
|
232
255
|
type: object
|
|
233
256
|
properties:
|
|
234
257
|
time:
|
|
235
258
|
type: string
|
|
236
259
|
description: UTC time
|
|
237
260
|
action:
|
|
261
|
+
description: Name of the call
|
|
238
262
|
type: string
|
|
239
263
|
const: status
|
|
240
264
|
id:
|
|
265
|
+
description: Always `0` for this call
|
|
241
266
|
type: integer
|
|
242
267
|
workflow:
|
|
268
|
+
description: Workflows
|
|
243
269
|
type: array
|
|
244
270
|
items:
|
|
245
271
|
type: object
|
|
246
272
|
properties:
|
|
247
273
|
id:
|
|
274
|
+
description: Workflow ID
|
|
248
275
|
type: integer
|
|
249
276
|
name:
|
|
277
|
+
description: Workflow name
|
|
250
278
|
type: string
|
|
251
279
|
status:
|
|
280
|
+
description: '`running` when the workflow has running work orders'
|
|
252
281
|
type: string
|
|
253
282
|
enum:
|
|
254
283
|
- running
|
|
@@ -264,6 +293,7 @@ paths:
|
|
|
264
293
|
get:
|
|
265
294
|
operationId: workflow_details
|
|
266
295
|
summary: Number of work orders of a workflow, by status
|
|
296
|
+
description: Counts the work orders of a workflow by status, optionally in a date range.
|
|
267
297
|
tags:
|
|
268
298
|
- Workflows
|
|
269
299
|
parameters:
|
|
@@ -290,39 +320,51 @@ paths:
|
|
|
290
320
|
content:
|
|
291
321
|
application/json:
|
|
292
322
|
schema:
|
|
323
|
+
description: Work order counts of the workflow
|
|
293
324
|
type: object
|
|
294
325
|
properties:
|
|
295
326
|
workflows:
|
|
327
|
+
description: Wrapper of the result
|
|
296
328
|
type: object
|
|
297
329
|
properties:
|
|
298
330
|
time:
|
|
299
331
|
type: string
|
|
300
332
|
description: UTC time
|
|
301
333
|
action:
|
|
334
|
+
description: Name of the call
|
|
302
335
|
type: string
|
|
303
336
|
const: status
|
|
304
337
|
id:
|
|
338
|
+
description: Workflow ID
|
|
305
339
|
type: integer
|
|
306
340
|
workflow:
|
|
341
|
+
description: The workflow and its counts
|
|
307
342
|
type: object
|
|
308
343
|
properties:
|
|
309
344
|
name:
|
|
345
|
+
description: Workflow name
|
|
310
346
|
type: string
|
|
311
347
|
id:
|
|
348
|
+
description: Workflow ID
|
|
312
349
|
type: integer
|
|
313
350
|
statuses:
|
|
351
|
+
description: One entry per work order status
|
|
314
352
|
type: array
|
|
315
353
|
items:
|
|
316
354
|
type: object
|
|
317
355
|
properties:
|
|
318
356
|
count:
|
|
357
|
+
description: Number of work orders with this status
|
|
319
358
|
type: integer
|
|
320
359
|
last_activity:
|
|
360
|
+
description: Last update of these work orders
|
|
321
361
|
type: string
|
|
322
362
|
format: date-time
|
|
323
363
|
workflow_name:
|
|
364
|
+
description: Workflow name
|
|
324
365
|
type: string
|
|
325
366
|
status:
|
|
367
|
+
description: Work order status
|
|
326
368
|
type: string
|
|
327
369
|
'401':
|
|
328
370
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -332,6 +374,7 @@ paths:
|
|
|
332
374
|
get:
|
|
333
375
|
operationId: workflow_inputs_spec
|
|
334
376
|
summary: Runtime parameters of a workflow
|
|
377
|
+
description: Lists the runtime parameters of the published revision, to give in `external_parameters` of `initiate`.
|
|
335
378
|
tags:
|
|
336
379
|
- Workflows
|
|
337
380
|
parameters:
|
|
@@ -358,33 +401,43 @@ paths:
|
|
|
358
401
|
content:
|
|
359
402
|
application/json:
|
|
360
403
|
schema:
|
|
404
|
+
description: Runtime parameters of the workflow
|
|
361
405
|
type: object
|
|
362
406
|
properties:
|
|
363
407
|
workflow_inputs_spec:
|
|
408
|
+
description: Wrapper of the result
|
|
364
409
|
type: object
|
|
365
410
|
properties:
|
|
366
411
|
time:
|
|
367
412
|
type: string
|
|
368
413
|
description: UTC time
|
|
369
414
|
action:
|
|
415
|
+
description: Name of the call
|
|
370
416
|
type: string
|
|
371
417
|
const: inputs_spec
|
|
372
418
|
workflow_name:
|
|
419
|
+
description: Workflow name
|
|
373
420
|
type: string
|
|
374
421
|
workflow_id:
|
|
422
|
+
description: Workflow ID
|
|
375
423
|
type: integer
|
|
376
424
|
parameter:
|
|
425
|
+
description: Runtime parameters
|
|
377
426
|
type: array
|
|
378
427
|
items:
|
|
379
428
|
type: object
|
|
380
429
|
properties:
|
|
381
430
|
id:
|
|
431
|
+
description: Parameter ID
|
|
382
432
|
type: integer
|
|
383
433
|
name:
|
|
434
|
+
description: Parameter name, the key in `external_parameters`
|
|
384
435
|
type: string
|
|
385
436
|
value_type:
|
|
437
|
+
description: Value type, e.g. `string`, `int`, `pwd`
|
|
386
438
|
type: string
|
|
387
439
|
optional:
|
|
440
|
+
description: '`true` when the parameter can be omitted'
|
|
388
441
|
type: [boolean, 'null']
|
|
389
442
|
value:
|
|
390
443
|
type: string
|
|
@@ -397,6 +450,7 @@ paths:
|
|
|
397
450
|
get:
|
|
398
451
|
operationId: workflow_outputs_spec
|
|
399
452
|
summary: Outputs of the steps of a workflow
|
|
453
|
+
description: Lists the outputs of the steps of the published revision, as used by `explicit_output` of `initiate` and by `work_order_output`.
|
|
400
454
|
tags:
|
|
401
455
|
- Workflows
|
|
402
456
|
parameters:
|
|
@@ -418,36 +472,46 @@ paths:
|
|
|
418
472
|
content:
|
|
419
473
|
application/json:
|
|
420
474
|
schema:
|
|
475
|
+
description: Outputs of the workflow
|
|
421
476
|
type: object
|
|
422
477
|
properties:
|
|
423
478
|
workflow_outputs_spec:
|
|
479
|
+
description: Wrapper of the result
|
|
424
480
|
type: object
|
|
425
481
|
properties:
|
|
426
482
|
time:
|
|
427
483
|
type: string
|
|
428
484
|
description: UTC time
|
|
429
485
|
action:
|
|
486
|
+
description: Name of the call
|
|
430
487
|
type: string
|
|
431
488
|
const: outputs_spec
|
|
432
489
|
output:
|
|
490
|
+
description: Outputs
|
|
433
491
|
type: array
|
|
434
492
|
items:
|
|
435
493
|
type: object
|
|
436
494
|
properties:
|
|
437
495
|
context_id:
|
|
496
|
+
description: ID of the step that produces the output
|
|
438
497
|
type: integer
|
|
439
498
|
name:
|
|
440
499
|
type: string
|
|
441
500
|
description: '`<step name>:<output name>`'
|
|
442
501
|
workflow_id:
|
|
502
|
+
description: Workflow ID
|
|
443
503
|
type: integer
|
|
444
504
|
step_name:
|
|
505
|
+
description: Step name
|
|
445
506
|
type: string
|
|
446
507
|
variable_name:
|
|
508
|
+
description: Output name
|
|
447
509
|
type: string
|
|
448
510
|
value_type:
|
|
511
|
+
description: Value type, e.g. `string`, `int`
|
|
449
512
|
type: string
|
|
450
513
|
variable_type:
|
|
514
|
+
description: Variable type
|
|
451
515
|
type: string
|
|
452
516
|
'401':
|
|
453
517
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -465,6 +529,7 @@ paths:
|
|
|
465
529
|
content:
|
|
466
530
|
multipart/form-data:
|
|
467
531
|
schema:
|
|
532
|
+
description: Workflow file and import options
|
|
468
533
|
type: object
|
|
469
534
|
required:
|
|
470
535
|
- import_file
|
|
@@ -476,7 +541,7 @@ paths:
|
|
|
476
541
|
description: The workflow file to import (.wkf or .yml)
|
|
477
542
|
import_file_name:
|
|
478
543
|
type: string
|
|
479
|
-
pattern: (wkf|yml)$
|
|
544
|
+
pattern: ^.*(wkf|yml)$
|
|
480
545
|
description: File name ending with `wkf` or `yml`. The file is saved under this name in the import folder of the server.
|
|
481
546
|
examples:
|
|
482
547
|
- my_workflow.wkf
|
|
@@ -490,6 +555,7 @@ paths:
|
|
|
490
555
|
type: string
|
|
491
556
|
description: '`true` or `1` to publish the workflow after import. Default: server option `publish_api_imported_workflow`.'
|
|
492
557
|
format:
|
|
558
|
+
description: Format of the error responses (the result is JSON in both formats)
|
|
493
559
|
type: string
|
|
494
560
|
enum:
|
|
495
561
|
- xml
|
|
@@ -511,11 +577,14 @@ paths:
|
|
|
511
577
|
content:
|
|
512
578
|
application/json:
|
|
513
579
|
schema:
|
|
580
|
+
description: Import error
|
|
514
581
|
type: object
|
|
515
582
|
properties:
|
|
516
583
|
error:
|
|
584
|
+
description: Error type
|
|
517
585
|
type: string
|
|
518
586
|
message:
|
|
587
|
+
description: Error summary
|
|
519
588
|
type: string
|
|
520
589
|
details:
|
|
521
590
|
type: string
|
|
@@ -545,6 +614,7 @@ paths:
|
|
|
545
614
|
content:
|
|
546
615
|
application/json:
|
|
547
616
|
schema:
|
|
617
|
+
description: The six objects of the body of `import_with_constraints`, with the choices
|
|
548
618
|
type: array
|
|
549
619
|
minItems: 6
|
|
550
620
|
maxItems: 6
|
|
@@ -722,6 +792,7 @@ paths:
|
|
|
722
792
|
content:
|
|
723
793
|
application/json:
|
|
724
794
|
schema:
|
|
795
|
+
description: Workflow to publish, instead of the query parameter
|
|
725
796
|
type: object
|
|
726
797
|
properties:
|
|
727
798
|
id:
|
|
@@ -733,6 +804,7 @@ paths:
|
|
|
733
804
|
content:
|
|
734
805
|
application/json:
|
|
735
806
|
schema:
|
|
807
|
+
description: '`true` when published'
|
|
736
808
|
type: boolean
|
|
737
809
|
'401':
|
|
738
810
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -763,6 +835,7 @@ paths:
|
|
|
763
835
|
content:
|
|
764
836
|
application/octet-stream:
|
|
765
837
|
schema:
|
|
838
|
+
description: Content of the `.yml` file, or of the `.wkf` package
|
|
766
839
|
type: string
|
|
767
840
|
format: binary
|
|
768
841
|
'401':
|
|
@@ -773,6 +846,7 @@ paths:
|
|
|
773
846
|
get:
|
|
774
847
|
operationId: list_by_subworkflow
|
|
775
848
|
summary: Published workflows that use a sub-workflow
|
|
849
|
+
description: Lists the published workflows that call a sub-workflow, e.g. before changing or deleting it.
|
|
776
850
|
tags:
|
|
777
851
|
- Workflows
|
|
778
852
|
parameters:
|
|
@@ -794,9 +868,11 @@ paths:
|
|
|
794
868
|
content:
|
|
795
869
|
application/json:
|
|
796
870
|
schema:
|
|
871
|
+
description: Parent workflows
|
|
797
872
|
type: object
|
|
798
873
|
properties:
|
|
799
874
|
parent_workflows:
|
|
875
|
+
description: IDs of the published workflows that use the sub-workflow
|
|
800
876
|
type: array
|
|
801
877
|
items:
|
|
802
878
|
type: string
|
|
@@ -808,6 +884,7 @@ paths:
|
|
|
808
884
|
get:
|
|
809
885
|
operationId: retrieve_steps
|
|
810
886
|
summary: Steps of a type in published workflows, with their work orders
|
|
887
|
+
description: Finds the steps of a plugin type in the workflow revisions used by work orders, with the ID and status of each work order.
|
|
811
888
|
tags:
|
|
812
889
|
- Workflows
|
|
813
890
|
parameters:
|
|
@@ -825,22 +902,28 @@ paths:
|
|
|
825
902
|
content:
|
|
826
903
|
application/json:
|
|
827
904
|
schema:
|
|
905
|
+
description: Matching steps, one entry per step and work order
|
|
828
906
|
type: array
|
|
829
907
|
items:
|
|
830
908
|
type: object
|
|
831
909
|
properties:
|
|
832
910
|
step_id:
|
|
911
|
+
description: Step ID in the workflow revision
|
|
833
912
|
type: string
|
|
834
913
|
step_name:
|
|
914
|
+
description: Step name
|
|
835
915
|
type: string
|
|
836
916
|
step_status:
|
|
837
917
|
type: [string, 'null']
|
|
838
918
|
description: Status of the first prerequisite of the step
|
|
839
919
|
wf_id:
|
|
920
|
+
description: Workflow ID, from the revision
|
|
840
921
|
type: string
|
|
841
922
|
wo_id:
|
|
923
|
+
description: Work order ID
|
|
842
924
|
type: integer
|
|
843
925
|
wo_status:
|
|
926
|
+
description: Status of the work order
|
|
844
927
|
type: string
|
|
845
928
|
'401':
|
|
846
929
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -850,6 +933,7 @@ paths:
|
|
|
850
933
|
get:
|
|
851
934
|
operationId: work_orders_list
|
|
852
935
|
summary: List work orders of a workflow
|
|
936
|
+
description: Lists the work orders of one workflow or of all workflows, filtered by status, priority, date range and tags.
|
|
853
937
|
tags:
|
|
854
938
|
- Work Orders
|
|
855
939
|
parameters:
|
|
@@ -861,11 +945,16 @@ paths:
|
|
|
861
945
|
description: Workflow ID, portable ID or name, or `all` for all workflows
|
|
862
946
|
- name: status
|
|
863
947
|
in: query
|
|
948
|
+
style: form
|
|
949
|
+
explode: false
|
|
864
950
|
schema:
|
|
865
|
-
type:
|
|
951
|
+
type: array
|
|
952
|
+
items:
|
|
953
|
+
type: string
|
|
866
954
|
description: 'Filter by work order status, comma-separated (case insensitive): `Initializing`, `Initialized`, `Created`, `Ready`, `In Progress`, `Complete`, `Rolled-back`, `Canceled`, `Paused`, `Cut-off`, `Failed`, `Error`, `Destroyed`, `Cleared`, `Flagged`. Not set: all but `Rolled-back`, `Cut-off`, `Ready`, `Destroyed`, `Cleared`, `Flagged` and `Unknown`.'
|
|
867
|
-
|
|
868
|
-
- Failed
|
|
955
|
+
example:
|
|
956
|
+
- Failed
|
|
957
|
+
- Canceled
|
|
869
958
|
- name: priority
|
|
870
959
|
in: query
|
|
871
960
|
schema:
|
|
@@ -881,15 +970,13 @@ paths:
|
|
|
881
970
|
schema:
|
|
882
971
|
type: string
|
|
883
972
|
description: 'Work orders updated after this date. Format `<date> HH:MM:SS`, with `<date>` as `mm-dd-yyyy` (default), `mm/dd/yyyy` (server date format `american`), `dd-mm-yyyy` (`continental`) or `yyyy-mm-dd` (`swedish`). Another format is ignored.'
|
|
884
|
-
|
|
885
|
-
- 06-27-2015 02:40:59
|
|
973
|
+
example: 06-27-2015 02:40:59
|
|
886
974
|
- name: to_date
|
|
887
975
|
in: query
|
|
888
976
|
schema:
|
|
889
977
|
type: string
|
|
890
978
|
description: 'Work orders updated before this date. Format `<date> HH:MM:SS`, with `<date>` as `mm-dd-yyyy` (default), `mm/dd/yyyy` (server date format `american`), `dd-mm-yyyy` (`continental`) or `yyyy-mm-dd` (`swedish`). Another format is ignored.'
|
|
891
|
-
|
|
892
|
-
- 06-29-2015 02:40:59
|
|
979
|
+
example: 06-29-2015 02:40:59
|
|
893
980
|
- name: tag
|
|
894
981
|
in: query
|
|
895
982
|
style: form
|
|
@@ -911,9 +998,11 @@ paths:
|
|
|
911
998
|
content:
|
|
912
999
|
application/json:
|
|
913
1000
|
schema:
|
|
1001
|
+
description: Work orders found
|
|
914
1002
|
type: object
|
|
915
1003
|
properties:
|
|
916
1004
|
work_orders:
|
|
1005
|
+
description: Work orders
|
|
917
1006
|
type: array
|
|
918
1007
|
items:
|
|
919
1008
|
$ref: '#/components/schemas/WorkOrder'
|
|
@@ -945,6 +1034,7 @@ paths:
|
|
|
945
1034
|
content:
|
|
946
1035
|
application/json:
|
|
947
1036
|
schema:
|
|
1037
|
+
description: Work order and its work steps
|
|
948
1038
|
type: object
|
|
949
1039
|
properties:
|
|
950
1040
|
work_order:
|
|
@@ -952,6 +1042,7 @@ paths:
|
|
|
952
1042
|
- $ref: '#/components/schemas/WorkOrder'
|
|
953
1043
|
properties:
|
|
954
1044
|
percent_complete:
|
|
1045
|
+
description: Progress of the work order, from the weights of its steps
|
|
955
1046
|
type: integer
|
|
956
1047
|
minimum: 0
|
|
957
1048
|
maximum: 100
|
|
@@ -1037,6 +1128,7 @@ paths:
|
|
|
1037
1128
|
get:
|
|
1038
1129
|
operationId: work_order_cancel
|
|
1039
1130
|
summary: Cancel a work order
|
|
1131
|
+
description: Cancels a running work order and its steps. Use `force` for a work order that does not stop.
|
|
1040
1132
|
tags:
|
|
1041
1133
|
- Work Orders
|
|
1042
1134
|
parameters:
|
|
@@ -1067,6 +1159,7 @@ paths:
|
|
|
1067
1159
|
get:
|
|
1068
1160
|
operationId: work_order_reset
|
|
1069
1161
|
summary: Reset a work order
|
|
1162
|
+
description: Resets all the steps of the work order to `Inactive`, to run it again from the start.
|
|
1070
1163
|
tags:
|
|
1071
1164
|
- Work Orders
|
|
1072
1165
|
parameters:
|
|
@@ -1118,6 +1211,7 @@ paths:
|
|
|
1118
1211
|
get:
|
|
1119
1212
|
operationId: work_order_destroy
|
|
1120
1213
|
summary: Delete a work order and its dependents
|
|
1214
|
+
description: Deletes the work order and its dependent records.
|
|
1121
1215
|
tags:
|
|
1122
1216
|
- Work Orders
|
|
1123
1217
|
parameters:
|
|
@@ -1134,6 +1228,7 @@ paths:
|
|
|
1134
1228
|
content:
|
|
1135
1229
|
application/json:
|
|
1136
1230
|
schema:
|
|
1231
|
+
description: Confirmation message, as a JSON string
|
|
1137
1232
|
type: string
|
|
1138
1233
|
examples:
|
|
1139
1234
|
- " Work order '123' was deleted"
|
|
@@ -1221,6 +1316,7 @@ paths:
|
|
|
1221
1316
|
content:
|
|
1222
1317
|
application/json:
|
|
1223
1318
|
schema:
|
|
1319
|
+
description: Workflow to start and its runtime parameters
|
|
1224
1320
|
type: object
|
|
1225
1321
|
required:
|
|
1226
1322
|
- workflow_id
|
|
@@ -1240,6 +1336,7 @@ paths:
|
|
|
1240
1336
|
content:
|
|
1241
1337
|
application/json:
|
|
1242
1338
|
schema:
|
|
1339
|
+
description: The new work order, or an output value
|
|
1243
1340
|
anyOf:
|
|
1244
1341
|
- title: Work order
|
|
1245
1342
|
allOf:
|
|
@@ -1256,6 +1353,7 @@ paths:
|
|
|
1256
1353
|
content:
|
|
1257
1354
|
application/json:
|
|
1258
1355
|
schema:
|
|
1356
|
+
description: Error, or the work order that was not started
|
|
1259
1357
|
oneOf:
|
|
1260
1358
|
- $ref: '#/components/schemas/Error'
|
|
1261
1359
|
- title: Missing parameters
|
|
@@ -1269,10 +1367,13 @@ paths:
|
|
|
1269
1367
|
- $ref: '#/components/schemas/WorkOrder'
|
|
1270
1368
|
properties:
|
|
1271
1369
|
status:
|
|
1370
|
+
description: Status of the work order that was not started
|
|
1272
1371
|
const: Not started
|
|
1273
1372
|
status_details:
|
|
1373
|
+
description: Reason
|
|
1274
1374
|
const: Missing required parameters
|
|
1275
1375
|
missing_parameters:
|
|
1376
|
+
description: Names of the required parameters not given
|
|
1276
1377
|
type: array
|
|
1277
1378
|
items:
|
|
1278
1379
|
type: string
|
|
@@ -1348,6 +1449,7 @@ paths:
|
|
|
1348
1449
|
content:
|
|
1349
1450
|
application/json:
|
|
1350
1451
|
schema:
|
|
1452
|
+
description: Work step, new status, or output value
|
|
1351
1453
|
anyOf:
|
|
1352
1454
|
- title: Work step
|
|
1353
1455
|
type: object
|
|
@@ -1355,10 +1457,12 @@ paths:
|
|
|
1355
1457
|
work_step:
|
|
1356
1458
|
$ref: '#/components/schemas/WorkStep'
|
|
1357
1459
|
outputs:
|
|
1460
|
+
description: Outputs of the work step
|
|
1358
1461
|
type: array
|
|
1359
1462
|
items:
|
|
1360
1463
|
$ref: '#/components/schemas/StepVariable'
|
|
1361
1464
|
inputs:
|
|
1465
|
+
description: Inputs of the work step
|
|
1362
1466
|
type: array
|
|
1363
1467
|
items:
|
|
1364
1468
|
$ref: '#/components/schemas/StepVariable'
|
|
@@ -1372,12 +1476,16 @@ paths:
|
|
|
1372
1476
|
type: object
|
|
1373
1477
|
properties:
|
|
1374
1478
|
Work_step_id:
|
|
1479
|
+
description: Work step ID
|
|
1375
1480
|
type: integer
|
|
1376
1481
|
Work_step_status:
|
|
1482
|
+
description: New status
|
|
1377
1483
|
type: string
|
|
1378
1484
|
Work_step_status_details:
|
|
1485
|
+
description: New status details
|
|
1379
1486
|
type: [string, 'null']
|
|
1380
1487
|
Work_step_percent_complete:
|
|
1488
|
+
description: New percentage of completion
|
|
1381
1489
|
type: [integer, 'null']
|
|
1382
1490
|
- title: Output value
|
|
1383
1491
|
description: With `output_name`
|
|
@@ -1393,6 +1501,7 @@ paths:
|
|
|
1393
1501
|
get:
|
|
1394
1502
|
operationId: work_step_cancel
|
|
1395
1503
|
summary: Cancel a work step
|
|
1504
|
+
description: Cancels a running work step.
|
|
1396
1505
|
tags:
|
|
1397
1506
|
- Work Steps
|
|
1398
1507
|
parameters:
|
|
@@ -1418,6 +1527,7 @@ paths:
|
|
|
1418
1527
|
get:
|
|
1419
1528
|
operationId: workstep_reset
|
|
1420
1529
|
summary: Restart work orders from work steps
|
|
1530
|
+
description: Restarts the work order of each work step from that step.
|
|
1421
1531
|
tags:
|
|
1422
1532
|
- Work Steps
|
|
1423
1533
|
parameters:
|
|
@@ -1436,6 +1546,7 @@ paths:
|
|
|
1436
1546
|
content:
|
|
1437
1547
|
application/json:
|
|
1438
1548
|
schema:
|
|
1549
|
+
description: Restarted work order, or a list for several work steps
|
|
1439
1550
|
oneOf:
|
|
1440
1551
|
- $ref: '#/components/schemas/WorkstepReset'
|
|
1441
1552
|
- type: array
|
|
@@ -1450,6 +1561,7 @@ paths:
|
|
|
1450
1561
|
get:
|
|
1451
1562
|
operationId: queues_list
|
|
1452
1563
|
summary: List all queues
|
|
1564
|
+
description: Lists the managed queues (queue headers, without their items).
|
|
1453
1565
|
tags:
|
|
1454
1566
|
- Queues
|
|
1455
1567
|
parameters:
|
|
@@ -1460,26 +1572,34 @@ paths:
|
|
|
1460
1572
|
content:
|
|
1461
1573
|
application/json:
|
|
1462
1574
|
schema:
|
|
1575
|
+
description: Managed queues
|
|
1463
1576
|
type: object
|
|
1464
1577
|
properties:
|
|
1465
1578
|
Queues:
|
|
1579
|
+
description: Wrapper of the list
|
|
1466
1580
|
type: object
|
|
1467
1581
|
properties:
|
|
1468
1582
|
queue:
|
|
1583
|
+
description: Queues
|
|
1469
1584
|
type: array
|
|
1470
1585
|
items:
|
|
1471
1586
|
type: object
|
|
1472
1587
|
properties:
|
|
1473
1588
|
id:
|
|
1589
|
+
description: ID of the queue header
|
|
1474
1590
|
type: integer
|
|
1475
1591
|
name:
|
|
1592
|
+
description: Queue name, used by the other queue calls
|
|
1476
1593
|
type: string
|
|
1477
1594
|
displayed_name:
|
|
1595
|
+
description: Name shown in the web interface
|
|
1478
1596
|
type: [string, 'null']
|
|
1479
1597
|
update_at:
|
|
1598
|
+
description: Last update of the queue (spelled `update_at`)
|
|
1480
1599
|
type: string
|
|
1481
1600
|
format: date-time
|
|
1482
1601
|
created_at:
|
|
1602
|
+
description: Creation of the queue
|
|
1483
1603
|
type: string
|
|
1484
1604
|
format: date-time
|
|
1485
1605
|
'401':
|
|
@@ -1490,6 +1610,7 @@ paths:
|
|
|
1490
1610
|
get:
|
|
1491
1611
|
operationId: queued_items
|
|
1492
1612
|
summary: Items of a queue
|
|
1613
|
+
description: Lists the items of a queue in queue order, with the queue attributes.
|
|
1493
1614
|
tags:
|
|
1494
1615
|
- Queues
|
|
1495
1616
|
parameters:
|
|
@@ -1515,6 +1636,7 @@ paths:
|
|
|
1515
1636
|
get:
|
|
1516
1637
|
operationId: queue_item
|
|
1517
1638
|
summary: Add an item to a queue
|
|
1639
|
+
description: Adds an item at the position given by its priority. The queue must exist.
|
|
1518
1640
|
tags:
|
|
1519
1641
|
- Queues
|
|
1520
1642
|
parameters:
|
|
@@ -1561,20 +1683,26 @@ paths:
|
|
|
1561
1683
|
content:
|
|
1562
1684
|
application/json:
|
|
1563
1685
|
schema:
|
|
1686
|
+
description: The new item
|
|
1564
1687
|
type: object
|
|
1565
1688
|
properties:
|
|
1566
1689
|
item:
|
|
1567
1690
|
type: string
|
|
1568
1691
|
description: The queued item, as given in `queued_item`
|
|
1569
1692
|
description:
|
|
1693
|
+
description: Description of the item
|
|
1570
1694
|
type: string
|
|
1571
1695
|
rank:
|
|
1696
|
+
description: Position in the queue, from 0
|
|
1572
1697
|
type: integer
|
|
1573
1698
|
priority:
|
|
1699
|
+
description: Priority of the item
|
|
1574
1700
|
type: integer
|
|
1575
1701
|
weight:
|
|
1702
|
+
description: Weight of the item
|
|
1576
1703
|
type: integer
|
|
1577
1704
|
id:
|
|
1705
|
+
description: ID of the queued item
|
|
1578
1706
|
type: integer
|
|
1579
1707
|
'401':
|
|
1580
1708
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -1624,6 +1752,7 @@ paths:
|
|
|
1624
1752
|
get:
|
|
1625
1753
|
operationId: reorder_queued_item
|
|
1626
1754
|
summary: Move a queued item
|
|
1755
|
+
description: Moves one item up, down, first or last in its queue.
|
|
1627
1756
|
tags:
|
|
1628
1757
|
- Queues
|
|
1629
1758
|
parameters:
|
|
@@ -1669,6 +1798,7 @@ paths:
|
|
|
1669
1798
|
get:
|
|
1670
1799
|
operationId: bulk_reorder_queue
|
|
1671
1800
|
summary: Move several queued items
|
|
1801
|
+
description: Moves several items of a queue up, down, first or last.
|
|
1672
1802
|
tags:
|
|
1673
1803
|
- Queues
|
|
1674
1804
|
parameters:
|
|
@@ -1700,9 +1830,11 @@ paths:
|
|
|
1700
1830
|
content:
|
|
1701
1831
|
application/json:
|
|
1702
1832
|
schema:
|
|
1833
|
+
description: Moved items
|
|
1703
1834
|
type: object
|
|
1704
1835
|
properties:
|
|
1705
1836
|
queued_items:
|
|
1837
|
+
description: Each moved item with its queue
|
|
1706
1838
|
type: array
|
|
1707
1839
|
items:
|
|
1708
1840
|
type: object
|
|
@@ -1719,6 +1851,7 @@ paths:
|
|
|
1719
1851
|
get:
|
|
1720
1852
|
operationId: delete_queued_item
|
|
1721
1853
|
summary: Delete a queued item
|
|
1854
|
+
description: Deletes one item from a queue.
|
|
1722
1855
|
tags:
|
|
1723
1856
|
- Queues
|
|
1724
1857
|
parameters:
|
|
@@ -1753,6 +1886,7 @@ paths:
|
|
|
1753
1886
|
get:
|
|
1754
1887
|
operationId: monitor_snapshot
|
|
1755
1888
|
summary: Status of the monitors
|
|
1889
|
+
description: Returns the state of the monitors, by type, as shown on the Monitors page.
|
|
1756
1890
|
tags:
|
|
1757
1891
|
- Monitors
|
|
1758
1892
|
parameters:
|
|
@@ -1774,9 +1908,11 @@ paths:
|
|
|
1774
1908
|
content:
|
|
1775
1909
|
application/json:
|
|
1776
1910
|
schema:
|
|
1911
|
+
description: Monitors by type
|
|
1777
1912
|
type: object
|
|
1778
1913
|
properties:
|
|
1779
1914
|
monitor:
|
|
1915
|
+
description: Monitors by type, each type empty when there is no monitor of this type
|
|
1780
1916
|
type: object
|
|
1781
1917
|
properties:
|
|
1782
1918
|
monitor_workflows:
|
|
@@ -1784,20 +1920,25 @@ paths:
|
|
|
1784
1920
|
description: Empty when there is no monitor
|
|
1785
1921
|
properties:
|
|
1786
1922
|
monitor_workflow:
|
|
1923
|
+
description: Workflow monitors
|
|
1787
1924
|
type: array
|
|
1788
1925
|
items:
|
|
1789
1926
|
type: object
|
|
1790
1927
|
properties:
|
|
1791
1928
|
id:
|
|
1929
|
+
description: Monitor ID
|
|
1792
1930
|
type: integer
|
|
1793
1931
|
workflow_id:
|
|
1932
|
+
description: Monitored workflow
|
|
1794
1933
|
type: integer
|
|
1795
1934
|
workflow_name:
|
|
1935
|
+
description: Name of the monitored workflow
|
|
1796
1936
|
type: string
|
|
1797
1937
|
last_activity:
|
|
1798
1938
|
type: string
|
|
1799
1939
|
description: Last activity of the workflow or work order (`YYYY-MM-DD HH:MM:SS`), `-` if none. Only when active.
|
|
1800
1940
|
active:
|
|
1941
|
+
description: '`true` when the monitor is on'
|
|
1801
1942
|
type: boolean
|
|
1802
1943
|
status:
|
|
1803
1944
|
type: string
|
|
@@ -1816,20 +1957,25 @@ paths:
|
|
|
1816
1957
|
description: Empty when there is no monitor
|
|
1817
1958
|
properties:
|
|
1818
1959
|
monitor_workorder:
|
|
1960
|
+
description: Work order monitors
|
|
1819
1961
|
type: array
|
|
1820
1962
|
items:
|
|
1821
1963
|
type: object
|
|
1822
1964
|
properties:
|
|
1823
1965
|
id:
|
|
1966
|
+
description: Monitor ID
|
|
1824
1967
|
type: integer
|
|
1825
1968
|
workflow_id:
|
|
1969
|
+
description: Workflow of the monitored work orders
|
|
1826
1970
|
type: integer
|
|
1827
1971
|
workflow_name:
|
|
1972
|
+
description: Name of that workflow
|
|
1828
1973
|
type: string
|
|
1829
1974
|
last_activity:
|
|
1830
1975
|
type: string
|
|
1831
1976
|
description: Last activity of the workflow or work order (`YYYY-MM-DD HH:MM:SS`), `-` if none. Only when active.
|
|
1832
1977
|
active:
|
|
1978
|
+
description: '`true` when the monitor is on'
|
|
1833
1979
|
type: boolean
|
|
1834
1980
|
status:
|
|
1835
1981
|
type: string
|
|
@@ -1848,16 +1994,19 @@ paths:
|
|
|
1848
1994
|
description: Empty when there is no monitor
|
|
1849
1995
|
properties:
|
|
1850
1996
|
monitor_folder:
|
|
1997
|
+
description: Folder monitors
|
|
1851
1998
|
type: array
|
|
1852
1999
|
items:
|
|
1853
2000
|
type: object
|
|
1854
2001
|
properties:
|
|
1855
2002
|
id:
|
|
2003
|
+
description: Monitor ID
|
|
1856
2004
|
type: integer
|
|
1857
2005
|
folder:
|
|
1858
2006
|
type: string
|
|
1859
2007
|
description: Description of the monitor
|
|
1860
2008
|
path:
|
|
2009
|
+
description: Monitored folder
|
|
1861
2010
|
type: string
|
|
1862
2011
|
content:
|
|
1863
2012
|
type: string
|
|
@@ -1866,6 +2015,7 @@ paths:
|
|
|
1866
2015
|
type: string
|
|
1867
2016
|
description: Age of the youngest and oldest entries, with the aging unit of the monitor, or `-`. Only when active.
|
|
1868
2017
|
active:
|
|
2018
|
+
description: '`true` when the monitor is on'
|
|
1869
2019
|
type: boolean
|
|
1870
2020
|
status:
|
|
1871
2021
|
type: string
|
|
@@ -1884,17 +2034,22 @@ paths:
|
|
|
1884
2034
|
description: Empty when there is no monitor
|
|
1885
2035
|
properties:
|
|
1886
2036
|
monitor_node:
|
|
2037
|
+
description: Remote node monitors
|
|
1887
2038
|
type: array
|
|
1888
2039
|
items:
|
|
1889
2040
|
type: object
|
|
1890
2041
|
properties:
|
|
1891
2042
|
id:
|
|
2043
|
+
description: Monitor ID
|
|
1892
2044
|
type: integer
|
|
1893
2045
|
name:
|
|
2046
|
+
description: Monitor name
|
|
1894
2047
|
type: string
|
|
1895
2048
|
remote_node:
|
|
2049
|
+
description: Name of the monitored remote node
|
|
1896
2050
|
type: string
|
|
1897
2051
|
active:
|
|
2052
|
+
description: '`true` when the monitor is on'
|
|
1898
2053
|
type: boolean
|
|
1899
2054
|
status:
|
|
1900
2055
|
type: string
|
|
@@ -1913,20 +2068,25 @@ paths:
|
|
|
1913
2068
|
description: Empty when there is no monitor
|
|
1914
2069
|
properties:
|
|
1915
2070
|
monitor_script:
|
|
2071
|
+
description: Remote script monitors
|
|
1916
2072
|
type: array
|
|
1917
2073
|
items:
|
|
1918
2074
|
type: object
|
|
1919
2075
|
properties:
|
|
1920
2076
|
id:
|
|
2077
|
+
description: Monitor ID
|
|
1921
2078
|
type: integer
|
|
1922
2079
|
script:
|
|
1923
2080
|
type: string
|
|
1924
2081
|
description: Description of the monitor
|
|
1925
2082
|
node:
|
|
2083
|
+
description: Remote node that runs the script
|
|
1926
2084
|
type: string
|
|
1927
2085
|
path:
|
|
2086
|
+
description: Path of the script on the remote node
|
|
1928
2087
|
type: string
|
|
1929
2088
|
active:
|
|
2089
|
+
description: '`true` when the monitor is on'
|
|
1930
2090
|
type: boolean
|
|
1931
2091
|
status:
|
|
1932
2092
|
type: string
|
|
@@ -1948,6 +2108,7 @@ paths:
|
|
|
1948
2108
|
get:
|
|
1949
2109
|
operationId: list_monitors
|
|
1950
2110
|
summary: List the monitors of a type
|
|
2111
|
+
description: Lists the monitors of one type with all their attributes.
|
|
1951
2112
|
tags:
|
|
1952
2113
|
- Monitors
|
|
1953
2114
|
parameters:
|
|
@@ -1974,6 +2135,7 @@ paths:
|
|
|
1974
2135
|
get:
|
|
1975
2136
|
operationId: activate_monitor
|
|
1976
2137
|
summary: Activate a monitor
|
|
2138
|
+
description: Turns a monitor on.
|
|
1977
2139
|
tags:
|
|
1978
2140
|
- Monitors
|
|
1979
2141
|
parameters:
|
|
@@ -1983,12 +2145,12 @@ paths:
|
|
|
1983
2145
|
schema:
|
|
1984
2146
|
type: string
|
|
1985
2147
|
description: Monitor ID or portable ID
|
|
2148
|
+
- $ref: '#/components/parameters/MonitorType'
|
|
1986
2149
|
- name: portable_id
|
|
1987
2150
|
in: query
|
|
1988
2151
|
schema:
|
|
1989
2152
|
type: string
|
|
1990
2153
|
description: Portable ID of the monitor, used when the `id` segment is empty
|
|
1991
|
-
- $ref: '#/components/parameters/MonitorType'
|
|
1992
2154
|
- $ref: '#/components/parameters/Format'
|
|
1993
2155
|
responses:
|
|
1994
2156
|
'200':
|
|
@@ -2005,6 +2167,7 @@ paths:
|
|
|
2005
2167
|
get:
|
|
2006
2168
|
operationId: deactivate_monitor
|
|
2007
2169
|
summary: Deactivate a monitor
|
|
2170
|
+
description: Turns a monitor off.
|
|
2008
2171
|
tags:
|
|
2009
2172
|
- Monitors
|
|
2010
2173
|
parameters:
|
|
@@ -2014,12 +2177,12 @@ paths:
|
|
|
2014
2177
|
schema:
|
|
2015
2178
|
type: string
|
|
2016
2179
|
description: Monitor ID or portable ID
|
|
2180
|
+
- $ref: '#/components/parameters/MonitorType'
|
|
2017
2181
|
- name: portable_id
|
|
2018
2182
|
in: query
|
|
2019
2183
|
schema:
|
|
2020
2184
|
type: string
|
|
2021
2185
|
description: Portable ID of the monitor, used when the `id` segment is empty
|
|
2022
|
-
- $ref: '#/components/parameters/MonitorType'
|
|
2023
2186
|
- $ref: '#/components/parameters/Format'
|
|
2024
2187
|
responses:
|
|
2025
2188
|
'200':
|
|
@@ -2036,6 +2199,7 @@ paths:
|
|
|
2036
2199
|
get:
|
|
2037
2200
|
operationId: list_tasks
|
|
2038
2201
|
summary: Tasks (user inputs) waiting for a user
|
|
2202
|
+
description: Lists the active user input tasks assigned to a user, completed by the user, or assigned to a group of the user, with the inputs they request.
|
|
2039
2203
|
tags:
|
|
2040
2204
|
- Tasks
|
|
2041
2205
|
parameters:
|
|
@@ -2052,18 +2216,21 @@ paths:
|
|
|
2052
2216
|
content:
|
|
2053
2217
|
application/json:
|
|
2054
2218
|
schema:
|
|
2219
|
+
description: Tasks of the user
|
|
2055
2220
|
type: object
|
|
2056
2221
|
properties:
|
|
2057
2222
|
user:
|
|
2058
2223
|
type: string
|
|
2059
2224
|
description: Login of the user
|
|
2060
2225
|
tasks:
|
|
2226
|
+
description: Tasks
|
|
2061
2227
|
type: array
|
|
2062
2228
|
items:
|
|
2063
2229
|
allOf:
|
|
2064
2230
|
- $ref: '#/components/schemas/Task'
|
|
2065
2231
|
properties:
|
|
2066
2232
|
event:
|
|
2233
|
+
description: Event description of the user input step, with its variables expanded
|
|
2067
2234
|
type: string
|
|
2068
2235
|
group:
|
|
2069
2236
|
type: string
|
|
@@ -2072,15 +2239,19 @@ paths:
|
|
|
2072
2239
|
type: string
|
|
2073
2240
|
description: User the task is assigned to
|
|
2074
2241
|
requested_user_inputs:
|
|
2242
|
+
description: Inputs to give in `submit_task`
|
|
2075
2243
|
type: array
|
|
2076
2244
|
items:
|
|
2077
2245
|
type: object
|
|
2078
2246
|
properties:
|
|
2079
2247
|
name:
|
|
2248
|
+
description: Input name, the key in `outputs` of `submit_task`
|
|
2080
2249
|
type: string
|
|
2081
2250
|
required:
|
|
2251
|
+
description: '`true` when the input must be given'
|
|
2082
2252
|
type: boolean
|
|
2083
2253
|
value_type:
|
|
2254
|
+
description: Value type, see `TaskUserInputs`
|
|
2084
2255
|
type: string
|
|
2085
2256
|
'401':
|
|
2086
2257
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -2090,6 +2261,7 @@ paths:
|
|
|
2090
2261
|
get:
|
|
2091
2262
|
operationId: task_details
|
|
2092
2263
|
summary: Details of a task
|
|
2264
|
+
description: Returns a task with the parameters it received and its user inputs.
|
|
2093
2265
|
tags:
|
|
2094
2266
|
- Tasks
|
|
2095
2267
|
parameters:
|
|
@@ -2117,6 +2289,7 @@ paths:
|
|
|
2117
2289
|
content:
|
|
2118
2290
|
application/json:
|
|
2119
2291
|
schema:
|
|
2292
|
+
description: Task, its parameters and its user inputs
|
|
2120
2293
|
type: object
|
|
2121
2294
|
properties:
|
|
2122
2295
|
task:
|
|
@@ -2126,6 +2299,7 @@ paths:
|
|
|
2126
2299
|
description: Parameters received by the task (name to value)
|
|
2127
2300
|
additionalProperties: true
|
|
2128
2301
|
user_inputs:
|
|
2302
|
+
description: Inputs to give in `submit_task`
|
|
2129
2303
|
type: array
|
|
2130
2304
|
items:
|
|
2131
2305
|
$ref: '#/components/schemas/UserInput'
|
|
@@ -2137,6 +2311,7 @@ paths:
|
|
|
2137
2311
|
get:
|
|
2138
2312
|
operationId: submit_task
|
|
2139
2313
|
summary: Complete a task with the user inputs
|
|
2314
|
+
description: Gives the values of the user inputs and completes the task, so the work order continues.
|
|
2140
2315
|
tags:
|
|
2141
2316
|
- Tasks
|
|
2142
2317
|
parameters:
|
|
@@ -2165,6 +2340,7 @@ paths:
|
|
|
2165
2340
|
content:
|
|
2166
2341
|
application/json:
|
|
2167
2342
|
schema:
|
|
2343
|
+
description: Completed task and the values given
|
|
2168
2344
|
type: object
|
|
2169
2345
|
properties:
|
|
2170
2346
|
task:
|
|
@@ -2174,6 +2350,7 @@ paths:
|
|
|
2174
2350
|
description: Values of the user inputs (name to value)
|
|
2175
2351
|
additionalProperties: true
|
|
2176
2352
|
input_provider:
|
|
2353
|
+
description: Login of the user recorded as provider of the inputs
|
|
2177
2354
|
type: string
|
|
2178
2355
|
'401':
|
|
2179
2356
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -2183,6 +2360,7 @@ paths:
|
|
|
2183
2360
|
get:
|
|
2184
2361
|
operationId: search_tasks
|
|
2185
2362
|
summary: Search the tasks of the current user
|
|
2363
|
+
description: Searches the tasks of the current user by a search key.
|
|
2186
2364
|
tags:
|
|
2187
2365
|
- Tasks
|
|
2188
2366
|
parameters:
|
|
@@ -2200,6 +2378,7 @@ paths:
|
|
|
2200
2378
|
content:
|
|
2201
2379
|
application/json:
|
|
2202
2380
|
schema:
|
|
2381
|
+
description: Tasks found
|
|
2203
2382
|
type: array
|
|
2204
2383
|
items:
|
|
2205
2384
|
anyOf:
|
|
@@ -2207,6 +2386,7 @@ paths:
|
|
|
2207
2386
|
type: object
|
|
2208
2387
|
properties:
|
|
2209
2388
|
id:
|
|
2389
|
+
description: Task ID
|
|
2210
2390
|
type: integer
|
|
2211
2391
|
task:
|
|
2212
2392
|
$ref: '#/components/schemas/Task'
|
|
@@ -2215,6 +2395,7 @@ paths:
|
|
|
2215
2395
|
description: Parameters received by the task (name to value)
|
|
2216
2396
|
additionalProperties: true
|
|
2217
2397
|
user_inputs:
|
|
2398
|
+
description: Inputs to give in `submit_task`
|
|
2218
2399
|
type: array
|
|
2219
2400
|
items:
|
|
2220
2401
|
$ref: '#/components/schemas/UserInput'
|
|
@@ -2222,8 +2403,10 @@ paths:
|
|
|
2222
2403
|
type: object
|
|
2223
2404
|
properties:
|
|
2224
2405
|
id:
|
|
2406
|
+
description: Task ID
|
|
2225
2407
|
type: integer
|
|
2226
2408
|
error:
|
|
2409
|
+
description: Why the task is not returned
|
|
2227
2410
|
type: string
|
|
2228
2411
|
'401':
|
|
2229
2412
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -2233,6 +2416,7 @@ paths:
|
|
|
2233
2416
|
get:
|
|
2234
2417
|
operationId: plugin_version
|
|
2235
2418
|
summary: Versions of the plugins
|
|
2419
|
+
description: Lists the installed plugins and their versions, or the version of one plugin.
|
|
2236
2420
|
tags:
|
|
2237
2421
|
- Plugins
|
|
2238
2422
|
parameters:
|
|
@@ -2248,16 +2432,20 @@ paths:
|
|
|
2248
2432
|
content:
|
|
2249
2433
|
application/json:
|
|
2250
2434
|
schema:
|
|
2435
|
+
description: Plugin versions
|
|
2251
2436
|
type: object
|
|
2252
2437
|
properties:
|
|
2253
2438
|
Plugin:
|
|
2439
|
+
description: Plugins
|
|
2254
2440
|
type: array
|
|
2255
2441
|
items:
|
|
2256
2442
|
type: object
|
|
2257
2443
|
properties:
|
|
2258
2444
|
name:
|
|
2445
|
+
description: Plugin name
|
|
2259
2446
|
type: string
|
|
2260
2447
|
version:
|
|
2448
|
+
description: Plugin version
|
|
2261
2449
|
type: string
|
|
2262
2450
|
examples:
|
|
2263
2451
|
- 1.2.3
|
|
@@ -2269,6 +2457,7 @@ paths:
|
|
|
2269
2457
|
get:
|
|
2270
2458
|
operationId: reload_plugin
|
|
2271
2459
|
summary: Reload a plugin, or all enabled plugins
|
|
2460
|
+
description: Reloads the code of a plugin, or of all enabled plugins, without restarting Orchestrator.
|
|
2272
2461
|
tags:
|
|
2273
2462
|
- Plugins
|
|
2274
2463
|
parameters:
|
|
@@ -2303,6 +2492,7 @@ paths:
|
|
|
2303
2492
|
content:
|
|
2304
2493
|
application/json:
|
|
2305
2494
|
schema:
|
|
2495
|
+
description: Plugins to reload
|
|
2306
2496
|
type: object
|
|
2307
2497
|
required:
|
|
2308
2498
|
- plugin_set
|
|
@@ -2317,6 +2507,7 @@ paths:
|
|
|
2317
2507
|
- AdiParser
|
|
2318
2508
|
application/xml:
|
|
2319
2509
|
schema:
|
|
2510
|
+
description: Plugins to reload, as XML
|
|
2320
2511
|
type: string
|
|
2321
2512
|
examples:
|
|
2322
2513
|
- <plugin_set><action_type>Adi3Parser</action_type></plugin_set>
|
|
@@ -2335,6 +2526,7 @@ paths:
|
|
|
2335
2526
|
get:
|
|
2336
2527
|
operationId: enable_plugin
|
|
2337
2528
|
summary: Enable a plugin, or all plugins
|
|
2529
|
+
description: Enables a plugin. Without `action_type`, loads all the available plugins.
|
|
2338
2530
|
tags:
|
|
2339
2531
|
- Plugins
|
|
2340
2532
|
parameters:
|
|
@@ -2351,6 +2543,7 @@ paths:
|
|
|
2351
2543
|
content:
|
|
2352
2544
|
application/json:
|
|
2353
2545
|
schema:
|
|
2546
|
+
description: Installation of the plugin
|
|
2354
2547
|
type: object
|
|
2355
2548
|
properties:
|
|
2356
2549
|
install_id:
|
|
@@ -2364,6 +2557,7 @@ paths:
|
|
|
2364
2557
|
get:
|
|
2365
2558
|
operationId: import_plugin
|
|
2366
2559
|
summary: Import a plugin from a file on the Orchestrator host
|
|
2560
|
+
description: Installs a plugin from an archive already present on the Orchestrator host.
|
|
2367
2561
|
tags:
|
|
2368
2562
|
- Plugins
|
|
2369
2563
|
parameters:
|
|
@@ -2381,9 +2575,11 @@ paths:
|
|
|
2381
2575
|
content:
|
|
2382
2576
|
application/json:
|
|
2383
2577
|
schema:
|
|
2578
|
+
description: Imported plugin
|
|
2384
2579
|
type: object
|
|
2385
2580
|
properties:
|
|
2386
2581
|
action_type:
|
|
2582
|
+
description: Plugin class name
|
|
2387
2583
|
type: string
|
|
2388
2584
|
'401':
|
|
2389
2585
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -2393,6 +2589,7 @@ paths:
|
|
|
2393
2589
|
get:
|
|
2394
2590
|
operationId: portlet_version
|
|
2395
2591
|
summary: Versions of the portlets
|
|
2592
|
+
description: Lists the portlets and their versions, or the version of one portlet.
|
|
2396
2593
|
tags:
|
|
2397
2594
|
- Portlets
|
|
2398
2595
|
parameters:
|
|
@@ -2408,16 +2605,20 @@ paths:
|
|
|
2408
2605
|
content:
|
|
2409
2606
|
application/json:
|
|
2410
2607
|
schema:
|
|
2608
|
+
description: Portlet versions
|
|
2411
2609
|
type: object
|
|
2412
2610
|
properties:
|
|
2413
2611
|
Portlet:
|
|
2612
|
+
description: Portlets
|
|
2414
2613
|
type: array
|
|
2415
2614
|
items:
|
|
2416
2615
|
type: object
|
|
2417
2616
|
properties:
|
|
2418
2617
|
name:
|
|
2618
|
+
description: Portlet name
|
|
2419
2619
|
type: string
|
|
2420
2620
|
version:
|
|
2621
|
+
description: Portlet version
|
|
2421
2622
|
type: string
|
|
2422
2623
|
examples:
|
|
2423
2624
|
- 1.2.3
|
|
@@ -2429,6 +2630,7 @@ paths:
|
|
|
2429
2630
|
get:
|
|
2430
2631
|
operationId: processes_status
|
|
2431
2632
|
summary: Status of the processes (engine, monitor, workers)
|
|
2633
|
+
description: Returns the processes (engine, monitor, workers) of each Orchestrator node and whether they run.
|
|
2432
2634
|
tags:
|
|
2433
2635
|
- System
|
|
2434
2636
|
parameters:
|
|
@@ -2443,14 +2645,18 @@ paths:
|
|
|
2443
2645
|
description: Conversion of the XML, so all values are strings
|
|
2444
2646
|
properties:
|
|
2445
2647
|
processes:
|
|
2648
|
+
description: Wrapper of the result
|
|
2446
2649
|
type: object
|
|
2447
2650
|
properties:
|
|
2448
2651
|
time:
|
|
2652
|
+
description: Time of the call
|
|
2449
2653
|
type: string
|
|
2450
2654
|
action:
|
|
2655
|
+
description: Name of the call
|
|
2451
2656
|
type: string
|
|
2452
2657
|
const: status
|
|
2453
2658
|
engine_id:
|
|
2659
|
+
description: ID of the engine that answers
|
|
2454
2660
|
type: string
|
|
2455
2661
|
node:
|
|
2456
2662
|
description: A node, or a list when there are several
|
|
@@ -2508,24 +2714,31 @@ paths:
|
|
|
2508
2714
|
content:
|
|
2509
2715
|
application/json:
|
|
2510
2716
|
schema:
|
|
2717
|
+
description: Status of the processes after the command
|
|
2511
2718
|
type: object
|
|
2512
2719
|
properties:
|
|
2513
2720
|
processes:
|
|
2721
|
+
description: Wrapper of the result
|
|
2514
2722
|
type: object
|
|
2515
2723
|
properties:
|
|
2516
2724
|
time:
|
|
2725
|
+
description: Time of the call
|
|
2517
2726
|
type: string
|
|
2518
2727
|
action:
|
|
2728
|
+
description: Name of the call
|
|
2519
2729
|
type: string
|
|
2520
2730
|
const: status
|
|
2521
2731
|
engine_id:
|
|
2732
|
+
description: ID of the engine that answers
|
|
2522
2733
|
type: integer
|
|
2523
2734
|
process:
|
|
2735
|
+
description: Processes
|
|
2524
2736
|
type: array
|
|
2525
2737
|
items:
|
|
2526
2738
|
type: object
|
|
2527
2739
|
properties:
|
|
2528
2740
|
class:
|
|
2741
|
+
description: Process type
|
|
2529
2742
|
type: string
|
|
2530
2743
|
enum:
|
|
2531
2744
|
- engine
|
|
@@ -2539,6 +2752,7 @@ paths:
|
|
|
2539
2752
|
type: [integer, string]
|
|
2540
2753
|
description: '`-` when not running'
|
|
2541
2754
|
status:
|
|
2755
|
+
description: Whether the process runs
|
|
2542
2756
|
type: string
|
|
2543
2757
|
enum:
|
|
2544
2758
|
- running
|
|
@@ -2562,17 +2776,17 @@ paths:
|
|
|
2562
2776
|
tags:
|
|
2563
2777
|
- System
|
|
2564
2778
|
parameters:
|
|
2565
|
-
- name: identifier
|
|
2566
|
-
in: query
|
|
2567
|
-
schema:
|
|
2568
|
-
type: string
|
|
2569
|
-
description: 'Aggregate type of the shared state (default: `custom_api_call`)'
|
|
2570
2779
|
- name: uniq_id
|
|
2571
2780
|
in: query
|
|
2572
2781
|
required: true
|
|
2573
2782
|
schema:
|
|
2574
2783
|
type: integer
|
|
2575
2784
|
description: Aggregate ID of the shared state, an integer
|
|
2785
|
+
- name: identifier
|
|
2786
|
+
in: query
|
|
2787
|
+
schema:
|
|
2788
|
+
type: string
|
|
2789
|
+
description: 'Aggregate type of the shared state (default: `custom_api_call`)'
|
|
2576
2790
|
- name: object
|
|
2577
2791
|
in: query
|
|
2578
2792
|
schema:
|
|
@@ -2589,6 +2803,7 @@ paths:
|
|
|
2589
2803
|
get:
|
|
2590
2804
|
operationId: execution_queue_stats
|
|
2591
2805
|
summary: Statistics of the execution queue of the engine
|
|
2806
|
+
description: Counts the items of the execution queue of the engine (steps waiting for or run by workers) and the running work orders, by status.
|
|
2592
2807
|
tags:
|
|
2593
2808
|
- System
|
|
2594
2809
|
parameters:
|
|
@@ -2600,37 +2815,50 @@ paths:
|
|
|
2600
2815
|
content:
|
|
2601
2816
|
application/json:
|
|
2602
2817
|
schema:
|
|
2818
|
+
description: Execution queue and work order counts
|
|
2603
2819
|
type: object
|
|
2604
2820
|
properties:
|
|
2605
2821
|
next_polling_due:
|
|
2606
2822
|
type: [integer, string]
|
|
2607
2823
|
description: Seconds until the next polling, or `-`
|
|
2608
2824
|
completed_items:
|
|
2825
|
+
description: Execution queue items with status `Complete`
|
|
2609
2826
|
type: integer
|
|
2610
2827
|
unassigned_items:
|
|
2828
|
+
description: Execution queue items not assigned to a worker yet
|
|
2611
2829
|
type: integer
|
|
2612
2830
|
error_items:
|
|
2831
|
+
description: Execution queue items with status `Error`
|
|
2613
2832
|
type: integer
|
|
2614
2833
|
inprogress_synch_count:
|
|
2834
|
+
description: Synchronous items in progress
|
|
2615
2835
|
type: integer
|
|
2616
2836
|
inprogress_asynch_count:
|
|
2837
|
+
description: Asynchronous items in progress
|
|
2617
2838
|
type: integer
|
|
2618
2839
|
created:
|
|
2619
2840
|
type: integer
|
|
2620
2841
|
description: Number of work orders with this status
|
|
2621
2842
|
ready:
|
|
2843
|
+
description: Number of work orders with status `Ready`
|
|
2622
2844
|
type: integer
|
|
2623
2845
|
initializing:
|
|
2846
|
+
description: Number of work orders with status `Initializing`
|
|
2624
2847
|
type: integer
|
|
2625
2848
|
initialized:
|
|
2849
|
+
description: Number of work orders with status `Initialized`
|
|
2626
2850
|
type: integer
|
|
2627
2851
|
in_progress:
|
|
2852
|
+
description: Number of work orders with status `In Progress`
|
|
2628
2853
|
type: integer
|
|
2629
2854
|
paused:
|
|
2855
|
+
description: Number of work orders with status `Paused`
|
|
2630
2856
|
type: integer
|
|
2631
2857
|
time_executed:
|
|
2858
|
+
description: Time of the statistics (`YYYY-MM-DD HH:MM:SS`)
|
|
2632
2859
|
type: string
|
|
2633
2860
|
engine_id:
|
|
2861
|
+
description: ID of the engine
|
|
2634
2862
|
type: integer
|
|
2635
2863
|
'401':
|
|
2636
2864
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -2640,6 +2868,7 @@ paths:
|
|
|
2640
2868
|
get:
|
|
2641
2869
|
operationId: alerts
|
|
2642
2870
|
summary: Alerts of the categories the user is subscribed to
|
|
2871
|
+
description: Returns the alerts of the categories the user is subscribed to, or their number.
|
|
2643
2872
|
tags:
|
|
2644
2873
|
- System
|
|
2645
2874
|
parameters:
|
|
@@ -2670,12 +2899,14 @@ paths:
|
|
|
2670
2899
|
content:
|
|
2671
2900
|
application/json:
|
|
2672
2901
|
schema:
|
|
2902
|
+
description: Alerts, or their number
|
|
2673
2903
|
oneOf:
|
|
2674
2904
|
- title: Count
|
|
2675
2905
|
description: With `count_only=true`
|
|
2676
2906
|
type: object
|
|
2677
2907
|
properties:
|
|
2678
2908
|
count:
|
|
2909
|
+
description: Number of alerts
|
|
2679
2910
|
type: integer
|
|
2680
2911
|
- type: array
|
|
2681
2912
|
items:
|
|
@@ -2688,6 +2919,7 @@ paths:
|
|
|
2688
2919
|
get:
|
|
2689
2920
|
operationId: remote_node_ping
|
|
2690
2921
|
summary: Version and platform of this Orchestrator
|
|
2922
|
+
description: Returns the version and platform of this Orchestrator. Used by another Orchestrator to check a federation link.
|
|
2691
2923
|
tags:
|
|
2692
2924
|
- Remote Nodes
|
|
2693
2925
|
parameters:
|
|
@@ -2698,16 +2930,21 @@ paths:
|
|
|
2698
2930
|
content:
|
|
2699
2931
|
application/json:
|
|
2700
2932
|
schema:
|
|
2933
|
+
description: Information on this Orchestrator
|
|
2701
2934
|
type: object
|
|
2702
2935
|
properties:
|
|
2703
2936
|
remote_orchestrator_info:
|
|
2937
|
+
description: Wrapper of the result
|
|
2704
2938
|
type: object
|
|
2705
2939
|
properties:
|
|
2706
2940
|
orchestrator-version:
|
|
2941
|
+
description: Orchestrator version
|
|
2707
2942
|
type: string
|
|
2708
2943
|
platform:
|
|
2944
|
+
description: Platform of the Ruby runtime, e.g. `x86_64-pc-linux-gnu`
|
|
2709
2945
|
type: string
|
|
2710
2946
|
engine_id:
|
|
2947
|
+
description: ID of the engine
|
|
2711
2948
|
type: integer
|
|
2712
2949
|
'401':
|
|
2713
2950
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -2837,40 +3074,57 @@ paths:
|
|
|
2837
3074
|
type: object
|
|
2838
3075
|
properties:
|
|
2839
3076
|
Date:
|
|
3077
|
+
description: Day of the statistics
|
|
2840
3078
|
type: string
|
|
2841
3079
|
Last_hour:
|
|
3080
|
+
description: Hour of the statistics, for the statistics of a day
|
|
2842
3081
|
type: string
|
|
2843
3082
|
format: date-time
|
|
2844
3083
|
Complete_Work_Orders:
|
|
3084
|
+
description: Work orders with status `Complete`
|
|
2845
3085
|
type: [string, integer]
|
|
2846
3086
|
Failed_Work_Orders:
|
|
3087
|
+
description: Work orders with status `Failed`
|
|
2847
3088
|
type: [string, integer]
|
|
2848
3089
|
Errored_Work_Orders:
|
|
3090
|
+
description: Work orders with status `Error`
|
|
2849
3091
|
type: [string, integer]
|
|
2850
3092
|
Canceled_Work_Orders:
|
|
3093
|
+
description: Work orders with status `Canceled`
|
|
2851
3094
|
type: [string, integer]
|
|
2852
3095
|
Rolled_Back_Work_Orders:
|
|
3096
|
+
description: Work orders with status `Rolled-back`
|
|
2853
3097
|
type: [string, integer]
|
|
2854
3098
|
Destroyed_Work_Orders:
|
|
3099
|
+
description: Work orders with status `Destroyed`
|
|
2855
3100
|
type: [string, integer]
|
|
2856
3101
|
Cleared_Work_Orders:
|
|
3102
|
+
description: Work orders with status `Cleared`
|
|
2857
3103
|
type: [string, integer]
|
|
2858
3104
|
Flagged_Work_Orders:
|
|
3105
|
+
description: Work orders with status `Flagged`
|
|
2859
3106
|
type: [string, integer]
|
|
2860
3107
|
Initializing_Work_Orders:
|
|
3108
|
+
description: Work orders with status `Initializing`
|
|
2861
3109
|
type: [string, integer]
|
|
2862
3110
|
Initialized_Work_Orders:
|
|
3111
|
+
description: Work orders with status `Initialized`
|
|
2863
3112
|
type: [string, integer]
|
|
2864
3113
|
Created_Work_Orders:
|
|
3114
|
+
description: Work orders with status `Created`
|
|
2865
3115
|
type: [string, integer]
|
|
2866
3116
|
Ready_Work_Orders:
|
|
3117
|
+
description: Work orders with status `Ready`
|
|
2867
3118
|
type: [string, integer]
|
|
2868
3119
|
In_Progress_Work_Orders:
|
|
3120
|
+
description: Work orders with status `In Progress`
|
|
2869
3121
|
type: [string, integer]
|
|
2870
3122
|
Unknown_Work_Orders:
|
|
3123
|
+
description: Work orders with status `Unknown`
|
|
2871
3124
|
type: [string, integer]
|
|
2872
3125
|
text/plain:
|
|
2873
3126
|
schema:
|
|
3127
|
+
description: Message when there is no statistic
|
|
2874
3128
|
type: string
|
|
2875
3129
|
const: No Statistics found. Change the filter and try again.
|
|
2876
3130
|
'401':
|
|
@@ -2932,36 +3186,51 @@ paths:
|
|
|
2932
3186
|
type: object
|
|
2933
3187
|
properties:
|
|
2934
3188
|
Date:
|
|
3189
|
+
description: Day of the statistics
|
|
2935
3190
|
type: string
|
|
2936
3191
|
Last_hour:
|
|
3192
|
+
description: Hour of the statistics, for the statistics of a day
|
|
2937
3193
|
type: string
|
|
2938
3194
|
format: date-time
|
|
2939
3195
|
Completed_Steps:
|
|
3196
|
+
description: Work steps with status `Complete`
|
|
2940
3197
|
type: [string, integer]
|
|
2941
3198
|
Failed_Steps:
|
|
3199
|
+
description: Work steps with status `Failed`
|
|
2942
3200
|
type: [string, integer]
|
|
2943
3201
|
Errored_steps:
|
|
3202
|
+
description: Work steps with status `Error`
|
|
2944
3203
|
type: [string, integer]
|
|
2945
3204
|
Obsolete_Steps:
|
|
3205
|
+
description: Work steps with status `Obsolete`
|
|
2946
3206
|
type: [string, integer]
|
|
2947
3207
|
Activating_Steps:
|
|
3208
|
+
description: Work steps with status `Activating`
|
|
2948
3209
|
type: [string, integer]
|
|
2949
3210
|
In_Progress_Steps:
|
|
3211
|
+
description: Work steps with status `In Progress`
|
|
2950
3212
|
type: [string, integer]
|
|
2951
3213
|
Paused_Steps:
|
|
3214
|
+
description: Work steps with status `Paused`
|
|
2952
3215
|
type: [string, integer]
|
|
2953
3216
|
Pausing_Steps:
|
|
3217
|
+
description: Work steps with status `Pausing`
|
|
2954
3218
|
type: [string, integer]
|
|
2955
3219
|
Canceling_Steps:
|
|
3220
|
+
description: Work steps with status `Canceling`
|
|
2956
3221
|
type: [string, integer]
|
|
2957
3222
|
Resuming_Steps:
|
|
3223
|
+
description: Work steps with status `Resuming`
|
|
2958
3224
|
type: [string, integer]
|
|
2959
3225
|
Rolling_Back_Steps:
|
|
3226
|
+
description: Work steps with status `Rolling Back`
|
|
2960
3227
|
type: [string, integer]
|
|
2961
3228
|
Undefined_Steps:
|
|
3229
|
+
description: Work steps with status `Undefined`
|
|
2962
3230
|
type: [string, integer]
|
|
2963
3231
|
text/plain:
|
|
2964
3232
|
schema:
|
|
3233
|
+
description: Message when there is no statistic
|
|
2965
3234
|
type: string
|
|
2966
3235
|
const: No Statistics found. Change the filter and try again.
|
|
2967
3236
|
'401':
|
|
@@ -2972,6 +3241,7 @@ paths:
|
|
|
2972
3241
|
get:
|
|
2973
3242
|
operationId: journal_files
|
|
2974
3243
|
summary: Files recorded in a journal book
|
|
3244
|
+
description: Lists the files recorded in a journal book, grouped by package, with the steps that processed each file.
|
|
2975
3245
|
tags:
|
|
2976
3246
|
- Journals
|
|
2977
3247
|
parameters:
|
|
@@ -3032,18 +3302,24 @@ paths:
|
|
|
3032
3302
|
content:
|
|
3033
3303
|
application/json:
|
|
3034
3304
|
schema:
|
|
3305
|
+
description: Journal book and its files
|
|
3035
3306
|
type: object
|
|
3036
3307
|
properties:
|
|
3037
3308
|
Journal:
|
|
3309
|
+
description: The journal book
|
|
3038
3310
|
type: object
|
|
3039
3311
|
properties:
|
|
3040
3312
|
name:
|
|
3313
|
+
description: Journal book name
|
|
3041
3314
|
type: string
|
|
3042
3315
|
id:
|
|
3316
|
+
description: Journal book ID
|
|
3043
3317
|
type: integer
|
|
3044
3318
|
description:
|
|
3319
|
+
description: Description of the journal book
|
|
3045
3320
|
type: [string, 'null']
|
|
3046
3321
|
active:
|
|
3322
|
+
description: '`true` when the journal book records files'
|
|
3047
3323
|
type: [boolean, 'null']
|
|
3048
3324
|
Packages:
|
|
3049
3325
|
type: array
|
|
@@ -3052,10 +3328,13 @@ paths:
|
|
|
3052
3328
|
type: object
|
|
3053
3329
|
properties:
|
|
3054
3330
|
name:
|
|
3331
|
+
description: Package name
|
|
3055
3332
|
type: string
|
|
3056
3333
|
id:
|
|
3334
|
+
description: Package ID
|
|
3057
3335
|
type: integer
|
|
3058
3336
|
files:
|
|
3337
|
+
description: Files of the package
|
|
3059
3338
|
type: array
|
|
3060
3339
|
items:
|
|
3061
3340
|
$ref: '#/components/schemas/JournalFile'
|
|
@@ -3072,6 +3351,7 @@ paths:
|
|
|
3072
3351
|
get:
|
|
3073
3352
|
operationId: add_resource
|
|
3074
3353
|
summary: Add a resource to a resource pool
|
|
3354
|
+
description: Adds a resource to a resource pool.
|
|
3075
3355
|
tags:
|
|
3076
3356
|
- Resources
|
|
3077
3357
|
parameters:
|
|
@@ -3100,6 +3380,7 @@ paths:
|
|
|
3100
3380
|
content:
|
|
3101
3381
|
application/json:
|
|
3102
3382
|
schema:
|
|
3383
|
+
description: The new resource
|
|
3103
3384
|
type: object
|
|
3104
3385
|
properties:
|
|
3105
3386
|
ManagedResource:
|
|
@@ -3112,6 +3393,7 @@ paths:
|
|
|
3112
3393
|
get:
|
|
3113
3394
|
operationId: edit_resource_capacity
|
|
3114
3395
|
summary: Change the capacity of a resource
|
|
3396
|
+
description: Sets the capacity of one resource of a pool.
|
|
3115
3397
|
tags:
|
|
3116
3398
|
- Resources
|
|
3117
3399
|
parameters:
|
|
@@ -3131,6 +3413,7 @@ paths:
|
|
|
3131
3413
|
content:
|
|
3132
3414
|
application/json:
|
|
3133
3415
|
schema:
|
|
3416
|
+
description: The resource
|
|
3134
3417
|
type: object
|
|
3135
3418
|
properties:
|
|
3136
3419
|
ManagedResource:
|
|
@@ -3143,6 +3426,7 @@ paths:
|
|
|
3143
3426
|
get:
|
|
3144
3427
|
operationId: edit_pool_capacity
|
|
3145
3428
|
summary: Change the capacity of a resource pool
|
|
3429
|
+
description: Sets the capacity of all the resources of a pool.
|
|
3146
3430
|
tags:
|
|
3147
3431
|
- Resources
|
|
3148
3432
|
parameters:
|
|
@@ -3161,9 +3445,11 @@ paths:
|
|
|
3161
3445
|
content:
|
|
3162
3446
|
application/json:
|
|
3163
3447
|
schema:
|
|
3448
|
+
description: The resources of the pool
|
|
3164
3449
|
type: object
|
|
3165
3450
|
properties:
|
|
3166
3451
|
ManagedResource:
|
|
3452
|
+
description: Resources of the pool
|
|
3167
3453
|
type: array
|
|
3168
3454
|
items:
|
|
3169
3455
|
$ref: '#/components/schemas/ManagedResource'
|
|
@@ -3175,6 +3461,7 @@ paths:
|
|
|
3175
3461
|
get:
|
|
3176
3462
|
operationId: resource_online
|
|
3177
3463
|
summary: Take a resource online
|
|
3464
|
+
description: Puts a resource back in use.
|
|
3178
3465
|
tags:
|
|
3179
3466
|
- Resources
|
|
3180
3467
|
parameters:
|
|
@@ -3188,6 +3475,7 @@ paths:
|
|
|
3188
3475
|
content:
|
|
3189
3476
|
application/json:
|
|
3190
3477
|
schema:
|
|
3478
|
+
description: New status of the resource
|
|
3191
3479
|
type: object
|
|
3192
3480
|
properties:
|
|
3193
3481
|
ManagedResource:
|
|
@@ -3203,6 +3491,7 @@ paths:
|
|
|
3203
3491
|
get:
|
|
3204
3492
|
operationId: resource_offline
|
|
3205
3493
|
summary: Take a resource offline
|
|
3494
|
+
description: Takes a resource out of use. Steps do not get it until it is online again.
|
|
3206
3495
|
tags:
|
|
3207
3496
|
- Resources
|
|
3208
3497
|
parameters:
|
|
@@ -3216,6 +3505,7 @@ paths:
|
|
|
3216
3505
|
content:
|
|
3217
3506
|
application/json:
|
|
3218
3507
|
schema:
|
|
3508
|
+
description: New status of the resource
|
|
3219
3509
|
type: object
|
|
3220
3510
|
properties:
|
|
3221
3511
|
ManagedResource:
|
|
@@ -3231,6 +3521,7 @@ paths:
|
|
|
3231
3521
|
get:
|
|
3232
3522
|
operationId: pool_status
|
|
3233
3523
|
summary: Resources of a resource pool and their status
|
|
3524
|
+
description: Lists the resources of a pool with their use and capacity.
|
|
3234
3525
|
tags:
|
|
3235
3526
|
- Resources
|
|
3236
3527
|
parameters:
|
|
@@ -3248,9 +3539,11 @@ paths:
|
|
|
3248
3539
|
content:
|
|
3249
3540
|
application/json:
|
|
3250
3541
|
schema:
|
|
3542
|
+
description: Resources of the pool
|
|
3251
3543
|
type: object
|
|
3252
3544
|
properties:
|
|
3253
3545
|
ManagedResource:
|
|
3546
|
+
description: Resources
|
|
3254
3547
|
type: array
|
|
3255
3548
|
items:
|
|
3256
3549
|
type: object
|
|
@@ -3259,10 +3552,13 @@ paths:
|
|
|
3259
3552
|
type: string
|
|
3260
3553
|
description: Resource name
|
|
3261
3554
|
taken:
|
|
3555
|
+
description: Units in use (sum of the reservations)
|
|
3262
3556
|
type: integer
|
|
3263
3557
|
capacity:
|
|
3558
|
+
description: Capacity of the resource
|
|
3264
3559
|
type: integer
|
|
3265
3560
|
status:
|
|
3561
|
+
description: '`online` or `offline`'
|
|
3266
3562
|
type: string
|
|
3267
3563
|
'401':
|
|
3268
3564
|
$ref: '#/components/responses/UnauthorizedError'
|
|
@@ -3283,6 +3579,7 @@ paths:
|
|
|
3283
3579
|
content:
|
|
3284
3580
|
application/json:
|
|
3285
3581
|
schema:
|
|
3582
|
+
description: The new user
|
|
3286
3583
|
type: object
|
|
3287
3584
|
required:
|
|
3288
3585
|
- login
|
|
@@ -3293,27 +3590,35 @@ paths:
|
|
|
3293
3590
|
type: string
|
|
3294
3591
|
description: Login of the user
|
|
3295
3592
|
password:
|
|
3593
|
+
description: Password of the user
|
|
3296
3594
|
type: string
|
|
3297
3595
|
format: password
|
|
3298
3596
|
first_name:
|
|
3597
|
+
description: First name
|
|
3299
3598
|
type: string
|
|
3300
3599
|
last_name:
|
|
3600
|
+
description: Last name
|
|
3301
3601
|
type: string
|
|
3302
3602
|
email:
|
|
3303
3603
|
type: string
|
|
3304
3604
|
format: email
|
|
3305
3605
|
description: Email of the user, unique
|
|
3306
3606
|
phone:
|
|
3607
|
+
description: Phone number
|
|
3307
3608
|
type: string
|
|
3308
3609
|
SMS:
|
|
3610
|
+
description: Number for SMS notifications
|
|
3309
3611
|
type: string
|
|
3310
3612
|
is_active:
|
|
3613
|
+
description: '`true` to let the user log in'
|
|
3311
3614
|
type: boolean
|
|
3312
3615
|
default: false
|
|
3313
3616
|
require_password_change_on_login:
|
|
3617
|
+
description: '`true` to make the user change the password at the first login'
|
|
3314
3618
|
type: boolean
|
|
3315
3619
|
default: false
|
|
3316
3620
|
alternate_emails:
|
|
3621
|
+
description: Other email addresses of the user
|
|
3317
3622
|
type: array
|
|
3318
3623
|
items:
|
|
3319
3624
|
type: string
|
|
@@ -3329,12 +3634,15 @@ paths:
|
|
|
3329
3634
|
content:
|
|
3330
3635
|
application/json:
|
|
3331
3636
|
schema:
|
|
3637
|
+
description: Result
|
|
3332
3638
|
type: object
|
|
3333
3639
|
properties:
|
|
3334
3640
|
create_user:
|
|
3641
|
+
description: Wrapper of the result
|
|
3335
3642
|
type: object
|
|
3336
3643
|
properties:
|
|
3337
3644
|
success:
|
|
3645
|
+
description: Confirmation message
|
|
3338
3646
|
type: string
|
|
3339
3647
|
examples:
|
|
3340
3648
|
- User 'jdoe' was successfully created.
|
|
@@ -3385,7 +3693,8 @@ components:
|
|
|
3385
3693
|
required: true
|
|
3386
3694
|
schema:
|
|
3387
3695
|
type: string
|
|
3388
|
-
|
|
3696
|
+
examples:
|
|
3697
|
+
- "0"
|
|
3389
3698
|
description: Not used by the endpoint, but required by the route (any value, e.g. `0`)
|
|
3390
3699
|
MonitorType:
|
|
3391
3700
|
name: monitor_type
|
|
@@ -3422,6 +3731,7 @@ components:
|
|
|
3422
3731
|
- error
|
|
3423
3732
|
properties:
|
|
3424
3733
|
error:
|
|
3734
|
+
description: Details of the error
|
|
3425
3735
|
type: object
|
|
3426
3736
|
required:
|
|
3427
3737
|
- action
|
|
@@ -3448,15 +3758,19 @@ components:
|
|
|
3448
3758
|
description: Workflow (database record)
|
|
3449
3759
|
properties:
|
|
3450
3760
|
id:
|
|
3761
|
+
description: Workflow ID
|
|
3451
3762
|
type: integer
|
|
3452
3763
|
name:
|
|
3764
|
+
description: Workflow name
|
|
3453
3765
|
type: string
|
|
3454
3766
|
portable_id:
|
|
3767
|
+
description: Portable ID, kept across export and import
|
|
3455
3768
|
type: [string, 'null']
|
|
3456
3769
|
created_by:
|
|
3457
3770
|
type: [integer, 'null']
|
|
3458
3771
|
description: User ID
|
|
3459
3772
|
folder_id:
|
|
3773
|
+
description: Folder of the workflow, `null` at the root
|
|
3460
3774
|
type: [integer, 'null']
|
|
3461
3775
|
generated_from:
|
|
3462
3776
|
type: [integer, 'null']
|
|
@@ -3465,33 +3779,47 @@ components:
|
|
|
3465
3779
|
type: [integer, 'null']
|
|
3466
3780
|
description: Published revision
|
|
3467
3781
|
label:
|
|
3782
|
+
description: Label of the workflow
|
|
3468
3783
|
type: [string, 'null']
|
|
3469
3784
|
run_as:
|
|
3785
|
+
description: 'User the work orders run as: `OPERATOR` (the user who starts them), `CREATOR` (the creator of the workflow), `SYSTEM`, or a user login'
|
|
3470
3786
|
type: [string, 'null']
|
|
3471
3787
|
source_revision:
|
|
3788
|
+
description: '`<name>|<revision ID>` of the published revision, used to match a workflow at import'
|
|
3472
3789
|
type: [string, 'null']
|
|
3473
3790
|
comments:
|
|
3791
|
+
description: Comments of the workflow
|
|
3474
3792
|
type: [string, 'null']
|
|
3475
3793
|
description:
|
|
3794
|
+
description: Description of the workflow
|
|
3476
3795
|
type: [string, 'null']
|
|
3477
3796
|
tags:
|
|
3797
|
+
description: Tags of the workflow
|
|
3478
3798
|
type: [string, 'null']
|
|
3479
3799
|
templates:
|
|
3800
|
+
description: Templates of the workflow (serialized hash)
|
|
3480
3801
|
type: [string, 'null']
|
|
3481
3802
|
max_running:
|
|
3803
|
+
description: 'Maximum number of work orders running at the same time, `0` or `null`: no limit'
|
|
3482
3804
|
type: [integer, 'null']
|
|
3483
3805
|
cleanup_after_days:
|
|
3806
|
+
description: Days after which the work orders are cleaned up, copied to each work order
|
|
3484
3807
|
type: [integer, 'null']
|
|
3485
3808
|
purge_after_days:
|
|
3809
|
+
description: Days after which the work orders are purged, copied to each work order
|
|
3486
3810
|
type: [integer, 'null']
|
|
3487
3811
|
user_lock:
|
|
3812
|
+
description: '`true` when a user has locked the workflow for editing'
|
|
3488
3813
|
type: [boolean, 'null']
|
|
3489
3814
|
locked_by:
|
|
3815
|
+
description: User ID of the user who locked the workflow
|
|
3490
3816
|
type: [integer, 'null']
|
|
3491
3817
|
created_at:
|
|
3818
|
+
description: Creation time
|
|
3492
3819
|
type: string
|
|
3493
3820
|
format: date-time
|
|
3494
3821
|
updated_at:
|
|
3822
|
+
description: Last update
|
|
3495
3823
|
type: string
|
|
3496
3824
|
format: date-time
|
|
3497
3825
|
WorkOrder:
|
|
@@ -3499,16 +3827,22 @@ components:
|
|
|
3499
3827
|
description: Work order (database record)
|
|
3500
3828
|
properties:
|
|
3501
3829
|
id:
|
|
3830
|
+
description: Work order ID
|
|
3502
3831
|
type: integer
|
|
3503
3832
|
name:
|
|
3833
|
+
description: Work order name
|
|
3504
3834
|
type: [string, 'null']
|
|
3505
3835
|
monitor_id:
|
|
3836
|
+
description: Workflow monitor that started the work order, if any
|
|
3506
3837
|
type: [integer, 'null']
|
|
3507
3838
|
workflow_id:
|
|
3839
|
+
description: Workflow ID
|
|
3508
3840
|
type: [integer, 'null']
|
|
3509
3841
|
workflow_revision_id:
|
|
3842
|
+
description: Revision of the workflow that runs
|
|
3510
3843
|
type: [integer, 'null']
|
|
3511
3844
|
workflow_name:
|
|
3845
|
+
description: Workflow name
|
|
3512
3846
|
type: [string, 'null']
|
|
3513
3847
|
branched_from_order:
|
|
3514
3848
|
type: [integer, 'null']
|
|
@@ -3517,10 +3851,13 @@ components:
|
|
|
3517
3851
|
type: [integer, 'null']
|
|
3518
3852
|
description: Parent work step, for a sub-workflow
|
|
3519
3853
|
forked_at:
|
|
3854
|
+
description: For a work order restarted from a step, the step ID it restarted from
|
|
3520
3855
|
type: [integer, 'null']
|
|
3521
3856
|
derived_from:
|
|
3857
|
+
description: For a work order restarted from a step, the original work order
|
|
3522
3858
|
type: [integer, 'null']
|
|
3523
3859
|
master_id:
|
|
3860
|
+
description: First work order of the group of restarts (its own ID when not restarted)
|
|
3524
3861
|
type: [integer, 'null']
|
|
3525
3862
|
launched_by:
|
|
3526
3863
|
type: [integer, 'null']
|
|
@@ -3529,42 +3866,57 @@ components:
|
|
|
3529
3866
|
type: [integer, 'null']
|
|
3530
3867
|
description: User ID
|
|
3531
3868
|
running_as:
|
|
3869
|
+
description: User ID the work order runs as (see `run_as` of the workflow)
|
|
3532
3870
|
type: [integer, 'null']
|
|
3533
3871
|
priority:
|
|
3872
|
+
description: 'Priority: 1 low, 2 medium (default), 3 high'
|
|
3534
3873
|
type: [integer, 'null']
|
|
3535
3874
|
exec_priority:
|
|
3875
|
+
description: Order of execution in the queue of the engine, computed from `priority` (lower runs first)
|
|
3536
3876
|
type: [number, 'null']
|
|
3537
3877
|
higher_priority:
|
|
3878
|
+
description: '`true` when the work order runs on a dedicated worker'
|
|
3538
3879
|
type: [boolean, 'null']
|
|
3539
3880
|
label:
|
|
3881
|
+
description: Label of the work order, used as a filter by `work_order_stats`
|
|
3540
3882
|
type: [string, 'null']
|
|
3541
3883
|
status:
|
|
3884
|
+
description: Status of the work order
|
|
3542
3885
|
type: [string, 'null']
|
|
3543
3886
|
examples:
|
|
3544
3887
|
- In Progress
|
|
3545
3888
|
status_details:
|
|
3889
|
+
description: Details of the status
|
|
3546
3890
|
type: [string, 'null']
|
|
3547
3891
|
comments:
|
|
3892
|
+
description: Comments of the work order
|
|
3548
3893
|
type: [string, 'null']
|
|
3549
3894
|
tags:
|
|
3550
3895
|
type: [string, 'null']
|
|
3551
3896
|
description: Tags separated by `|`, e.g. `|tag1|tag2|`
|
|
3552
3897
|
initiate_date:
|
|
3898
|
+
description: Start time
|
|
3553
3899
|
type: [string, 'null']
|
|
3554
3900
|
format: date-time
|
|
3555
3901
|
completion_date:
|
|
3902
|
+
description: End time
|
|
3556
3903
|
type: [string, 'null']
|
|
3557
3904
|
format: date-time
|
|
3558
3905
|
max_running:
|
|
3906
|
+
description: Maximum number of running work orders of the workflow (parameter `WORK_ORDER_MAX_RUNNING`, or the value of the workflow)
|
|
3559
3907
|
type: [integer, 'null']
|
|
3560
3908
|
cleanup_after_days:
|
|
3909
|
+
description: Days after which the work order is cleaned up
|
|
3561
3910
|
type: [integer, 'null']
|
|
3562
3911
|
purge_after_days:
|
|
3912
|
+
description: Days after which the work order is purged
|
|
3563
3913
|
type: [integer, 'null']
|
|
3564
3914
|
created_at:
|
|
3915
|
+
description: Creation time
|
|
3565
3916
|
type: string
|
|
3566
3917
|
format: date-time
|
|
3567
3918
|
updated_at:
|
|
3919
|
+
description: Last update
|
|
3568
3920
|
type: string
|
|
3569
3921
|
format: date-time
|
|
3570
3922
|
WorkStepBase:
|
|
@@ -3572,70 +3924,99 @@ components:
|
|
|
3572
3924
|
description: Work step (database record), common columns
|
|
3573
3925
|
properties:
|
|
3574
3926
|
id:
|
|
3927
|
+
description: Work step ID
|
|
3575
3928
|
type: integer
|
|
3576
3929
|
action_id:
|
|
3930
|
+
description: Template (action) used by the step
|
|
3577
3931
|
type: [integer, 'null']
|
|
3578
3932
|
step_id:
|
|
3933
|
+
description: Step ID in the workflow revision
|
|
3579
3934
|
type: [integer, 'null']
|
|
3580
3935
|
step_type:
|
|
3581
3936
|
type: [string, 'null']
|
|
3582
3937
|
description: Plugin class name, e.g. `CustomRuby`
|
|
3583
3938
|
step_name:
|
|
3939
|
+
description: Step name
|
|
3584
3940
|
type: [string, 'null']
|
|
3585
3941
|
work_step_name:
|
|
3942
|
+
description: Step name, as shown in the work order
|
|
3586
3943
|
type: [string, 'null']
|
|
3587
3944
|
attempt:
|
|
3945
|
+
description: Number of executions, retries included
|
|
3588
3946
|
type: [integer, 'null']
|
|
3589
3947
|
execution_timeout:
|
|
3948
|
+
description: Timeout of the current execution, in seconds (the step timeout, else the template timeout, else the default)
|
|
3590
3949
|
type: [integer, 'null']
|
|
3591
3950
|
group:
|
|
3951
|
+
description: Work order the step belongs to, or the original work order for a restarted one
|
|
3592
3952
|
type: [integer, 'null']
|
|
3593
3953
|
percent_complete:
|
|
3954
|
+
description: Progress of the step, 0 to 100
|
|
3594
3955
|
type: [integer, 'null']
|
|
3595
3956
|
rank:
|
|
3957
|
+
description: Display order of the step
|
|
3596
3958
|
type: [integer, 'null']
|
|
3597
3959
|
running_as:
|
|
3960
|
+
description: For a step of a sub-workflow, the work step of the parent work order that called it
|
|
3598
3961
|
type: [integer, 'null']
|
|
3599
3962
|
synch_filter:
|
|
3963
|
+
description: Number of incoming links that must be complete before the step starts
|
|
3600
3964
|
type: [integer, 'null']
|
|
3601
3965
|
timeout:
|
|
3966
|
+
description: Timeout of the step, in seconds, as set in the workflow
|
|
3602
3967
|
type: [integer, 'null']
|
|
3603
3968
|
weight:
|
|
3969
|
+
description: Percentage of the work order completed when this step ends, for `percent_complete` of the work order
|
|
3604
3970
|
type: [integer, 'null']
|
|
3605
3971
|
activation_time:
|
|
3972
|
+
description: Start time, in seconds since the epoch
|
|
3606
3973
|
type: [number, 'null']
|
|
3607
3974
|
on_timeout:
|
|
3975
|
+
description: 'Status set when the timeout is reached: `Pass` (Complete), `Fail` (Failed, the default), `Error`, or `Raise` (Error, and the timeout action of the work order)'
|
|
3608
3976
|
type: [string, 'null']
|
|
3609
3977
|
status:
|
|
3978
|
+
description: 'Status: `Inactive`, `Activating`, `In Progress`, `Paused`, `Pausing`, `Resuming`, `Canceling`, `Rolling Back`, `Complete`, `Failed`, `Error`, `Obsolete`, `Undefined`; `False` for the end step'
|
|
3610
3979
|
type: [string, 'null']
|
|
3611
3980
|
status_details:
|
|
3981
|
+
description: Details of the status
|
|
3612
3982
|
type: [string, 'null']
|
|
3613
3983
|
prerequisites:
|
|
3984
|
+
description: Links from the previous steps (YAML)
|
|
3614
3985
|
type: [string, 'null']
|
|
3615
3986
|
episteps:
|
|
3987
|
+
description: Links to the next steps (YAML)
|
|
3616
3988
|
type: [string, 'null']
|
|
3617
3989
|
journaling:
|
|
3990
|
+
description: Journal settings of the step
|
|
3618
3991
|
type: [string, 'null']
|
|
3619
3992
|
work_inputs:
|
|
3993
|
+
description: Inputs (YAML)
|
|
3620
3994
|
type: [string, 'null']
|
|
3621
3995
|
work_outputs:
|
|
3996
|
+
description: Outputs (YAML)
|
|
3622
3997
|
type: [string, 'null']
|
|
3623
3998
|
activable_date:
|
|
3999
|
+
description: Time the step was made ready to run, `null` when not ready
|
|
3624
4000
|
type: [string, 'null']
|
|
3625
4001
|
format: date-time
|
|
3626
4002
|
activation_date:
|
|
4003
|
+
description: Start of the current execution
|
|
3627
4004
|
type: [string, 'null']
|
|
3628
4005
|
format: date-time
|
|
3629
4006
|
original_activation_date:
|
|
4007
|
+
description: Start of the first execution, kept on retries
|
|
3630
4008
|
type: [string, 'null']
|
|
3631
4009
|
format: date-time
|
|
3632
4010
|
completion_date:
|
|
4011
|
+
description: End time
|
|
3633
4012
|
type: [string, 'null']
|
|
3634
4013
|
format: date-time
|
|
3635
4014
|
created_at:
|
|
4015
|
+
description: Creation time
|
|
3636
4016
|
type: string
|
|
3637
4017
|
format: date-time
|
|
3638
4018
|
updated_at:
|
|
4019
|
+
description: Last update
|
|
3639
4020
|
type: string
|
|
3640
4021
|
format: date-time
|
|
3641
4022
|
WorkStep:
|
|
@@ -3644,12 +4025,16 @@ components:
|
|
|
3644
4025
|
- $ref: '#/components/schemas/WorkStepBase'
|
|
3645
4026
|
properties:
|
|
3646
4027
|
work_order_id:
|
|
4028
|
+
description: Work order ID
|
|
3647
4029
|
type: [integer, 'null']
|
|
3648
4030
|
workflow_id:
|
|
4031
|
+
description: Workflow ID
|
|
3649
4032
|
type: [integer, 'null']
|
|
3650
4033
|
pre_processing:
|
|
4034
|
+
description: Ruby code run before the step, as set in the workflow
|
|
3651
4035
|
type: [string, 'null']
|
|
3652
4036
|
post_processing:
|
|
4037
|
+
description: Ruby code run after the step, as set in the workflow
|
|
3653
4038
|
type: [string, 'null']
|
|
3654
4039
|
WorkStepStatus:
|
|
3655
4040
|
description: Work step in `work_order_status`, without `workflow_id`, `pre_processing` and `post_processing`
|
|
@@ -3672,11 +4057,13 @@ components:
|
|
|
3672
4057
|
type: string
|
|
3673
4058
|
description: 'Only for `FederatedWorkflow`: execution address, or `-`'
|
|
3674
4059
|
WorkOrderWithSteps:
|
|
4060
|
+
description: Work order and its work steps
|
|
3675
4061
|
type: object
|
|
3676
4062
|
properties:
|
|
3677
4063
|
work_order:
|
|
3678
4064
|
$ref: '#/components/schemas/WorkOrder'
|
|
3679
4065
|
work_steps:
|
|
4066
|
+
description: Work steps of the work order
|
|
3680
4067
|
type: array
|
|
3681
4068
|
items:
|
|
3682
4069
|
$ref: '#/components/schemas/WorkStep'
|
|
@@ -3685,6 +4072,7 @@ components:
|
|
|
3685
4072
|
- $ref: '#/components/schemas/WorkOrderWithSteps'
|
|
3686
4073
|
properties:
|
|
3687
4074
|
workstep_reset:
|
|
4075
|
+
description: Always `true`
|
|
3688
4076
|
const: true
|
|
3689
4077
|
StepVariable:
|
|
3690
4078
|
type: object
|
|
@@ -3694,8 +4082,10 @@ components:
|
|
|
3694
4082
|
type: [string, integer, number, boolean, array, object, 'null']
|
|
3695
4083
|
description: 'Value, of the type given by `type`: integer for `int`, number for `float`, boolean for `flag`, array for `array`, object for `hash`, string for the others'
|
|
3696
4084
|
name:
|
|
4085
|
+
description: Variable name
|
|
3697
4086
|
type: string
|
|
3698
4087
|
id:
|
|
4088
|
+
description: Variable ID
|
|
3699
4089
|
type: integer
|
|
3700
4090
|
type:
|
|
3701
4091
|
type: string
|
|
@@ -3705,34 +4095,45 @@ components:
|
|
|
3705
4095
|
description: Item of a queue (database record, without the columns of the queue)
|
|
3706
4096
|
properties:
|
|
3707
4097
|
id:
|
|
4098
|
+
description: ID of the queued item
|
|
3708
4099
|
type: integer
|
|
3709
4100
|
queued_item:
|
|
3710
4101
|
type: [string, integer, number, boolean, array, object, 'null']
|
|
3711
4102
|
description: The queued item, decoded from YAML. A string for an item added with `queue_item`, any type for an item added by a workflow.
|
|
3712
4103
|
item_description:
|
|
4104
|
+
description: Description of the item
|
|
3713
4105
|
type: [string, 'null']
|
|
3714
4106
|
priority:
|
|
4107
|
+
description: Priority of the item
|
|
3715
4108
|
type: [integer, 'null']
|
|
3716
4109
|
weight:
|
|
4110
|
+
description: Weight of the item
|
|
3717
4111
|
type: [integer, 'null']
|
|
3718
4112
|
position:
|
|
4113
|
+
description: Sort key of the item in the queue
|
|
3719
4114
|
type: [integer, 'null']
|
|
3720
4115
|
rank:
|
|
3721
4116
|
type: [integer, 'null']
|
|
3722
4117
|
description: Position in the queue, from 0
|
|
3723
4118
|
originator_type:
|
|
4119
|
+
description: Not used for items
|
|
3724
4120
|
type: [string, 'null']
|
|
3725
4121
|
originator_id:
|
|
4122
|
+
description: Not used
|
|
3726
4123
|
type: [integer, 'null']
|
|
3727
4124
|
tags:
|
|
4125
|
+
description: Tags of the item
|
|
3728
4126
|
type: [string, 'null']
|
|
3729
4127
|
created_at:
|
|
4128
|
+
description: Time the item was queued
|
|
3730
4129
|
type: string
|
|
3731
4130
|
format: date-time
|
|
3732
4131
|
updated_at:
|
|
4132
|
+
description: Last update
|
|
3733
4133
|
type: string
|
|
3734
4134
|
format: date-time
|
|
3735
4135
|
QueueMetadata:
|
|
4136
|
+
description: Attributes of the queue
|
|
3736
4137
|
type: object
|
|
3737
4138
|
properties:
|
|
3738
4139
|
id:
|
|
@@ -3742,24 +4143,31 @@ components:
|
|
|
3742
4143
|
type: string
|
|
3743
4144
|
description: Displayed name of the queue
|
|
3744
4145
|
comments:
|
|
4146
|
+
description: Comments of the queue
|
|
3745
4147
|
type: [string, 'null']
|
|
3746
4148
|
administrators:
|
|
4149
|
+
description: Users and groups who administer the queue
|
|
3747
4150
|
type: object
|
|
3748
4151
|
properties:
|
|
3749
4152
|
groups:
|
|
4153
|
+
description: Group IDs
|
|
3750
4154
|
type: array
|
|
3751
4155
|
items:
|
|
3752
4156
|
type: integer
|
|
3753
4157
|
users:
|
|
4158
|
+
description: User IDs
|
|
3754
4159
|
type: array
|
|
3755
4160
|
items:
|
|
3756
4161
|
type: integer
|
|
3757
4162
|
paused:
|
|
4163
|
+
description: '`true` when the queue is paused: no item is taken'
|
|
3758
4164
|
type: [boolean, 'null']
|
|
3759
4165
|
QueuedItems:
|
|
4166
|
+
description: Items of a queue and the queue attributes
|
|
3760
4167
|
type: object
|
|
3761
4168
|
properties:
|
|
3762
4169
|
queued_items:
|
|
4170
|
+
description: Items, in queue order
|
|
3763
4171
|
type: array
|
|
3764
4172
|
items:
|
|
3765
4173
|
$ref: '#/components/schemas/QueuedItem'
|
|
@@ -3770,32 +4178,39 @@ components:
|
|
|
3770
4178
|
description: Task, i.e. a user input waiting for a user (database record)
|
|
3771
4179
|
properties:
|
|
3772
4180
|
id:
|
|
4181
|
+
description: Task ID
|
|
3773
4182
|
type: integer
|
|
3774
4183
|
state_id:
|
|
3775
4184
|
type: [integer, 'null']
|
|
3776
4185
|
description: Work step ID
|
|
3777
4186
|
user_input_id:
|
|
4187
|
+
description: User input template of the step
|
|
3778
4188
|
type: [integer, 'null']
|
|
3779
4189
|
role_id:
|
|
3780
4190
|
type: [integer, 'null']
|
|
3781
4191
|
description: Group ID
|
|
3782
4192
|
user_id:
|
|
4193
|
+
description: User the task is assigned to
|
|
3783
4194
|
type: [integer, 'null']
|
|
3784
4195
|
status:
|
|
4196
|
+
description: Status of the task
|
|
3785
4197
|
type: [string, 'null']
|
|
3786
4198
|
completed_by:
|
|
3787
4199
|
type: [integer, 'null']
|
|
3788
4200
|
description: User ID
|
|
3789
4201
|
created_at:
|
|
4202
|
+
description: Creation time
|
|
3790
4203
|
type: string
|
|
3791
4204
|
format: date-time
|
|
3792
4205
|
updated_at:
|
|
4206
|
+
description: Last update
|
|
3793
4207
|
type: string
|
|
3794
4208
|
format: date-time
|
|
3795
4209
|
UserInput:
|
|
3796
4210
|
type: object
|
|
3797
4211
|
properties:
|
|
3798
4212
|
name:
|
|
4213
|
+
description: Input name, the key in `outputs` of `submit_task`
|
|
3799
4214
|
type: string
|
|
3800
4215
|
type:
|
|
3801
4216
|
type: string
|
|
@@ -3805,6 +4220,7 @@ components:
|
|
|
3805
4220
|
type: [string, integer, number, boolean, array, object, 'null']
|
|
3806
4221
|
description: 'Current value, of the type given by `type`: integer for `int`, number for `float`, boolean for `flag`, array for `array`, object for `hash`, string for the others'
|
|
3807
4222
|
required:
|
|
4223
|
+
description: '`true` when the input must be given'
|
|
3808
4224
|
type: boolean
|
|
3809
4225
|
TaskUserInputs:
|
|
3810
4226
|
type: object
|
|
@@ -3829,9 +4245,11 @@ components:
|
|
|
3829
4245
|
Metadata: 'title: Tron'
|
|
3830
4246
|
Secret: <SECRET>
|
|
3831
4247
|
MonitorChange:
|
|
4248
|
+
description: Result of the activation or deactivation
|
|
3832
4249
|
type: object
|
|
3833
4250
|
properties:
|
|
3834
4251
|
action:
|
|
4252
|
+
description: Name of the call
|
|
3835
4253
|
type: string
|
|
3836
4254
|
enum:
|
|
3837
4255
|
- activate_monitor
|
|
@@ -3843,6 +4261,7 @@ components:
|
|
|
3843
4261
|
type: string
|
|
3844
4262
|
description: Monitor ID
|
|
3845
4263
|
description:
|
|
4264
|
+
description: New state of the monitor
|
|
3846
4265
|
type: string
|
|
3847
4266
|
enum:
|
|
3848
4267
|
- activated
|
|
@@ -3856,20 +4275,25 @@ components:
|
|
|
3856
4275
|
type: object
|
|
3857
4276
|
properties:
|
|
3858
4277
|
id:
|
|
4278
|
+
description: Node ID
|
|
3859
4279
|
type: string
|
|
3860
4280
|
name:
|
|
4281
|
+
description: Node name
|
|
3861
4282
|
type: string
|
|
3862
4283
|
current:
|
|
4284
|
+
description: '`true` for the node that answers the call'
|
|
3863
4285
|
type: string
|
|
3864
4286
|
enum:
|
|
3865
4287
|
- 'true'
|
|
3866
4288
|
- 'false'
|
|
3867
4289
|
process:
|
|
4290
|
+
description: Processes of the node
|
|
3868
4291
|
type: array
|
|
3869
4292
|
items:
|
|
3870
4293
|
type: object
|
|
3871
4294
|
properties:
|
|
3872
4295
|
class:
|
|
4296
|
+
description: Process type
|
|
3873
4297
|
type: string
|
|
3874
4298
|
enum:
|
|
3875
4299
|
- engine
|
|
@@ -3884,6 +4308,7 @@ components:
|
|
|
3884
4308
|
type: string
|
|
3885
4309
|
description: '`-` when not running'
|
|
3886
4310
|
status:
|
|
4311
|
+
description: Whether the process runs
|
|
3887
4312
|
type: string
|
|
3888
4313
|
type:
|
|
3889
4314
|
type: string
|
|
@@ -3896,29 +4321,38 @@ components:
|
|
|
3896
4321
|
type: object
|
|
3897
4322
|
properties:
|
|
3898
4323
|
id:
|
|
4324
|
+
description: Alert ID
|
|
3899
4325
|
type: integer
|
|
3900
4326
|
category_id:
|
|
3901
4327
|
type: [integer, 'null']
|
|
3902
4328
|
description: 'Category: 1 `WorkflowAlerts`, 2 `UserAlerts`, 3 `WorkorderAlerts`, 4 `MonitorAlerts`, 5 `PluginAlerts`'
|
|
3903
4329
|
alert_header:
|
|
4330
|
+
description: Title of the alert
|
|
3904
4331
|
type: [string, 'null']
|
|
3905
4332
|
alert_description:
|
|
4333
|
+
description: Text of the alert
|
|
3906
4334
|
type: [string, 'null']
|
|
3907
4335
|
created_at:
|
|
4336
|
+
description: Time of the alert
|
|
3908
4337
|
type: string
|
|
3909
4338
|
format: date-time
|
|
3910
4339
|
updated_at:
|
|
4340
|
+
description: Last update
|
|
3911
4341
|
type: string
|
|
3912
4342
|
format: date-time
|
|
3913
4343
|
TestRun:
|
|
4344
|
+
description: Test run and, when finished, its results
|
|
3914
4345
|
type: object
|
|
3915
4346
|
properties:
|
|
3916
4347
|
Test_run_id:
|
|
4348
|
+
description: ID of the test run, for `test_step_status`
|
|
3917
4349
|
type: string
|
|
3918
4350
|
format: uuid
|
|
3919
4351
|
Workflow_id:
|
|
4352
|
+
description: Tested workflow
|
|
3920
4353
|
type: [integer, 'null']
|
|
3921
4354
|
Test_cases_launched:
|
|
4355
|
+
description: Number of test cases started
|
|
3922
4356
|
type: integer
|
|
3923
4357
|
Steps:
|
|
3924
4358
|
type: array
|
|
@@ -3927,25 +4361,34 @@ components:
|
|
|
3927
4361
|
type: object
|
|
3928
4362
|
properties:
|
|
3929
4363
|
Step_name:
|
|
4364
|
+
description: Tested step
|
|
3930
4365
|
type: string
|
|
3931
4366
|
Result:
|
|
4367
|
+
description: '`true` when all the test cases of the step passed'
|
|
3932
4368
|
type: boolean
|
|
3933
4369
|
Test_cases:
|
|
4370
|
+
description: Test cases of the step
|
|
3934
4371
|
type: array
|
|
3935
4372
|
items:
|
|
3936
4373
|
type: object
|
|
3937
4374
|
properties:
|
|
3938
4375
|
Id:
|
|
4376
|
+
description: Test case ID
|
|
3939
4377
|
type: integer
|
|
3940
4378
|
Name:
|
|
4379
|
+
description: Test case name
|
|
3941
4380
|
type: string
|
|
3942
4381
|
status:
|
|
4382
|
+
description: Status of the test execution
|
|
3943
4383
|
type: string
|
|
3944
4384
|
Status_details:
|
|
4385
|
+
description: Details of the status
|
|
3945
4386
|
type: [string, 'null']
|
|
3946
4387
|
Result_message:
|
|
4388
|
+
description: Explanation of the result
|
|
3947
4389
|
type: [string, 'null']
|
|
3948
4390
|
Last_update:
|
|
4391
|
+
description: Last update
|
|
3949
4392
|
type: string
|
|
3950
4393
|
format: date-time
|
|
3951
4394
|
Inputs:
|
|
@@ -3957,6 +4400,7 @@ components:
|
|
|
3957
4400
|
description: Outputs of the test case (name to value), `null` values until the test case has run
|
|
3958
4401
|
additionalProperties: true
|
|
3959
4402
|
Result:
|
|
4403
|
+
description: '`true` when the test case passed, `null` until it has run'
|
|
3960
4404
|
type: [boolean, 'null']
|
|
3961
4405
|
Result:
|
|
3962
4406
|
type: boolean
|
|
@@ -3965,17 +4409,23 @@ components:
|
|
|
3965
4409
|
type: object
|
|
3966
4410
|
properties:
|
|
3967
4411
|
file_id:
|
|
4412
|
+
description: File ID in the journal
|
|
3968
4413
|
type: integer
|
|
3969
4414
|
file:
|
|
4415
|
+
description: Path of the file
|
|
3970
4416
|
type: string
|
|
3971
4417
|
status:
|
|
4418
|
+
description: Status of the file, e.g. `In Progress`, `Processing complete`
|
|
3972
4419
|
type: [string, 'null']
|
|
3973
4420
|
status_details:
|
|
4421
|
+
description: Details of the status
|
|
3974
4422
|
type: [string, 'null']
|
|
3975
4423
|
created_at:
|
|
4424
|
+
description: Time the file was recorded
|
|
3976
4425
|
type: string
|
|
3977
4426
|
format: date-time
|
|
3978
4427
|
updated_at:
|
|
4428
|
+
description: Last update
|
|
3979
4429
|
type: string
|
|
3980
4430
|
format: date-time
|
|
3981
4431
|
states:
|
|
@@ -3985,24 +4435,34 @@ components:
|
|
|
3985
4435
|
type: object
|
|
3986
4436
|
properties:
|
|
3987
4437
|
path:
|
|
4438
|
+
description: Path of the file in this step
|
|
3988
4439
|
type: [string, 'null']
|
|
3989
4440
|
status:
|
|
4441
|
+
description: Status of the file in this step
|
|
3990
4442
|
type: [string, 'null']
|
|
3991
4443
|
status_details:
|
|
4444
|
+
description: Details of the status
|
|
3992
4445
|
type: [string, 'null']
|
|
3993
4446
|
progress:
|
|
4447
|
+
description: Progress, 0 to 100
|
|
3994
4448
|
type: [integer, 'null']
|
|
3995
4449
|
work_step_id:
|
|
4450
|
+
description: Work step ID
|
|
3996
4451
|
type: [integer, 'null']
|
|
3997
4452
|
work_order_id:
|
|
4453
|
+
description: Work order ID
|
|
3998
4454
|
type: [integer, 'null']
|
|
3999
4455
|
step_name:
|
|
4456
|
+
description: Step name
|
|
4000
4457
|
type: [string, 'null']
|
|
4001
4458
|
workflow_id:
|
|
4459
|
+
description: Workflow ID
|
|
4002
4460
|
type: [integer, 'null']
|
|
4003
4461
|
workflow_name:
|
|
4462
|
+
description: Workflow name
|
|
4004
4463
|
type: [string, 'null']
|
|
4005
4464
|
created_at:
|
|
4465
|
+
description: Time of the state
|
|
4006
4466
|
type: string
|
|
4007
4467
|
format: date-time
|
|
4008
4468
|
ManagedResource:
|
|
@@ -4010,27 +4470,35 @@ components:
|
|
|
4010
4470
|
description: Resource of a resource pool (database record)
|
|
4011
4471
|
properties:
|
|
4012
4472
|
id:
|
|
4473
|
+
description: Record ID
|
|
4013
4474
|
type: integer
|
|
4014
4475
|
resource_id:
|
|
4476
|
+
description: Resource name (`resource_name` of the calls)
|
|
4015
4477
|
type: string
|
|
4016
4478
|
resource_name:
|
|
4017
4479
|
type: string
|
|
4018
4480
|
description: Pool name, with the suffix `__a`
|
|
4019
4481
|
status:
|
|
4482
|
+
description: '`online` or `offline`, `null` for online'
|
|
4020
4483
|
type: [string, 'null']
|
|
4021
4484
|
max:
|
|
4022
4485
|
type: [integer, 'null']
|
|
4023
4486
|
description: Capacity
|
|
4024
4487
|
reserved:
|
|
4488
|
+
description: Units reserved by running steps
|
|
4025
4489
|
type: [integer, 'null']
|
|
4026
4490
|
properties:
|
|
4491
|
+
description: Properties of the resource (serialized)
|
|
4027
4492
|
type: [string, 'null']
|
|
4028
4493
|
tags:
|
|
4494
|
+
description: Tags of the resource
|
|
4029
4495
|
type: [string, 'null']
|
|
4030
4496
|
created_at:
|
|
4497
|
+
description: Creation time
|
|
4031
4498
|
type: string
|
|
4032
4499
|
format: date-time
|
|
4033
4500
|
updated_at:
|
|
4501
|
+
description: Last update
|
|
4034
4502
|
type: string
|
|
4035
4503
|
format: date-time
|
|
4036
4504
|
responses:
|
|
@@ -4039,11 +4507,13 @@ components:
|
|
|
4039
4507
|
content:
|
|
4040
4508
|
application/json:
|
|
4041
4509
|
schema:
|
|
4510
|
+
description: JWT error, or the error body of the API
|
|
4042
4511
|
anyOf:
|
|
4043
4512
|
- title: JWT authentication
|
|
4044
4513
|
type: object
|
|
4045
4514
|
properties:
|
|
4046
4515
|
error:
|
|
4516
|
+
description: Error message
|
|
4047
4517
|
type: string
|
|
4048
4518
|
examples:
|
|
4049
4519
|
- Unauthorized
|