-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspec_transport.json
427 lines (427 loc) · 12.6 KB
/
spec_transport.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
{
"openapi": "3.1.0",
"x-stoplight": {
"id": "nj0buptcpdipb"
},
"info": {
"title": "Saviynt Transport API",
"version": "1.0",
"description": "Transporting Packages: https://docs.saviyntcloud.com/bundle/EIC-Admin-AMS/page/Content/Chapter07-General-Administrator/Transporting-Packages.htm",
"contact": {
"name": "Saviynt Developers Team",
"email": "https://github.com/saviynt"
}
},
"servers": [
{
"url": "http://localhost:3000"
}
],
"tags": [
{
"name": "Transport"
}
],
"paths": {
"/ECM/api/v5/exportTransportPackage": {
"post": {
"summary": "Export Transport Package",
"tags": [
"Transport"
],
"operationId": "exportTransportPackage",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExportTransportPackageResponse"
}
}
}
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExportTransportPackageRequest"
}
}
}
},
"description": "This API creates a compressed file containing objects specified for T2P migration."
}
},
"/ECM/api/v5/importTransportPackage": {
"post": {
"summary": "Import Transport Package",
"tags": [
"Transport"
],
"operationId": "importTransportPackage",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ImportTransportPackageResponse"
}
}
}
}
},
"description": "This API imports a compressed file containing objects specified for T2P migration.\n\nSupported objects:\n\nsavRoles, emailTemplate, roles, analyticsV1, analyticsV2, globalConfig, workflows, connection, appOnboarding, userGroups, scanRules, organizations, securitySystems",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ImportTransportPackageRequest"
},
"examples": {
"Example 1": {
"value": {
"updateuser": "admin",
"packagetoimport": "/saviynt_shared/testexport/transportPackage/transport_admin_2023-01-13_10-19-11(UTC).zip",
"businessjustification": "test"
}
}
}
}
}
}
}
},
"/ECM/api/v5/transportPackageStatus": {
"get": {
"summary": "Transport Package Status",
"tags": [
"Transport"
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TransportPackageStatusResponse"
}
}
}
}
},
"operationId": "transportPackageStatus",
"description": "This API obtains the status of the transport request (import, export, or transfer), and helps in confirming whether the transport was completed successfully or failed.\n\nNote: This API returns the status of only those requests that have been processed using the Enhanced Transport feature.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TransportPackageStatusRequest"
}
}
}
}
}
}
},
"components": {
"schemas": {
"ExportTransportPackageRequest": {
"title": "ExportTransportPackageRequest",
"x-stoplight": {
"id": "bn1ui71jne1we"
},
"type": "object",
"properties": {
"updateuser": {
"type": "string",
"x-stoplight": {
"id": "fu9d0rj8la3eo"
},
"description": "username of the user exporting the package"
},
"transportowner": {
"type": "string",
"x-stoplight": {
"id": "kokb7b8w3v3yy"
},
"description": "(can be true or false) - option to transport owners for selected objects"
},
"transportmembers": {
"type": "string",
"x-stoplight": {
"id": "xto5ohy0603ys"
},
"description": "can be true or false) - option to transport members for selected objects such as SAV role"
},
"exportonline": {
"type": "string",
"x-stoplight": {
"id": "m3zbu3f1s4md4"
},
"description": "(can be true or false) - Determines if package needs to be exported online"
},
"exportpath": {
"type": "string",
"x-stoplight": {
"id": "e3mri1ib5patv"
},
"description": "(if exportonline is false) - Local path where export package will be generated"
},
"environmentname": {
"type": "string",
"x-stoplight": {
"id": "poxj5q3j7zvt7"
},
"description": "(if exportonline is true) - Name of the environment which can be created at the following path : Admin -> Global Configurations -> Misc -> Transport -> Add New Transport"
},
"businessjustification": {
"type": "string",
"x-stoplight": {
"id": "po8i7fv2v5rik"
}
},
"objectstoexport": {
"$ref": "#/components/schemas/ObjectsToExport",
"x-stoplight": {
"id": "06h4cnkfphhaq"
},
"description": "Supported objects : savRoles, emailTemplate, roles, analyticsV1, analyticsV2, globalConfig, workflows, connection, appOnboarding, userGroups, scanRules, organizations, securitySystems"
}
},
"required": [
"exportonline",
"objectstoexport"
],
"examples": [
{
"updateuser": "admin",
"transportowner": "true",
"transportmembers": "true",
"exportonline": "false",
"exportpath": "/saviynt_shared/testexport/transportPackage",
"objectstoexport": {
"savRoles": [
"ROLE_ADMIN"
],
"emailTemplate": [
"Account Password Expiry Email",
"Entitlement Expiry Email"
]
},
"businessjustification": "justified..."
}
],
"description": ""
},
"ObjectsToExport": {
"title": "ObjectsToExport",
"x-stoplight": {
"id": "9z1hfxvbn0zav"
},
"type": "object",
"properties": {
"savRoles": {
"type": "array",
"x-stoplight": {
"id": "if4npvrn65ly8"
},
"items": {
"x-stoplight": {
"id": "2val4wnerkqd2"
},
"type": "string"
}
},
"emailTemplate": {
"type": "array",
"x-stoplight": {
"id": "glkjtgi0jiqpt"
},
"items": {
"x-stoplight": {
"id": "cwse89xfavmeq"
},
"type": "string"
}
}
}
},
"ExportTransportPackageResponse": {
"title": "ExportTransportPackageResponse",
"x-stoplight": {
"id": "ctaaycs2pwfmd"
},
"type": "object",
"examples": [
{
"msg": "success",
"fileName": "transport_admin_2023-01-13_10-19-11(UTC).zip",
"msgDescription": "Export Requested. If other requests are currently processing, your export will begin after they complete. You can call /transportPackageStatus API to check the status of your export.",
"errorcode": 0
}
],
"properties": {
"msg": {
"type": "string",
"x-stoplight": {
"id": "ofd1xk6jm68l1"
}
},
"fileName": {
"type": "string",
"x-stoplight": {
"id": "0mgsqu430jj4s"
}
},
"msgDescription": {
"type": "string",
"x-stoplight": {
"id": "mbsk6vd4s85zm"
}
},
"errorcode": {
"type": "integer",
"x-stoplight": {
"id": "l5896jtsfm1fy"
}
}
},
"required": [
"msg",
"fileName",
"msgDescription",
"errorcode"
]
},
"TransportPackageStatusRequest": {
"title": "TransportPackageStatusRequest",
"x-stoplight": {
"id": "7tg0ihg4biemh"
},
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": [
"export",
"import",
"transfer"
],
"x-stoplight": {
"id": "o6g12n9rxn2t4"
},
"description": "enter the type of transport request (export, import, or transfer)"
},
"filename": {
"type": "string",
"x-stoplight": {
"id": "xlnkv5gq8w9ev"
},
"description": "enter the transport package zip file name in full (including the .zip extension)"
},
"requestid": {
"type": "string",
"x-stoplight": {
"id": "j82ir7ym6at2m"
},
"description": "(required only if the operation is import) - enter the request ID generated during the submission of the import request"
}
},
"required": [
"operation",
"filename"
]
},
"TransportPackageStatusResponse": {
"title": "TransportPackageStatusResponse",
"x-stoplight": {
"id": "xh4kaggchfgoc"
},
"type": "object",
"properties": {
"msg": {
"type": "string",
"x-stoplight": {
"id": "ahrsh2vc4m3c7"
}
},
"msgDescription": {
"type": "string",
"x-stoplight": {
"id": "778at054odbjn"
}
},
"errorCode": {
"type": "integer",
"x-stoplight": {
"id": "ebuqgop7yv8q6"
}
}
},
"required": [
"msg",
"msgDescription",
"errorCode"
]
},
"ImportTransportPackageRequest": {
"type": "object",
"x-examples": {
"Example 1": {
"updateuser": "admin",
"packagetoimport": "/saviynt_shared/testexport/transportPackage/transport_admin_2023-01-13_10-19-11(UTC).zip",
"businessjustification": "test"
}
},
"properties": {
"packagetoimport": {
"type": "string",
"description": "Complete path of the package that needs to be imported"
},
"updateuser": {
"type": "string",
"description": "username of the user importing the package"
},
"businessjustification": {
"type": "string"
}
},
"required": [
"packagetoimport"
]
},
"ImportTransportPackageResponse": {
"type": "object",
"x-examples": {
"Example 1": {
"msg": "success",
"requestId": "2490001",
"msgDescription": "Import Requested. If other requests are currently processing, your import will begin after they complete. You can call /transportPackageStatus API to check the status of your import",
"errorcode": 0
}
},
"properties": {
"msg": {
"type": "string"
},
"requestId": {
"type": "string"
},
"msgDescription": {
"type": "string"
},
"errorcode": {
"type": "integer"
}
},
"required": [
"msg",
"errorcode"
]
}
}
}
}