forked from demisto/content
/
CloudConvert.yml
339 lines (339 loc) · 10.5 KB
/
CloudConvert.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
category: Utilities
commonfields:
id: CloudConvert
version: -1
configuration:
- display: API Key
name: apikey
required: true
type: 4
- display: Trust any certificate (not secure)
name: insecure
type: 8
- defaultvalue: 'false'
display: Use system proxy settings
name: proxy
type: 8
description: Use the CloudConvert integration to convert your files to the desired format.
display: CloudConvert
name: CloudConvert
script:
commands:
- arguments:
- description: The file's URL. If an entry ID is supplied, do not use this argument.
name: url
- description: The file's War Room entry ID. If a URL is supplied, do not use this argument.
name: entry_id
description: Uploads a file to convert.
name: cloudconvert-upload
outputs:
- contextPath: CloudConvert.Task.id
description: Unique task ID of the scanned file.
type: String
- contextPath: CloudConvert.Task.status
description: Status of the current task.
type: String
- contextPath: CloudConvert.Task.message
description: Response message from the API.
type: String
- contextPath: CloudConvert.Task.operation
description: The operation that was performed.
type: String
- contextPath: CloudConvert.Task.result.files.filename
description: The name of the uploaded file.
type: String
- contextPath: CloudConvert.Task.result.files.size
description: The size of the uploaded file.
type: Number
- contextPath: CloudConvert.Task.result.files.url
description: The URL of the uploaded file.
type: String
- contextPath: CloudConvert.Task.created_at
description: Time the task was created.
type: Date
- contextPath: CloudConvert.Task.started_at
description: Start time of the task.
type: Date
- contextPath: CloudConvert.Task.ended_at
description: End time of the task.
type: Date
- contextPath: CloudConvert.Task.host_name
description: Name of the host used for the task.
type: String
- contextPath: CloudConvert.Task.storage
description: Storage server used for the task.
type: String
- contextPath: CloudConvert.Task.links
description: API link for the task.
type: String
- arguments:
- description: ID of the task that uploaded the file.
name: task_id
required: true
- auto: PREDEFINED
description: 'The required output format for the given file. The supported destination formats are: 3g2, 3gp, 3gpp, 7z, aac, ac3, aif, aifc, aiff, amr, au, avi, azw3, bmp, caf, cavs, cgm, csv, doc, docx, dv, dvr, dwg, dxf, emf, eot, eps, epub, flac, flv, gif, html, icns, ico, jpg, lrf, m2ts, m4a, m4b, m4v, md, mkv, mobi, mod, mov, mp3, mp4, mpeg, mpg, mts, mxf, odd, odp, ods, odt, oeb, oga, ogg, otf, pdb, pdf, png, ppt, pptx, ps, psd, rar, rm, rmvb, rst, rtf, sf2, svg, swf, tar, tar.bz2, tar.gz, tar.lzo, tex, tiff, ts, ttf, txt, vob, voc, wav, weba, webm, webp, wma, wmf, wmv, woff, woff2, wtv, xls, xlsx, xps, zip.'
name: output_format
predefined:
- 3g2
- 3gp
- 3gpp
- 7z
- aac
- ac3
- aif
- aifc
- aiff
- amr
- au
- avi
- azw3
- bmp
- caf
- cavs
- cgm
- csv
- doc
- docx
- dv
- dvr
- dwg
- dxf
- emf
- eot
- eps
- epub
- flac
- flv
- gif
- html
- icns
- ico
- jpg
- lrf
- m2ts
- m4a
- m4b
- m4v
- md
- mkv
- mobi
- mod
- mov
- mp3
- mp4
- mpeg
- mpg
- mts
- mxf
- odd
- odp
- ods
- odt
- oeb
- oga
- ogg
- otf
- pdb
- pdf
- png
- ppt
- pptx
- ps
- psd
- rar
- rm
- rmvb
- rst
- rtf
- sf2
- svg
- swf
- tar
- tar.bz2
- tar.gz
- tar.lzo
- tex
- tiff
- ts
- ttf
- txt
- vob
- voc
- wav
- weba
- webm
- webp
- wma
- wmf
- wmv
- woff
- woff2
- wtv
- xls
- xlsx
- xps
- zip
required: true
description: Converts an uploaded file to the required format.
name: cloudconvert-convert
outputs:
- contextPath: CloudConvert.Task.id
description: Unique task ID of the scanned file.
type: String
- contextPath: CloudConvert.Task.status
description: Status of the current task.
type: String
- contextPath: CloudConvert.Task.message
description: Response message from the API.
type: String
- contextPath: CloudConvert.Task.operation
description: The task that was performed.
type: String
- contextPath: CloudConvert.Task.result.files.filename
description: The name of the converted file.
type: String
- contextPath: CloudConvert.Task.result.files.size
description: The size of the converted file.
type: Number
- contextPath: CloudConvert.Task.result.files.url
description: The URL of the converted file.
type: String
- contextPath: CloudConvert.Task.created_at
description: Time the task was created.
type: Date
- contextPath: CloudConvert.Task.started_at
description: Start time of the task.
type: Date
- contextPath: CloudConvert.Task.ended_at
description: End time of the task.
type: Date
- contextPath: CloudConvert.Task.host_name
description: Name of the host used for the task.
type: String
- contextPath: CloudConvert.Task.storage
description: Storage server used for the task.
type: String
- contextPath: CloudConvert.Task.depends_on_task_ids
description: The ID of the previous task that was conducted on this file.
type: String
- contextPath: CloudConvert.Task.links
description: API link for the task.
type: String
- arguments:
- description: ID of the task used to convert the file.
name: task_id
required: true
- description: 'Whether to create an entry in the War Room if the task is finished. Possible values are: "True" and "False". Use this argument to be able to check on an download operation in the War Room.'
name: create_war_room_entry
predefined:
- 'True'
- 'False'
description: Checks the status of an operation. Use the create_war_room_entry argument to also create a war room entry of the file when checking on a download operation.
name: cloudconvert-check-status
outputs:
- contextPath: CloudConvert.Task.id
description: Unique task ID of the scanned file.
type: String
- contextPath: CloudConvert.Task.status
description: Status of the current task.
type: String
- contextPath: CloudConvert.Task.message
description: Response message from the API.
type: String
- contextPath: CloudConvert.Task.operation
description: The task that was performed.
type: String
- contextPath: CloudConvert.Task.result.files.filename
description: The name of the converted file.
type: String
- contextPath: CloudConvert.Task.result.files.size
description: The size of the converted file.
type: Number
- contextPath: CloudConvert.Task.result.files.url
description: The URL of the converted file.
type: String
- contextPath: CloudConvert.Task.created_at
description: The time the task was created.
type: Date
- contextPath: CloudConvert.Task.started_at
description: Start time of the task.
type: Date
- contextPath: CloudConvert.Task.ended_at
description: End time of the task.
type: Date
- contextPath: CloudConvert.Task.host_name
description: Name of the host used for the task.
type: String
- contextPath: CloudConvert.Task.storage
description: Storage server used for the task.
type: String
- contextPath: CloudConvert.Task.depends_on_task_ids
description: The ID of the previous task conducted on this file.
type: String
- contextPath: CloudConvert.Task.links
description: API link for the task.
type: String
- arguments:
- auto: PREDEFINED
description: 'Whether to download the converted file to a URL or as a War Room entry. Possible values are: "url" and "war_room_entry". Note that if you download the file as a War Room entry, a URL of the file will also be generated.'
name: download_as
predefined:
- url
- war_room_entry
required: true
- description: ID of the task that converted the file.
name: task_id
required: true
description: Downloads a converted file to a URL or a War Room entry.
name: cloudconvert-download
outputs:
- contextPath: CloudConvert.Task.id
description: Unique task ID of the scanned file.
type: String
- contextPath: CloudConvert.Task.status
description: Status of the current task.
type: String
- contextPath: CloudConvert.Task.message
description: Response message from the API.
type: String
- contextPath: CloudConvert.Task.operation
description: The operation that was performed.
type: String
- contextPath: CloudConvert.Task.result.files.filename
description: The file name of the downloaded file.
type: String
- contextPath: CloudConvert.Task.result.files.size
description: The size of the downloaded file.
type: Number
- contextPath: CloudConvert.Task.result.files.url
description: The URL of the downloaded file.
type: String
- contextPath: CloudConvert.Task.created_at
description: Time the task was created.
type: Date
- contextPath: CloudConvert.Task.started_at
description: Start time of the task.
type: Date
- contextPath: CloudConvert.Task.ended_at
description: End time of the task.
type: Date
- contextPath: CloudConvert.Task.host_name
description: Name of the host used for the task.
type: String
- contextPath: CloudConvert.Task.storage
description: Storage server used for the task.
type: String
- contextPath: CloudConvert.Task.depends_on_task_ids
description: The ID of the previous task conducted on this file.
type: String
- contextPath: CloudConvert.Task.links
description: API link for the task.
type: String
dockerimage: demisto/python3:3.10.12.63474
runonce: false
script: '-'
subtype: python3
type: python
tests:
- CloudConvert-test
fromversion: 5.0.0