n8n-nodes-infomaniak-api 0.1.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.
- package/LICENSE +21 -0
- package/README.md +69 -0
- package/dist/api/infomaniak_api_Eticket.json +1 -0
- package/dist/api/infomaniak_api_KMeet.json +1 -0
- package/dist/api/infomaniak_api_Newsletter.json +1 -0
- package/dist/api/infomaniak_api_aitools.json +1 -0
- package/dist/api/infomaniak_api_core ressource.json +1 -0
- package/dist/api/infomaniak_api_kchat.json +1 -0
- package/dist/api/infomaniak_api_kdrive.json +1 -0
- package/dist/api/infomaniak_api_mail.json +1 -0
- package/dist/api/infomaniak_api_public Cloud.json +1 -0
- package/dist/api/infomaniak_api_streaming radio.json +1 -0
- package/dist/api/infomaniak_api_streaming vide/314/201o.json" +1 -0
- package/dist/api/infomaniak_api_swiss backup.json +1 -0
- package/dist/api/infomaniak_api_url shortner.json +1 -0
- package/dist/api/infomaniak_api_vod.json +1 -0
- package/dist/credentials/InfomaniakApiKeyApi.credentials.d.ts +10 -0
- package/dist/credentials/InfomaniakApiKeyApi.credentials.js +37 -0
- package/dist/credentials/InfomaniakApiKeyApi.credentials.js.map +1 -0
- package/dist/credentials/InfomaniakOAuth2Api.credentials.d.ts +9 -0
- package/dist/credentials/InfomaniakOAuth2Api.credentials.js +55 -0
- package/dist/credentials/InfomaniakOAuth2Api.credentials.js.map +1 -0
- package/dist/icons/ai-tools.svg +4 -0
- package/dist/icons/etickets.svg +3 -0
- package/dist/icons/infomaniak.svg +4 -0
- package/dist/icons/k.svg +4 -0
- package/dist/icons/kChat.svg +7 -0
- package/dist/icons/kdrive.svg +14 -0
- package/dist/icons/mail.svg +13 -0
- package/dist/icons/meet.svg +12 -0
- package/dist/icons/newsletter.svg +3 -0
- package/dist/icons/public-cloud.svg +1 -0
- package/dist/icons/radio.svg +7 -0
- package/dist/icons/swiss-backup.svg +14 -0
- package/dist/icons/url-short.svg +30 -0
- package/dist/icons/video.svg +7 -0
- package/dist/icons/vod.svg +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/InfomaniakAitools/InfomaniakAitools.node.d.ts +5 -0
- package/dist/nodes/InfomaniakAitools/InfomaniakAitools.node.js +2799 -0
- package/dist/nodes/InfomaniakAitools/InfomaniakAitools.node.js.map +1 -0
- package/dist/nodes/InfomaniakCoreRessource/InfomaniakCoreRessource.node.d.ts +5 -0
- package/dist/nodes/InfomaniakCoreRessource/InfomaniakCoreRessource.node.js +6835 -0
- package/dist/nodes/InfomaniakCoreRessource/InfomaniakCoreRessource.node.js.map +1 -0
- package/dist/nodes/InfomaniakEticket/InfomaniakEticket.node.d.ts +5 -0
- package/dist/nodes/InfomaniakEticket/InfomaniakEticket.node.js +1011 -0
- package/dist/nodes/InfomaniakEticket/InfomaniakEticket.node.js.map +1 -0
- package/dist/nodes/InfomaniakKMeet/InfomaniakKMeet.node.d.ts +5 -0
- package/dist/nodes/InfomaniakKMeet/InfomaniakKMeet.node.js +465 -0
- package/dist/nodes/InfomaniakKMeet/InfomaniakKMeet.node.js.map +1 -0
- package/dist/nodes/InfomaniakKchat/InfomaniakKchat.node.d.ts +5 -0
- package/dist/nodes/InfomaniakKchat/InfomaniakKchat.node.js +13161 -0
- package/dist/nodes/InfomaniakKchat/InfomaniakKchat.node.js.map +1 -0
- package/dist/nodes/InfomaniakKdrive/InfomaniakKdrive.node.d.ts +5 -0
- package/dist/nodes/InfomaniakKdrive/InfomaniakKdrive.node.js +21094 -0
- package/dist/nodes/InfomaniakKdrive/InfomaniakKdrive.node.js.map +1 -0
- package/dist/nodes/InfomaniakMail/InfomaniakMail.node.d.ts +5 -0
- package/dist/nodes/InfomaniakMail/InfomaniakMail.node.js +13313 -0
- package/dist/nodes/InfomaniakMail/InfomaniakMail.node.js.map +1 -0
- package/dist/nodes/InfomaniakNewsletter/InfomaniakNewsletter.node.d.ts +5 -0
- package/dist/nodes/InfomaniakNewsletter/InfomaniakNewsletter.node.js +7984 -0
- package/dist/nodes/InfomaniakNewsletter/InfomaniakNewsletter.node.js.map +1 -0
- package/dist/nodes/InfomaniakPublicCloud/InfomaniakPublicCloud.node.d.ts +5 -0
- package/dist/nodes/InfomaniakPublicCloud/InfomaniakPublicCloud.node.js +8348 -0
- package/dist/nodes/InfomaniakPublicCloud/InfomaniakPublicCloud.node.js.map +1 -0
- package/dist/nodes/InfomaniakStreamingRadio/InfomaniakStreamingRadio.node.d.ts +5 -0
- package/dist/nodes/InfomaniakStreamingRadio/InfomaniakStreamingRadio.node.js +68703 -0
- package/dist/nodes/InfomaniakStreamingRadio/InfomaniakStreamingRadio.node.js.map +1 -0
- package/dist/nodes/InfomaniakStreamingVideo/InfomaniakStreamingVideo.node.d.ts +5 -0
- package/dist/nodes/InfomaniakStreamingVideo/InfomaniakStreamingVideo.node.js +14130 -0
- package/dist/nodes/InfomaniakStreamingVideo/InfomaniakStreamingVideo.node.js.map +1 -0
- package/dist/nodes/InfomaniakSwissBackup/InfomaniakSwissBackup.node.d.ts +5 -0
- package/dist/nodes/InfomaniakSwissBackup/InfomaniakSwissBackup.node.js +1761 -0
- package/dist/nodes/InfomaniakSwissBackup/InfomaniakSwissBackup.node.js.map +1 -0
- package/dist/nodes/InfomaniakUrlShortner/InfomaniakUrlShortner.node.d.ts +5 -0
- package/dist/nodes/InfomaniakUrlShortner/InfomaniakUrlShortner.node.js +623 -0
- package/dist/nodes/InfomaniakUrlShortner/InfomaniakUrlShortner.node.js.map +1 -0
- package/dist/nodes/InfomaniakVod/InfomaniakVod.node.d.ts +5 -0
- package/dist/nodes/InfomaniakVod/InfomaniakVod.node.js +27699 -0
- package/dist/nodes/InfomaniakVod/InfomaniakVod.node.js.map +1 -0
- package/dist/nodes/icons/ai-tools.svg +4 -0
- package/dist/nodes/icons/etickets.svg +3 -0
- package/dist/nodes/icons/infomaniak.svg +4 -0
- package/dist/nodes/icons/k.svg +4 -0
- package/dist/nodes/icons/kChat.svg +7 -0
- package/dist/nodes/icons/kdrive.svg +14 -0
- package/dist/nodes/icons/mail.svg +13 -0
- package/dist/nodes/icons/meet.svg +12 -0
- package/dist/nodes/icons/newsletter.svg +3 -0
- package/dist/nodes/icons/public-cloud.svg +1 -0
- package/dist/nodes/icons/radio.svg +7 -0
- package/dist/nodes/icons/swiss-backup.svg +14 -0
- package/dist/nodes/icons/url-short.svg +30 -0
- package/dist/nodes/icons/video.svg +7 -0
- package/dist/nodes/icons/vod.svg +10 -0
- package/dist/nodes/shared/GenericFunctions.d.ts +5 -0
- package/dist/nodes/shared/GenericFunctions.js +121 -0
- package/dist/nodes/shared/GenericFunctions.js.map +1 -0
- package/dist/package.json +73 -0
- package/dist/tests/genericFunctions.test.d.ts +1 -0
- package/dist/tests/genericFunctions.test.js +15 -0
- package/dist/tests/genericFunctions.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,1761 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfomaniakSwissBackup = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const GenericFunctions_1 = require("../shared/GenericFunctions");
|
|
6
|
+
const operations = {
|
|
7
|
+
"Administrator": {
|
|
8
|
+
"POST /1/swiss_backups/{swiss_backup_id}/admin": {
|
|
9
|
+
"method": "POST",
|
|
10
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/admin",
|
|
11
|
+
"pagination": "none",
|
|
12
|
+
"pathParams": [
|
|
13
|
+
{
|
|
14
|
+
"name": "swiss_backup_id",
|
|
15
|
+
"field": "path_swiss_backup_id"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"queryParams": [],
|
|
19
|
+
"optionalQueryCollectionName": null,
|
|
20
|
+
"bodyFields": [
|
|
21
|
+
{
|
|
22
|
+
"name": "email",
|
|
23
|
+
"field": "body_email"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"optionalBodyCollectionName": null,
|
|
27
|
+
"bodyFieldName": null
|
|
28
|
+
},
|
|
29
|
+
"PUT /1/swiss_backups/{swiss_backup_id}/admin": {
|
|
30
|
+
"method": "PUT",
|
|
31
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/admin",
|
|
32
|
+
"pagination": "none",
|
|
33
|
+
"pathParams": [
|
|
34
|
+
{
|
|
35
|
+
"name": "swiss_backup_id",
|
|
36
|
+
"field": "path_swiss_backup_id"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"queryParams": [],
|
|
40
|
+
"optionalQueryCollectionName": null,
|
|
41
|
+
"bodyFields": [
|
|
42
|
+
{
|
|
43
|
+
"name": "email",
|
|
44
|
+
"field": "body_email"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"optionalBodyCollectionName": null,
|
|
48
|
+
"bodyFieldName": null
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"Billing": {
|
|
52
|
+
"GET /1/swiss_backups/pricing": {
|
|
53
|
+
"method": "GET",
|
|
54
|
+
"path": "/1/swiss_backups/pricing",
|
|
55
|
+
"pagination": "none",
|
|
56
|
+
"pathParams": [],
|
|
57
|
+
"queryParams": [],
|
|
58
|
+
"optionalQueryCollectionName": "queryParameters",
|
|
59
|
+
"bodyFields": [],
|
|
60
|
+
"optionalBodyCollectionName": null,
|
|
61
|
+
"bodyFieldName": null
|
|
62
|
+
},
|
|
63
|
+
"GET /1/swiss_backups/calculate": {
|
|
64
|
+
"method": "GET",
|
|
65
|
+
"path": "/1/swiss_backups/calculate",
|
|
66
|
+
"pagination": "none",
|
|
67
|
+
"pathParams": [],
|
|
68
|
+
"queryParams": [
|
|
69
|
+
{
|
|
70
|
+
"name": "size",
|
|
71
|
+
"field": "query_size"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"optionalQueryCollectionName": "queryParameters",
|
|
75
|
+
"bodyFields": [],
|
|
76
|
+
"optionalBodyCollectionName": null,
|
|
77
|
+
"bodyFieldName": null
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"Passwords": {
|
|
81
|
+
"POST /1/swiss_backups/{swiss_backup_id}/admin/request_password": {
|
|
82
|
+
"method": "POST",
|
|
83
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/admin/request_password",
|
|
84
|
+
"pagination": "none",
|
|
85
|
+
"pathParams": [
|
|
86
|
+
{
|
|
87
|
+
"name": "swiss_backup_id",
|
|
88
|
+
"field": "path_swiss_backup_id"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"queryParams": [],
|
|
92
|
+
"optionalQueryCollectionName": null,
|
|
93
|
+
"bodyFields": [],
|
|
94
|
+
"optionalBodyCollectionName": null,
|
|
95
|
+
"bodyFieldName": null
|
|
96
|
+
},
|
|
97
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/request_password": {
|
|
98
|
+
"method": "POST",
|
|
99
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/request_password",
|
|
100
|
+
"pagination": "none",
|
|
101
|
+
"pathParams": [
|
|
102
|
+
{
|
|
103
|
+
"name": "swiss_backup_id",
|
|
104
|
+
"field": "path_swiss_backup_id"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "slot_id",
|
|
108
|
+
"field": "path_slot_id"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"queryParams": [],
|
|
112
|
+
"optionalQueryCollectionName": null,
|
|
113
|
+
"bodyFields": [],
|
|
114
|
+
"optionalBodyCollectionName": null,
|
|
115
|
+
"bodyFieldName": null
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"Product management": {
|
|
119
|
+
"GET /1/swiss_backups": {
|
|
120
|
+
"method": "GET",
|
|
121
|
+
"path": "/1/swiss_backups",
|
|
122
|
+
"pagination": "limit-skip",
|
|
123
|
+
"pathParams": [],
|
|
124
|
+
"queryParams": [
|
|
125
|
+
{
|
|
126
|
+
"name": "account_id",
|
|
127
|
+
"field": "query_account_id"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"optionalQueryCollectionName": "queryParameters",
|
|
131
|
+
"bodyFields": [],
|
|
132
|
+
"optionalBodyCollectionName": null,
|
|
133
|
+
"bodyFieldName": null
|
|
134
|
+
},
|
|
135
|
+
"GET /1/swiss_backups/{swiss_backup_id}": {
|
|
136
|
+
"method": "GET",
|
|
137
|
+
"path": "/1/swiss_backups/{swiss_backup_id}",
|
|
138
|
+
"pagination": "none",
|
|
139
|
+
"pathParams": [
|
|
140
|
+
{
|
|
141
|
+
"name": "swiss_backup_id",
|
|
142
|
+
"field": "path_swiss_backup_id"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"queryParams": [],
|
|
146
|
+
"optionalQueryCollectionName": null,
|
|
147
|
+
"bodyFields": [],
|
|
148
|
+
"optionalBodyCollectionName": null,
|
|
149
|
+
"bodyFieldName": null
|
|
150
|
+
},
|
|
151
|
+
"PUT /1/swiss_backups/{swiss_backup_id}": {
|
|
152
|
+
"method": "PUT",
|
|
153
|
+
"path": "/1/swiss_backups/{swiss_backup_id}",
|
|
154
|
+
"pagination": "none",
|
|
155
|
+
"pathParams": [
|
|
156
|
+
{
|
|
157
|
+
"name": "swiss_backup_id",
|
|
158
|
+
"field": "path_swiss_backup_id"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"queryParams": [
|
|
162
|
+
{
|
|
163
|
+
"name": "account_id",
|
|
164
|
+
"field": "query_account_id"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"optionalQueryCollectionName": null,
|
|
168
|
+
"bodyFields": [
|
|
169
|
+
{
|
|
170
|
+
"name": "periodicity",
|
|
171
|
+
"field": "body_periodicity"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "storage_reserved_acronis",
|
|
175
|
+
"field": "body_storage_reserved_acronis"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"optionalBodyCollectionName": "bodyParameters",
|
|
179
|
+
"bodyFieldName": null
|
|
180
|
+
},
|
|
181
|
+
"GET /1/swiss_backups/{swiss_backup_id}/acronis_informations": {
|
|
182
|
+
"method": "GET",
|
|
183
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/acronis_informations",
|
|
184
|
+
"pagination": "none",
|
|
185
|
+
"pathParams": [
|
|
186
|
+
{
|
|
187
|
+
"name": "swiss_backup_id",
|
|
188
|
+
"field": "path_swiss_backup_id"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"queryParams": [],
|
|
192
|
+
"optionalQueryCollectionName": null,
|
|
193
|
+
"bodyFields": [],
|
|
194
|
+
"optionalBodyCollectionName": null,
|
|
195
|
+
"bodyFieldName": null
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"Slots": {
|
|
199
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots": {
|
|
200
|
+
"method": "GET",
|
|
201
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots",
|
|
202
|
+
"pagination": "none",
|
|
203
|
+
"pathParams": [
|
|
204
|
+
{
|
|
205
|
+
"name": "swiss_backup_id",
|
|
206
|
+
"field": "path_swiss_backup_id"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"queryParams": [],
|
|
210
|
+
"optionalQueryCollectionName": null,
|
|
211
|
+
"bodyFields": [],
|
|
212
|
+
"optionalBodyCollectionName": null,
|
|
213
|
+
"bodyFieldName": null
|
|
214
|
+
},
|
|
215
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots": {
|
|
216
|
+
"method": "POST",
|
|
217
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots",
|
|
218
|
+
"pagination": "none",
|
|
219
|
+
"pathParams": [
|
|
220
|
+
{
|
|
221
|
+
"name": "swiss_backup_id",
|
|
222
|
+
"field": "path_swiss_backup_id"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"queryParams": [],
|
|
226
|
+
"optionalQueryCollectionName": null,
|
|
227
|
+
"bodyFields": [
|
|
228
|
+
{
|
|
229
|
+
"name": "connection_type",
|
|
230
|
+
"field": "body_connection_type"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "customer_name",
|
|
234
|
+
"field": "body_customer_name"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "email",
|
|
238
|
+
"field": "body_email"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "firstname",
|
|
242
|
+
"field": "body_firstname"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "lang",
|
|
246
|
+
"field": "body_lang"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "lastname",
|
|
250
|
+
"field": "body_lastname"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "size",
|
|
254
|
+
"field": "body_size"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "type",
|
|
258
|
+
"field": "body_type"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"optionalBodyCollectionName": "bodyParameters",
|
|
262
|
+
"bodyFieldName": null
|
|
263
|
+
},
|
|
264
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/disable": {
|
|
265
|
+
"method": "POST",
|
|
266
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/disable",
|
|
267
|
+
"pagination": "none",
|
|
268
|
+
"pathParams": [
|
|
269
|
+
{
|
|
270
|
+
"name": "swiss_backup_id",
|
|
271
|
+
"field": "path_swiss_backup_id"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "slot_id",
|
|
275
|
+
"field": "path_slot_id"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"queryParams": [],
|
|
279
|
+
"optionalQueryCollectionName": null,
|
|
280
|
+
"bodyFields": [],
|
|
281
|
+
"optionalBodyCollectionName": null,
|
|
282
|
+
"bodyFieldName": null
|
|
283
|
+
},
|
|
284
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/enable": {
|
|
285
|
+
"method": "POST",
|
|
286
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/enable",
|
|
287
|
+
"pagination": "none",
|
|
288
|
+
"pathParams": [
|
|
289
|
+
{
|
|
290
|
+
"name": "swiss_backup_id",
|
|
291
|
+
"field": "path_swiss_backup_id"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "slot_id",
|
|
295
|
+
"field": "path_slot_id"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"queryParams": [],
|
|
299
|
+
"optionalQueryCollectionName": null,
|
|
300
|
+
"bodyFields": [],
|
|
301
|
+
"optionalBodyCollectionName": null,
|
|
302
|
+
"bodyFieldName": null
|
|
303
|
+
},
|
|
304
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}": {
|
|
305
|
+
"method": "GET",
|
|
306
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots/{slot_id}",
|
|
307
|
+
"pagination": "none",
|
|
308
|
+
"pathParams": [
|
|
309
|
+
{
|
|
310
|
+
"name": "swiss_backup_id",
|
|
311
|
+
"field": "path_swiss_backup_id"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "slot_id",
|
|
315
|
+
"field": "path_slot_id"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"queryParams": [],
|
|
319
|
+
"optionalQueryCollectionName": null,
|
|
320
|
+
"bodyFields": [],
|
|
321
|
+
"optionalBodyCollectionName": null,
|
|
322
|
+
"bodyFieldName": null
|
|
323
|
+
},
|
|
324
|
+
"PUT /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}": {
|
|
325
|
+
"method": "PUT",
|
|
326
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots/{slot_id}",
|
|
327
|
+
"pagination": "none",
|
|
328
|
+
"pathParams": [
|
|
329
|
+
{
|
|
330
|
+
"name": "swiss_backup_id",
|
|
331
|
+
"field": "path_swiss_backup_id"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "slot_id",
|
|
335
|
+
"field": "path_slot_id"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"queryParams": [],
|
|
339
|
+
"optionalQueryCollectionName": null,
|
|
340
|
+
"bodyFields": [
|
|
341
|
+
{
|
|
342
|
+
"name": "activate_notifications",
|
|
343
|
+
"field": "body_activate_notifications"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "customer_name",
|
|
347
|
+
"field": "body_customer_name"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "email",
|
|
351
|
+
"field": "body_email"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "lang",
|
|
355
|
+
"field": "body_lang"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "send_mail",
|
|
359
|
+
"field": "body_send_mail"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "size",
|
|
363
|
+
"field": "body_size"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"optionalBodyCollectionName": "bodyParameters",
|
|
367
|
+
"bodyFieldName": null
|
|
368
|
+
},
|
|
369
|
+
"DELETE /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}": {
|
|
370
|
+
"method": "DELETE",
|
|
371
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots/{slot_id}",
|
|
372
|
+
"pagination": "none",
|
|
373
|
+
"pathParams": [
|
|
374
|
+
{
|
|
375
|
+
"name": "swiss_backup_id",
|
|
376
|
+
"field": "path_swiss_backup_id"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "slot_id",
|
|
380
|
+
"field": "path_slot_id"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"queryParams": [],
|
|
384
|
+
"optionalQueryCollectionName": null,
|
|
385
|
+
"bodyFields": [],
|
|
386
|
+
"optionalBodyCollectionName": null,
|
|
387
|
+
"bodyFieldName": null
|
|
388
|
+
},
|
|
389
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/rclone": {
|
|
390
|
+
"method": "GET",
|
|
391
|
+
"path": "/1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/rclone",
|
|
392
|
+
"pagination": "none",
|
|
393
|
+
"pathParams": [
|
|
394
|
+
{
|
|
395
|
+
"name": "swiss_backup_id",
|
|
396
|
+
"field": "path_swiss_backup_id"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "slot_id",
|
|
400
|
+
"field": "path_slot_id"
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"queryParams": [],
|
|
404
|
+
"optionalQueryCollectionName": null,
|
|
405
|
+
"bodyFields": [],
|
|
406
|
+
"optionalBodyCollectionName": null,
|
|
407
|
+
"bodyFieldName": null
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
class InfomaniakSwissBackup {
|
|
412
|
+
constructor() {
|
|
413
|
+
this.description = {
|
|
414
|
+
"displayName": "Infomaniak Swiss Backup",
|
|
415
|
+
"name": "infomaniakSwissBackup",
|
|
416
|
+
"icon": "file:../../icons/swiss-backup.svg",
|
|
417
|
+
"group": [
|
|
418
|
+
"output"
|
|
419
|
+
],
|
|
420
|
+
"version": 1,
|
|
421
|
+
"description": "Interact with Infomaniak Swiss Backup API",
|
|
422
|
+
"defaults": {
|
|
423
|
+
"name": "Infomaniak Swiss Backup"
|
|
424
|
+
},
|
|
425
|
+
"inputs": [
|
|
426
|
+
"main"
|
|
427
|
+
],
|
|
428
|
+
"outputs": [
|
|
429
|
+
"main"
|
|
430
|
+
],
|
|
431
|
+
"credentials": [
|
|
432
|
+
{
|
|
433
|
+
"name": "infomaniakOAuth2Api",
|
|
434
|
+
"required": true,
|
|
435
|
+
"displayOptions": {
|
|
436
|
+
"show": {
|
|
437
|
+
"authentication": [
|
|
438
|
+
"oauth2"
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "infomaniakApiKeyApi",
|
|
445
|
+
"required": true,
|
|
446
|
+
"displayOptions": {
|
|
447
|
+
"show": {
|
|
448
|
+
"authentication": [
|
|
449
|
+
"apiKey"
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"properties": [
|
|
456
|
+
{
|
|
457
|
+
"displayName": "Authentication",
|
|
458
|
+
"name": "authentication",
|
|
459
|
+
"type": "options",
|
|
460
|
+
"options": [
|
|
461
|
+
{
|
|
462
|
+
"name": "OAuth2",
|
|
463
|
+
"value": "oauth2"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "API Key",
|
|
467
|
+
"value": "apiKey"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"default": "oauth2"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"displayName": "Resource",
|
|
474
|
+
"name": "resource",
|
|
475
|
+
"type": "options",
|
|
476
|
+
"options": [
|
|
477
|
+
{
|
|
478
|
+
"name": "Administrator",
|
|
479
|
+
"value": "Administrator"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "Billing",
|
|
483
|
+
"value": "Billing"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "Passwords",
|
|
487
|
+
"value": "Passwords"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "Product Management",
|
|
491
|
+
"value": "Product management"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "Slots",
|
|
495
|
+
"value": "Slots"
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"default": "Administrator",
|
|
499
|
+
"required": true,
|
|
500
|
+
"noDataExpression": true
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"displayName": "Operation",
|
|
504
|
+
"name": "operation",
|
|
505
|
+
"type": "options",
|
|
506
|
+
"displayOptions": {
|
|
507
|
+
"show": {
|
|
508
|
+
"resource": [
|
|
509
|
+
"Administrator"
|
|
510
|
+
]
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"options": [
|
|
514
|
+
{
|
|
515
|
+
"name": "Create Administrator",
|
|
516
|
+
"value": "POST /1/swiss_backups/{swiss_backup_id}/admin"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"name": "Update Administrator",
|
|
520
|
+
"value": "PUT /1/swiss_backups/{swiss_backup_id}/admin"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"default": "POST /1/swiss_backups/{swiss_backup_id}/admin",
|
|
524
|
+
"noDataExpression": true
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"displayName": "Swiss Backup Id",
|
|
528
|
+
"name": "path_swiss_backup_id",
|
|
529
|
+
"type": "number",
|
|
530
|
+
"default": 0,
|
|
531
|
+
"displayOptions": {
|
|
532
|
+
"show": {
|
|
533
|
+
"resource": [
|
|
534
|
+
"Administrator"
|
|
535
|
+
],
|
|
536
|
+
"operation": [
|
|
537
|
+
"POST /1/swiss_backups/{swiss_backup_id}/admin"
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"required": true
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"displayName": "Email",
|
|
545
|
+
"name": "body_email",
|
|
546
|
+
"type": "string",
|
|
547
|
+
"default": "",
|
|
548
|
+
"displayOptions": {
|
|
549
|
+
"show": {
|
|
550
|
+
"resource": [
|
|
551
|
+
"Administrator"
|
|
552
|
+
],
|
|
553
|
+
"operation": [
|
|
554
|
+
"POST /1/swiss_backups/{swiss_backup_id}/admin"
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"required": true,
|
|
559
|
+
"description": "Email"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"displayName": "Swiss Backup Id",
|
|
563
|
+
"name": "path_swiss_backup_id",
|
|
564
|
+
"type": "number",
|
|
565
|
+
"default": 0,
|
|
566
|
+
"displayOptions": {
|
|
567
|
+
"show": {
|
|
568
|
+
"resource": [
|
|
569
|
+
"Administrator"
|
|
570
|
+
],
|
|
571
|
+
"operation": [
|
|
572
|
+
"PUT /1/swiss_backups/{swiss_backup_id}/admin"
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"required": true
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"displayName": "Email",
|
|
580
|
+
"name": "body_email",
|
|
581
|
+
"type": "string",
|
|
582
|
+
"default": "",
|
|
583
|
+
"displayOptions": {
|
|
584
|
+
"show": {
|
|
585
|
+
"resource": [
|
|
586
|
+
"Administrator"
|
|
587
|
+
],
|
|
588
|
+
"operation": [
|
|
589
|
+
"PUT /1/swiss_backups/{swiss_backup_id}/admin"
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"required": true,
|
|
594
|
+
"description": "Email"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"displayName": "Operation",
|
|
598
|
+
"name": "operation",
|
|
599
|
+
"type": "options",
|
|
600
|
+
"displayOptions": {
|
|
601
|
+
"show": {
|
|
602
|
+
"resource": [
|
|
603
|
+
"Billing"
|
|
604
|
+
]
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"options": [
|
|
608
|
+
{
|
|
609
|
+
"name": "List Prices And Discounts",
|
|
610
|
+
"value": "GET /1/swiss_backups/pricing"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "Calculate The Price",
|
|
614
|
+
"value": "GET /1/swiss_backups/calculate"
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
"default": "GET /1/swiss_backups/pricing",
|
|
618
|
+
"noDataExpression": true
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"displayName": "Additional Query Parameters",
|
|
622
|
+
"name": "queryParameters",
|
|
623
|
+
"type": "collection",
|
|
624
|
+
"placeholder": "Add Parameter",
|
|
625
|
+
"default": {},
|
|
626
|
+
"displayOptions": {
|
|
627
|
+
"show": {
|
|
628
|
+
"resource": [
|
|
629
|
+
"Billing"
|
|
630
|
+
],
|
|
631
|
+
"operation": [
|
|
632
|
+
"GET /1/swiss_backups/pricing"
|
|
633
|
+
]
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
"options": [
|
|
637
|
+
{
|
|
638
|
+
"displayName": "Account Id",
|
|
639
|
+
"name": "query_account_id",
|
|
640
|
+
"type": "number",
|
|
641
|
+
"default": 0,
|
|
642
|
+
"description": "The account identifier"
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"displayName": "Currency Id",
|
|
646
|
+
"name": "query_currency_id",
|
|
647
|
+
"type": "number",
|
|
648
|
+
"default": 0
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"displayName": "Swiss Backup Id",
|
|
652
|
+
"name": "query_swiss_backup_id",
|
|
653
|
+
"type": "number",
|
|
654
|
+
"default": 0
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"displayName": "With Renewal",
|
|
658
|
+
"name": "query_with_renewal",
|
|
659
|
+
"type": "boolean",
|
|
660
|
+
"default": false
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"displayName": "Size",
|
|
666
|
+
"name": "query_size",
|
|
667
|
+
"type": "number",
|
|
668
|
+
"default": 0,
|
|
669
|
+
"displayOptions": {
|
|
670
|
+
"show": {
|
|
671
|
+
"resource": [
|
|
672
|
+
"Billing"
|
|
673
|
+
],
|
|
674
|
+
"operation": [
|
|
675
|
+
"GET /1/swiss_backups/calculate"
|
|
676
|
+
]
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"required": true
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"displayName": "Additional Query Parameters",
|
|
683
|
+
"name": "queryParameters",
|
|
684
|
+
"type": "collection",
|
|
685
|
+
"placeholder": "Add Parameter",
|
|
686
|
+
"default": {},
|
|
687
|
+
"displayOptions": {
|
|
688
|
+
"show": {
|
|
689
|
+
"resource": [
|
|
690
|
+
"Billing"
|
|
691
|
+
],
|
|
692
|
+
"operation": [
|
|
693
|
+
"GET /1/swiss_backups/calculate"
|
|
694
|
+
]
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
"options": [
|
|
698
|
+
{
|
|
699
|
+
"displayName": "Currency Id",
|
|
700
|
+
"name": "query_currency_id",
|
|
701
|
+
"type": "number",
|
|
702
|
+
"default": 0
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"displayName": "Due At",
|
|
706
|
+
"name": "query_due_at",
|
|
707
|
+
"type": "string",
|
|
708
|
+
"default": ""
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"displayName": "Is Demo",
|
|
712
|
+
"name": "query_is_demo",
|
|
713
|
+
"type": "boolean",
|
|
714
|
+
"default": false
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"displayName": "Slot",
|
|
718
|
+
"name": "query_slot",
|
|
719
|
+
"type": "number",
|
|
720
|
+
"default": 0
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"displayName": "Slot Mobile",
|
|
724
|
+
"name": "query_slot_mobile",
|
|
725
|
+
"type": "number",
|
|
726
|
+
"default": 0
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"displayName": "Slot Server",
|
|
730
|
+
"name": "query_slot_server",
|
|
731
|
+
"type": "number",
|
|
732
|
+
"default": 0
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"displayName": "Slot Virtual",
|
|
736
|
+
"name": "query_slot_virtual",
|
|
737
|
+
"type": "number",
|
|
738
|
+
"default": 0
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"displayName": "Slot Workstation",
|
|
742
|
+
"name": "query_slot_workstation",
|
|
743
|
+
"type": "number",
|
|
744
|
+
"default": 0
|
|
745
|
+
}
|
|
746
|
+
]
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"displayName": "Operation",
|
|
750
|
+
"name": "operation",
|
|
751
|
+
"type": "options",
|
|
752
|
+
"displayOptions": {
|
|
753
|
+
"show": {
|
|
754
|
+
"resource": [
|
|
755
|
+
"Passwords"
|
|
756
|
+
]
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"options": [
|
|
760
|
+
{
|
|
761
|
+
"name": "Request Administrator Password",
|
|
762
|
+
"value": "POST /1/swiss_backups/{swiss_backup_id}/admin/request_password"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"name": "Request Slot Password",
|
|
766
|
+
"value": "POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/request_password"
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
"default": "POST /1/swiss_backups/{swiss_backup_id}/admin/request_password",
|
|
770
|
+
"noDataExpression": true
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"displayName": "Swiss Backup Id",
|
|
774
|
+
"name": "path_swiss_backup_id",
|
|
775
|
+
"type": "number",
|
|
776
|
+
"default": 0,
|
|
777
|
+
"displayOptions": {
|
|
778
|
+
"show": {
|
|
779
|
+
"resource": [
|
|
780
|
+
"Passwords"
|
|
781
|
+
],
|
|
782
|
+
"operation": [
|
|
783
|
+
"POST /1/swiss_backups/{swiss_backup_id}/admin/request_password"
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
"required": true,
|
|
788
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"displayName": "Swiss Backup Id",
|
|
792
|
+
"name": "path_swiss_backup_id",
|
|
793
|
+
"type": "number",
|
|
794
|
+
"default": 0,
|
|
795
|
+
"displayOptions": {
|
|
796
|
+
"show": {
|
|
797
|
+
"resource": [
|
|
798
|
+
"Passwords"
|
|
799
|
+
],
|
|
800
|
+
"operation": [
|
|
801
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/request_password"
|
|
802
|
+
]
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
"required": true,
|
|
806
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"displayName": "Slot Id",
|
|
810
|
+
"name": "path_slot_id",
|
|
811
|
+
"type": "number",
|
|
812
|
+
"default": 0,
|
|
813
|
+
"displayOptions": {
|
|
814
|
+
"show": {
|
|
815
|
+
"resource": [
|
|
816
|
+
"Passwords"
|
|
817
|
+
],
|
|
818
|
+
"operation": [
|
|
819
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/request_password"
|
|
820
|
+
]
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
"required": true,
|
|
824
|
+
"description": "Unique identifier of the Slot to request."
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"displayName": "Operation",
|
|
828
|
+
"name": "operation",
|
|
829
|
+
"type": "options",
|
|
830
|
+
"displayOptions": {
|
|
831
|
+
"show": {
|
|
832
|
+
"resource": [
|
|
833
|
+
"Product management"
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"options": [
|
|
838
|
+
{
|
|
839
|
+
"name": "List All Swiss Backups",
|
|
840
|
+
"value": "GET /1/swiss_backups"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"name": "Swiss Backup Information",
|
|
844
|
+
"value": "GET /1/swiss_backups/{swiss_backup_id}"
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"name": "Update A Swiss Backup",
|
|
848
|
+
"value": "PUT /1/swiss_backups/{swiss_backup_id}"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"name": "Acronis Information",
|
|
852
|
+
"value": "GET /1/swiss_backups/{swiss_backup_id}/acronis_informations"
|
|
853
|
+
}
|
|
854
|
+
],
|
|
855
|
+
"default": "GET /1/swiss_backups",
|
|
856
|
+
"noDataExpression": true
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"displayName": "Account Id",
|
|
860
|
+
"name": "query_account_id",
|
|
861
|
+
"type": "number",
|
|
862
|
+
"default": 0,
|
|
863
|
+
"displayOptions": {
|
|
864
|
+
"show": {
|
|
865
|
+
"resource": [
|
|
866
|
+
"Product management"
|
|
867
|
+
],
|
|
868
|
+
"operation": [
|
|
869
|
+
"GET /1/swiss_backups"
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"required": true,
|
|
874
|
+
"description": "The account identifier"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"displayName": "Additional Query Parameters",
|
|
878
|
+
"name": "queryParameters",
|
|
879
|
+
"type": "collection",
|
|
880
|
+
"placeholder": "Add Parameter",
|
|
881
|
+
"default": {},
|
|
882
|
+
"displayOptions": {
|
|
883
|
+
"show": {
|
|
884
|
+
"resource": [
|
|
885
|
+
"Product management"
|
|
886
|
+
],
|
|
887
|
+
"operation": [
|
|
888
|
+
"GET /1/swiss_backups"
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"options": [
|
|
893
|
+
{
|
|
894
|
+
"displayName": "Return",
|
|
895
|
+
"name": "query_return",
|
|
896
|
+
"type": "options",
|
|
897
|
+
"default": "",
|
|
898
|
+
"description": "*Optional* : If you pass this parameter with the value `total`, then the response will be the number of items in the collection, instead of the items themselves.<br />\nPart of the `total` capacity\n",
|
|
899
|
+
"options": [
|
|
900
|
+
{
|
|
901
|
+
"name": "total",
|
|
902
|
+
"value": "total"
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"displayName": "Limit",
|
|
908
|
+
"name": "query_limit",
|
|
909
|
+
"type": "number",
|
|
910
|
+
"default": 0,
|
|
911
|
+
"description": "*Optional parameter* that define the number of items to return<br />\nPart of the `offset` capacity\n"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"displayName": "Skip",
|
|
915
|
+
"name": "query_skip",
|
|
916
|
+
"type": "number",
|
|
917
|
+
"default": 0,
|
|
918
|
+
"description": "*Optional parameter* that define the index of the first item to return (0 = first item)<br />\nPart of the `offset` capacity\n"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"displayName": "Page",
|
|
922
|
+
"name": "query_page",
|
|
923
|
+
"type": "number",
|
|
924
|
+
"default": 0,
|
|
925
|
+
"description": "*Optional parameter* that define the page number<br />\nPart of the `pagination` capacity\n"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"displayName": "Per Page",
|
|
929
|
+
"name": "query_per_page",
|
|
930
|
+
"type": "number",
|
|
931
|
+
"default": 0,
|
|
932
|
+
"description": "*Optional parameter* that define the number of items per page<br />\nPart of the `pagination` capacity\n"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"displayName": "Order By",
|
|
936
|
+
"name": "query_order_by",
|
|
937
|
+
"type": "string",
|
|
938
|
+
"default": "",
|
|
939
|
+
"description": "*Optional parameter* that define the field used for sorting<br />\nPart of the `sort` capacity\n"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"displayName": "Order",
|
|
943
|
+
"name": "query_order",
|
|
944
|
+
"type": "options",
|
|
945
|
+
"default": "",
|
|
946
|
+
"description": "*Optional parameter* that define the default sort order<br />\nPart of the `sort` capacity\n",
|
|
947
|
+
"options": [
|
|
948
|
+
{
|
|
949
|
+
"name": "asc",
|
|
950
|
+
"value": "asc"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"name": "desc",
|
|
954
|
+
"value": "desc"
|
|
955
|
+
}
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"displayName": "Order For",
|
|
960
|
+
"name": "query_order_for",
|
|
961
|
+
"type": "json",
|
|
962
|
+
"default": {},
|
|
963
|
+
"description": "*Optional parameter* that define the sorting order for a field<br />\nBy default **order** is used<br />\nPart of the `sort` capacity\n"
|
|
964
|
+
}
|
|
965
|
+
]
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"displayName": "Swiss Backup Id",
|
|
969
|
+
"name": "path_swiss_backup_id",
|
|
970
|
+
"type": "number",
|
|
971
|
+
"default": 0,
|
|
972
|
+
"displayOptions": {
|
|
973
|
+
"show": {
|
|
974
|
+
"resource": [
|
|
975
|
+
"Product management"
|
|
976
|
+
],
|
|
977
|
+
"operation": [
|
|
978
|
+
"GET /1/swiss_backups/{swiss_backup_id}"
|
|
979
|
+
]
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"required": true,
|
|
983
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
"displayName": "Swiss Backup Id",
|
|
987
|
+
"name": "path_swiss_backup_id",
|
|
988
|
+
"type": "number",
|
|
989
|
+
"default": 0,
|
|
990
|
+
"displayOptions": {
|
|
991
|
+
"show": {
|
|
992
|
+
"resource": [
|
|
993
|
+
"Product management"
|
|
994
|
+
],
|
|
995
|
+
"operation": [
|
|
996
|
+
"PUT /1/swiss_backups/{swiss_backup_id}"
|
|
997
|
+
]
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
"required": true,
|
|
1001
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"displayName": "Account Id",
|
|
1005
|
+
"name": "query_account_id",
|
|
1006
|
+
"type": "number",
|
|
1007
|
+
"default": 0,
|
|
1008
|
+
"displayOptions": {
|
|
1009
|
+
"show": {
|
|
1010
|
+
"resource": [
|
|
1011
|
+
"Product management"
|
|
1012
|
+
],
|
|
1013
|
+
"operation": [
|
|
1014
|
+
"PUT /1/swiss_backups/{swiss_backup_id}"
|
|
1015
|
+
]
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"required": true,
|
|
1019
|
+
"description": "Unique identifier of the `account`"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"displayName": "Additional Body Fields",
|
|
1023
|
+
"name": "bodyParameters",
|
|
1024
|
+
"type": "collection",
|
|
1025
|
+
"placeholder": "Add Field",
|
|
1026
|
+
"default": {},
|
|
1027
|
+
"displayOptions": {
|
|
1028
|
+
"show": {
|
|
1029
|
+
"resource": [
|
|
1030
|
+
"Product management"
|
|
1031
|
+
],
|
|
1032
|
+
"operation": [
|
|
1033
|
+
"PUT /1/swiss_backups/{swiss_backup_id}"
|
|
1034
|
+
]
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
"options": [
|
|
1038
|
+
{
|
|
1039
|
+
"displayName": "Periodicity",
|
|
1040
|
+
"name": "body_periodicity",
|
|
1041
|
+
"type": "options",
|
|
1042
|
+
"default": "",
|
|
1043
|
+
"description": "Commitment period (in years)",
|
|
1044
|
+
"options": [
|
|
1045
|
+
{
|
|
1046
|
+
"name": "0",
|
|
1047
|
+
"value": "0"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"name": "1",
|
|
1051
|
+
"value": "1"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"name": "2",
|
|
1055
|
+
"value": "2"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"name": "3",
|
|
1059
|
+
"value": "3"
|
|
1060
|
+
}
|
|
1061
|
+
]
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"displayName": "Storage Reserved Acronis",
|
|
1065
|
+
"name": "body_storage_reserved_acronis",
|
|
1066
|
+
"type": "number",
|
|
1067
|
+
"default": 0,
|
|
1068
|
+
"description": "Allocated storage size for Acronis (Bytes)"
|
|
1069
|
+
}
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"displayName": "Swiss Backup Id",
|
|
1074
|
+
"name": "path_swiss_backup_id",
|
|
1075
|
+
"type": "number",
|
|
1076
|
+
"default": 0,
|
|
1077
|
+
"displayOptions": {
|
|
1078
|
+
"show": {
|
|
1079
|
+
"resource": [
|
|
1080
|
+
"Product management"
|
|
1081
|
+
],
|
|
1082
|
+
"operation": [
|
|
1083
|
+
"GET /1/swiss_backups/{swiss_backup_id}/acronis_informations"
|
|
1084
|
+
]
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"required": true,
|
|
1088
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"displayName": "Operation",
|
|
1092
|
+
"name": "operation",
|
|
1093
|
+
"type": "options",
|
|
1094
|
+
"displayOptions": {
|
|
1095
|
+
"show": {
|
|
1096
|
+
"resource": [
|
|
1097
|
+
"Slots"
|
|
1098
|
+
]
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"options": [
|
|
1102
|
+
{
|
|
1103
|
+
"name": "List All Slots",
|
|
1104
|
+
"value": "GET /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "Create",
|
|
1108
|
+
"value": "POST /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"name": "Disable",
|
|
1112
|
+
"value": "POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/disable"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "Enable",
|
|
1116
|
+
"value": "POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/enable"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"name": "Slot Information",
|
|
1120
|
+
"value": "GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"name": "Update",
|
|
1124
|
+
"value": "PUT /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "Delete",
|
|
1128
|
+
"value": "DELETE /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "RClone Details",
|
|
1132
|
+
"value": "GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/rclone"
|
|
1133
|
+
}
|
|
1134
|
+
],
|
|
1135
|
+
"default": "GET /1/swiss_backups/{swiss_backup_id}/slots",
|
|
1136
|
+
"noDataExpression": true
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"displayName": "Swiss Backup Id",
|
|
1140
|
+
"name": "path_swiss_backup_id",
|
|
1141
|
+
"type": "number",
|
|
1142
|
+
"default": 0,
|
|
1143
|
+
"displayOptions": {
|
|
1144
|
+
"show": {
|
|
1145
|
+
"resource": [
|
|
1146
|
+
"Slots"
|
|
1147
|
+
],
|
|
1148
|
+
"operation": [
|
|
1149
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1150
|
+
]
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"required": true,
|
|
1154
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"displayName": "Swiss Backup Id",
|
|
1158
|
+
"name": "path_swiss_backup_id",
|
|
1159
|
+
"type": "number",
|
|
1160
|
+
"default": 0,
|
|
1161
|
+
"displayOptions": {
|
|
1162
|
+
"show": {
|
|
1163
|
+
"resource": [
|
|
1164
|
+
"Slots"
|
|
1165
|
+
],
|
|
1166
|
+
"operation": [
|
|
1167
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1168
|
+
]
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
"required": true,
|
|
1172
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"displayName": "Customer Name",
|
|
1176
|
+
"name": "body_customer_name",
|
|
1177
|
+
"type": "string",
|
|
1178
|
+
"default": "",
|
|
1179
|
+
"displayOptions": {
|
|
1180
|
+
"show": {
|
|
1181
|
+
"resource": [
|
|
1182
|
+
"Slots"
|
|
1183
|
+
],
|
|
1184
|
+
"operation": [
|
|
1185
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1186
|
+
]
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
"required": true,
|
|
1190
|
+
"description": "Customer name of the resource `{name}`"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"displayName": "Email",
|
|
1194
|
+
"name": "body_email",
|
|
1195
|
+
"type": "string",
|
|
1196
|
+
"default": "",
|
|
1197
|
+
"displayOptions": {
|
|
1198
|
+
"show": {
|
|
1199
|
+
"resource": [
|
|
1200
|
+
"Slots"
|
|
1201
|
+
],
|
|
1202
|
+
"operation": [
|
|
1203
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1204
|
+
]
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
"required": true,
|
|
1208
|
+
"description": "Email"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"displayName": "Size",
|
|
1212
|
+
"name": "body_size",
|
|
1213
|
+
"type": "number",
|
|
1214
|
+
"default": 0,
|
|
1215
|
+
"displayOptions": {
|
|
1216
|
+
"show": {
|
|
1217
|
+
"resource": [
|
|
1218
|
+
"Slots"
|
|
1219
|
+
],
|
|
1220
|
+
"operation": [
|
|
1221
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1222
|
+
]
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"required": true,
|
|
1226
|
+
"description": "Total storage size of the Swiss Backup product (Bytes)"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"displayName": "Type",
|
|
1230
|
+
"name": "body_type",
|
|
1231
|
+
"type": "options",
|
|
1232
|
+
"default": "",
|
|
1233
|
+
"displayOptions": {
|
|
1234
|
+
"show": {
|
|
1235
|
+
"resource": [
|
|
1236
|
+
"Slots"
|
|
1237
|
+
],
|
|
1238
|
+
"operation": [
|
|
1239
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1240
|
+
]
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
"required": true,
|
|
1244
|
+
"description": "Type of the resource `{name}`",
|
|
1245
|
+
"options": [
|
|
1246
|
+
{
|
|
1247
|
+
"name": "acronis",
|
|
1248
|
+
"value": "acronis"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "linux",
|
|
1252
|
+
"value": "linux"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "mobile",
|
|
1256
|
+
"value": "mobile"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"name": "office",
|
|
1260
|
+
"value": "office"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"name": "other",
|
|
1264
|
+
"value": "other"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "qnap",
|
|
1268
|
+
"value": "qnap"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"name": "server",
|
|
1272
|
+
"value": "server"
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"name": "synology",
|
|
1276
|
+
"value": "synology"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "virtual",
|
|
1280
|
+
"value": "virtual"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "workstation",
|
|
1284
|
+
"value": "workstation"
|
|
1285
|
+
}
|
|
1286
|
+
]
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"displayName": "Additional Body Fields",
|
|
1290
|
+
"name": "bodyParameters",
|
|
1291
|
+
"type": "collection",
|
|
1292
|
+
"placeholder": "Add Field",
|
|
1293
|
+
"default": {},
|
|
1294
|
+
"displayOptions": {
|
|
1295
|
+
"show": {
|
|
1296
|
+
"resource": [
|
|
1297
|
+
"Slots"
|
|
1298
|
+
],
|
|
1299
|
+
"operation": [
|
|
1300
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots"
|
|
1301
|
+
]
|
|
1302
|
+
}
|
|
1303
|
+
},
|
|
1304
|
+
"options": [
|
|
1305
|
+
{
|
|
1306
|
+
"displayName": "Connection Type",
|
|
1307
|
+
"name": "body_connection_type",
|
|
1308
|
+
"type": "options",
|
|
1309
|
+
"default": "",
|
|
1310
|
+
"description": "Slot connection type (Swift, S3, FTP)",
|
|
1311
|
+
"options": [
|
|
1312
|
+
{
|
|
1313
|
+
"name": "ftp",
|
|
1314
|
+
"value": "ftp"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "s3",
|
|
1318
|
+
"value": "s3"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"name": "swift",
|
|
1322
|
+
"value": "swift"
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"displayName": "Firstname",
|
|
1328
|
+
"name": "body_firstname",
|
|
1329
|
+
"type": "string",
|
|
1330
|
+
"default": ""
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"displayName": "Lang",
|
|
1334
|
+
"name": "body_lang",
|
|
1335
|
+
"type": "number",
|
|
1336
|
+
"default": 0,
|
|
1337
|
+
"description": "Language identifier (1 = fr / 2 = en / 3 = de / 4 = it / 5 = es)"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"displayName": "Lastname",
|
|
1341
|
+
"name": "body_lastname",
|
|
1342
|
+
"type": "string",
|
|
1343
|
+
"default": ""
|
|
1344
|
+
}
|
|
1345
|
+
]
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"displayName": "Swiss Backup Id",
|
|
1349
|
+
"name": "path_swiss_backup_id",
|
|
1350
|
+
"type": "number",
|
|
1351
|
+
"default": 0,
|
|
1352
|
+
"displayOptions": {
|
|
1353
|
+
"show": {
|
|
1354
|
+
"resource": [
|
|
1355
|
+
"Slots"
|
|
1356
|
+
],
|
|
1357
|
+
"operation": [
|
|
1358
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/disable"
|
|
1359
|
+
]
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
"required": true,
|
|
1363
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"displayName": "Slot Id",
|
|
1367
|
+
"name": "path_slot_id",
|
|
1368
|
+
"type": "number",
|
|
1369
|
+
"default": 0,
|
|
1370
|
+
"displayOptions": {
|
|
1371
|
+
"show": {
|
|
1372
|
+
"resource": [
|
|
1373
|
+
"Slots"
|
|
1374
|
+
],
|
|
1375
|
+
"operation": [
|
|
1376
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/disable"
|
|
1377
|
+
]
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
"required": true,
|
|
1381
|
+
"description": "Unique identifier of the Slot to request."
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"displayName": "Swiss Backup Id",
|
|
1385
|
+
"name": "path_swiss_backup_id",
|
|
1386
|
+
"type": "number",
|
|
1387
|
+
"default": 0,
|
|
1388
|
+
"displayOptions": {
|
|
1389
|
+
"show": {
|
|
1390
|
+
"resource": [
|
|
1391
|
+
"Slots"
|
|
1392
|
+
],
|
|
1393
|
+
"operation": [
|
|
1394
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/enable"
|
|
1395
|
+
]
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
"required": true,
|
|
1399
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"displayName": "Slot Id",
|
|
1403
|
+
"name": "path_slot_id",
|
|
1404
|
+
"type": "number",
|
|
1405
|
+
"default": 0,
|
|
1406
|
+
"displayOptions": {
|
|
1407
|
+
"show": {
|
|
1408
|
+
"resource": [
|
|
1409
|
+
"Slots"
|
|
1410
|
+
],
|
|
1411
|
+
"operation": [
|
|
1412
|
+
"POST /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/enable"
|
|
1413
|
+
]
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
"required": true,
|
|
1417
|
+
"description": "Unique identifier of the Slot to request."
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"displayName": "Swiss Backup Id",
|
|
1421
|
+
"name": "path_swiss_backup_id",
|
|
1422
|
+
"type": "number",
|
|
1423
|
+
"default": 0,
|
|
1424
|
+
"displayOptions": {
|
|
1425
|
+
"show": {
|
|
1426
|
+
"resource": [
|
|
1427
|
+
"Slots"
|
|
1428
|
+
],
|
|
1429
|
+
"operation": [
|
|
1430
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1431
|
+
]
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
"required": true,
|
|
1435
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"displayName": "Slot Id",
|
|
1439
|
+
"name": "path_slot_id",
|
|
1440
|
+
"type": "number",
|
|
1441
|
+
"default": 0,
|
|
1442
|
+
"displayOptions": {
|
|
1443
|
+
"show": {
|
|
1444
|
+
"resource": [
|
|
1445
|
+
"Slots"
|
|
1446
|
+
],
|
|
1447
|
+
"operation": [
|
|
1448
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1449
|
+
]
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
"required": true,
|
|
1453
|
+
"description": "Unique identifier of the Slot to request."
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"displayName": "Swiss Backup Id",
|
|
1457
|
+
"name": "path_swiss_backup_id",
|
|
1458
|
+
"type": "number",
|
|
1459
|
+
"default": 0,
|
|
1460
|
+
"displayOptions": {
|
|
1461
|
+
"show": {
|
|
1462
|
+
"resource": [
|
|
1463
|
+
"Slots"
|
|
1464
|
+
],
|
|
1465
|
+
"operation": [
|
|
1466
|
+
"PUT /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1467
|
+
]
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
"required": true,
|
|
1471
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"displayName": "Slot Id",
|
|
1475
|
+
"name": "path_slot_id",
|
|
1476
|
+
"type": "number",
|
|
1477
|
+
"default": 0,
|
|
1478
|
+
"displayOptions": {
|
|
1479
|
+
"show": {
|
|
1480
|
+
"resource": [
|
|
1481
|
+
"Slots"
|
|
1482
|
+
],
|
|
1483
|
+
"operation": [
|
|
1484
|
+
"PUT /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1485
|
+
]
|
|
1486
|
+
}
|
|
1487
|
+
},
|
|
1488
|
+
"required": true,
|
|
1489
|
+
"description": "Unique identifier of the Slot to request."
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"displayName": "Additional Body Fields",
|
|
1493
|
+
"name": "bodyParameters",
|
|
1494
|
+
"type": "collection",
|
|
1495
|
+
"placeholder": "Add Field",
|
|
1496
|
+
"default": {},
|
|
1497
|
+
"displayOptions": {
|
|
1498
|
+
"show": {
|
|
1499
|
+
"resource": [
|
|
1500
|
+
"Slots"
|
|
1501
|
+
],
|
|
1502
|
+
"operation": [
|
|
1503
|
+
"PUT /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1504
|
+
]
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
"options": [
|
|
1508
|
+
{
|
|
1509
|
+
"displayName": "Activate Notifications",
|
|
1510
|
+
"name": "body_activate_notifications",
|
|
1511
|
+
"type": "boolean",
|
|
1512
|
+
"default": false,
|
|
1513
|
+
"description": "True if the user wants to receive Acronis notifications"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"displayName": "Customer Name",
|
|
1517
|
+
"name": "body_customer_name",
|
|
1518
|
+
"type": "string",
|
|
1519
|
+
"default": "",
|
|
1520
|
+
"description": "Customer name of the resource `{name}`"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"displayName": "Email",
|
|
1524
|
+
"name": "body_email",
|
|
1525
|
+
"type": "string",
|
|
1526
|
+
"default": "",
|
|
1527
|
+
"description": "Email"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"displayName": "Lang",
|
|
1531
|
+
"name": "body_lang",
|
|
1532
|
+
"type": "number",
|
|
1533
|
+
"default": 0,
|
|
1534
|
+
"description": "Language identifier (1 = fr / 2 = en / 3 = de / 4 = it / 5 = es)"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"displayName": "Send Mail",
|
|
1538
|
+
"name": "body_send_mail",
|
|
1539
|
+
"type": "boolean",
|
|
1540
|
+
"default": false
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"displayName": "Size",
|
|
1544
|
+
"name": "body_size",
|
|
1545
|
+
"type": "number",
|
|
1546
|
+
"default": 0,
|
|
1547
|
+
"description": "Total storage size of the Swiss Backup product (Bytes)"
|
|
1548
|
+
}
|
|
1549
|
+
]
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"displayName": "Swiss Backup Id",
|
|
1553
|
+
"name": "path_swiss_backup_id",
|
|
1554
|
+
"type": "number",
|
|
1555
|
+
"default": 0,
|
|
1556
|
+
"displayOptions": {
|
|
1557
|
+
"show": {
|
|
1558
|
+
"resource": [
|
|
1559
|
+
"Slots"
|
|
1560
|
+
],
|
|
1561
|
+
"operation": [
|
|
1562
|
+
"DELETE /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1563
|
+
]
|
|
1564
|
+
}
|
|
1565
|
+
},
|
|
1566
|
+
"required": true,
|
|
1567
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"displayName": "Slot Id",
|
|
1571
|
+
"name": "path_slot_id",
|
|
1572
|
+
"type": "number",
|
|
1573
|
+
"default": 0,
|
|
1574
|
+
"displayOptions": {
|
|
1575
|
+
"show": {
|
|
1576
|
+
"resource": [
|
|
1577
|
+
"Slots"
|
|
1578
|
+
],
|
|
1579
|
+
"operation": [
|
|
1580
|
+
"DELETE /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}"
|
|
1581
|
+
]
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
"required": true,
|
|
1585
|
+
"description": "Unique identifier of the Slot to request."
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"displayName": "Swiss Backup Id",
|
|
1589
|
+
"name": "path_swiss_backup_id",
|
|
1590
|
+
"type": "number",
|
|
1591
|
+
"default": 0,
|
|
1592
|
+
"displayOptions": {
|
|
1593
|
+
"show": {
|
|
1594
|
+
"resource": [
|
|
1595
|
+
"Slots"
|
|
1596
|
+
],
|
|
1597
|
+
"operation": [
|
|
1598
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/rclone"
|
|
1599
|
+
]
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
"required": true,
|
|
1603
|
+
"description": "Unique identifier of the Swiss Backup to request."
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"displayName": "Slot Id",
|
|
1607
|
+
"name": "path_slot_id",
|
|
1608
|
+
"type": "number",
|
|
1609
|
+
"default": 0,
|
|
1610
|
+
"displayOptions": {
|
|
1611
|
+
"show": {
|
|
1612
|
+
"resource": [
|
|
1613
|
+
"Slots"
|
|
1614
|
+
],
|
|
1615
|
+
"operation": [
|
|
1616
|
+
"GET /1/swiss_backups/{swiss_backup_id}/slots/{slot_id}/rclone"
|
|
1617
|
+
]
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
"required": true,
|
|
1621
|
+
"description": "Unique identifier of the Slot to request."
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"displayName": "Return All",
|
|
1625
|
+
"name": "returnAll",
|
|
1626
|
+
"type": "boolean",
|
|
1627
|
+
"default": true,
|
|
1628
|
+
"displayOptions": {
|
|
1629
|
+
"show": {
|
|
1630
|
+
"resource": [
|
|
1631
|
+
"Product management"
|
|
1632
|
+
],
|
|
1633
|
+
"operation": [
|
|
1634
|
+
"GET /1/swiss_backups"
|
|
1635
|
+
]
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"displayName": "Limit",
|
|
1641
|
+
"name": "limit",
|
|
1642
|
+
"type": "number",
|
|
1643
|
+
"default": 50,
|
|
1644
|
+
"typeOptions": {
|
|
1645
|
+
"minValue": 1,
|
|
1646
|
+
"maxValue": 500
|
|
1647
|
+
},
|
|
1648
|
+
"displayOptions": {
|
|
1649
|
+
"show": {
|
|
1650
|
+
"resource": [
|
|
1651
|
+
"Product management"
|
|
1652
|
+
],
|
|
1653
|
+
"operation": [
|
|
1654
|
+
"GET /1/swiss_backups"
|
|
1655
|
+
],
|
|
1656
|
+
"returnAll": [
|
|
1657
|
+
false
|
|
1658
|
+
]
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"displayName": "Return Full Response",
|
|
1664
|
+
"name": "returnFullResponse",
|
|
1665
|
+
"type": "boolean",
|
|
1666
|
+
"default": false
|
|
1667
|
+
}
|
|
1668
|
+
]
|
|
1669
|
+
};
|
|
1670
|
+
}
|
|
1671
|
+
async execute() {
|
|
1672
|
+
var _a, _b, _c;
|
|
1673
|
+
const items = this.getInputData();
|
|
1674
|
+
const returnData = [];
|
|
1675
|
+
for (let i = 0; i < items.length; i++) {
|
|
1676
|
+
const resource = this.getNodeParameter('resource', i);
|
|
1677
|
+
const operation = this.getNodeParameter('operation', i);
|
|
1678
|
+
const operationDef = (_a = operations[resource]) === null || _a === void 0 ? void 0 : _a[operation];
|
|
1679
|
+
if (!operationDef) {
|
|
1680
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Operation not found');
|
|
1681
|
+
}
|
|
1682
|
+
const method = operationDef.method;
|
|
1683
|
+
const pathParams = {};
|
|
1684
|
+
for (const param of operationDef.pathParams) {
|
|
1685
|
+
pathParams[param.name] = this.getNodeParameter(param.field, i);
|
|
1686
|
+
}
|
|
1687
|
+
const qs = {};
|
|
1688
|
+
for (const param of operationDef.queryParams) {
|
|
1689
|
+
qs[param.name] = this.getNodeParameter(param.field, i);
|
|
1690
|
+
}
|
|
1691
|
+
if (operationDef.optionalQueryCollectionName) {
|
|
1692
|
+
const optionalQuery = this.getNodeParameter(operationDef.optionalQueryCollectionName, i) || {};
|
|
1693
|
+
for (const [key, value] of Object.entries(optionalQuery)) {
|
|
1694
|
+
const rawKey = String(key).replace(/^query_/, '');
|
|
1695
|
+
qs[rawKey] = value;
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
const body = {};
|
|
1699
|
+
if (operationDef.bodyFieldName) {
|
|
1700
|
+
Object.assign(body, this.getNodeParameter(operationDef.bodyFieldName, i));
|
|
1701
|
+
}
|
|
1702
|
+
else {
|
|
1703
|
+
for (const field of operationDef.bodyFields) {
|
|
1704
|
+
body[field.name] = this.getNodeParameter(field.field, i);
|
|
1705
|
+
}
|
|
1706
|
+
if (operationDef.optionalBodyCollectionName) {
|
|
1707
|
+
const optionalBody = this.getNodeParameter(operationDef.optionalBodyCollectionName, i) || {};
|
|
1708
|
+
for (const [key, value] of Object.entries(optionalBody)) {
|
|
1709
|
+
const rawKey = String(key).replace(/^body_/, '');
|
|
1710
|
+
body[rawKey] = value;
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
const endpoint = operationDef.path.replace(/\{([^}]+)\}/g, (_, key) => {
|
|
1715
|
+
const value = pathParams[key];
|
|
1716
|
+
if (value === undefined || value === null || value === '') {
|
|
1717
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Missing required path parameter: ' + key);
|
|
1718
|
+
}
|
|
1719
|
+
return encodeURIComponent(String(value));
|
|
1720
|
+
});
|
|
1721
|
+
const returnFullResponse = this.getNodeParameter('returnFullResponse', i);
|
|
1722
|
+
const hasPagination = true;
|
|
1723
|
+
const returnAll = hasPagination ? this.getNodeParameter('returnAll', i, true) : false;
|
|
1724
|
+
const limit = hasPagination ? this.getNodeParameter('limit', i, 50) : 50;
|
|
1725
|
+
try {
|
|
1726
|
+
let response;
|
|
1727
|
+
if (returnAll && operationDef.pagination === 'limit-skip' && method === 'GET') {
|
|
1728
|
+
response = await GenericFunctions_1.infomaniakApiRequestAllItems.call(this, method, endpoint, body, qs);
|
|
1729
|
+
}
|
|
1730
|
+
else if (returnAll && operationDef.pagination === 'page-per-page' && method === 'GET') {
|
|
1731
|
+
response = await GenericFunctions_1.infomaniakApiRequestAllPages.call(this, method, endpoint, body, qs);
|
|
1732
|
+
}
|
|
1733
|
+
else {
|
|
1734
|
+
if (!returnAll && operationDef.pagination === 'limit-skip' && method === 'GET') {
|
|
1735
|
+
qs.limit = limit;
|
|
1736
|
+
qs.skip = (_b = qs.skip) !== null && _b !== void 0 ? _b : 0;
|
|
1737
|
+
}
|
|
1738
|
+
if (!returnAll && operationDef.pagination === 'page-per-page' && method === 'GET') {
|
|
1739
|
+
qs.per_page = limit;
|
|
1740
|
+
qs.page = (_c = qs.page) !== null && _c !== void 0 ? _c : 1;
|
|
1741
|
+
}
|
|
1742
|
+
response = await GenericFunctions_1.infomaniakApiRequest.call(this, method, endpoint, body, qs);
|
|
1743
|
+
}
|
|
1744
|
+
const output = Array.isArray(response)
|
|
1745
|
+
? response
|
|
1746
|
+
: returnFullResponse
|
|
1747
|
+
? [response]
|
|
1748
|
+
: (0, GenericFunctions_1.getInfomaniakItems)(response);
|
|
1749
|
+
for (const item of output) {
|
|
1750
|
+
returnData.push({ json: item });
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
catch (error) {
|
|
1754
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
return [returnData];
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
exports.InfomaniakSwissBackup = InfomaniakSwissBackup;
|
|
1761
|
+
//# sourceMappingURL=InfomaniakSwissBackup.node.js.map
|