hostinger-api-mcp 0.0.13 → 0.0.14
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/README.md +174 -116
- package/package.json +1 -1
- package/server.js +425 -512
- package/server.ts +425 -512
- package/types.d.ts +273 -280
package/server.js
CHANGED
|
@@ -51,7 +51,7 @@ const TOOLS = [
|
|
|
51
51
|
},
|
|
52
52
|
"coupons": {
|
|
53
53
|
"type": "array",
|
|
54
|
-
"description": "
|
|
54
|
+
"description": "Discount coupon codes"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"required": [
|
|
@@ -72,15 +72,8 @@ const TOOLS = [
|
|
|
72
72
|
"path": "/api/billing/v1/payment-methods/{paymentMethodId}",
|
|
73
73
|
"inputSchema": {
|
|
74
74
|
"type": "object",
|
|
75
|
-
"properties": {
|
|
76
|
-
|
|
77
|
-
"type": "integer",
|
|
78
|
-
"description": "Payment method ID"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"required": [
|
|
82
|
-
"paymentMethodId"
|
|
83
|
-
]
|
|
75
|
+
"properties": {},
|
|
76
|
+
"required": []
|
|
84
77
|
},
|
|
85
78
|
"security": [
|
|
86
79
|
{
|
|
@@ -95,15 +88,8 @@ const TOOLS = [
|
|
|
95
88
|
"path": "/api/billing/v1/payment-methods/{paymentMethodId}",
|
|
96
89
|
"inputSchema": {
|
|
97
90
|
"type": "object",
|
|
98
|
-
"properties": {
|
|
99
|
-
|
|
100
|
-
"type": "integer",
|
|
101
|
-
"description": "Payment method ID"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"required": [
|
|
105
|
-
"paymentMethodId"
|
|
106
|
-
]
|
|
91
|
+
"properties": {},
|
|
92
|
+
"required": []
|
|
107
93
|
},
|
|
108
94
|
"security": [
|
|
109
95
|
{
|
|
@@ -134,15 +120,8 @@ const TOOLS = [
|
|
|
134
120
|
"path": "/api/billing/v1/subscriptions/{subscriptionId}",
|
|
135
121
|
"inputSchema": {
|
|
136
122
|
"type": "object",
|
|
137
|
-
"properties": {
|
|
138
|
-
|
|
139
|
-
"type": "string",
|
|
140
|
-
"description": "Subscription ID"
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"required": [
|
|
144
|
-
"subscriptionId"
|
|
145
|
-
]
|
|
123
|
+
"properties": {},
|
|
124
|
+
"required": []
|
|
146
125
|
},
|
|
147
126
|
"security": [
|
|
148
127
|
{
|
|
@@ -173,20 +152,8 @@ const TOOLS = [
|
|
|
173
152
|
"path": "/api/dns/v1/snapshots/{domain}/{snapshotId}",
|
|
174
153
|
"inputSchema": {
|
|
175
154
|
"type": "object",
|
|
176
|
-
"properties": {
|
|
177
|
-
|
|
178
|
-
"type": "string",
|
|
179
|
-
"description": "Domain name"
|
|
180
|
-
},
|
|
181
|
-
"snapshotId": {
|
|
182
|
-
"type": "integer",
|
|
183
|
-
"description": "Snapshot ID"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"required": [
|
|
187
|
-
"domain",
|
|
188
|
-
"snapshotId"
|
|
189
|
-
]
|
|
155
|
+
"properties": {},
|
|
156
|
+
"required": []
|
|
190
157
|
},
|
|
191
158
|
"security": [
|
|
192
159
|
{
|
|
@@ -201,15 +168,8 @@ const TOOLS = [
|
|
|
201
168
|
"path": "/api/dns/v1/snapshots/{domain}",
|
|
202
169
|
"inputSchema": {
|
|
203
170
|
"type": "object",
|
|
204
|
-
"properties": {
|
|
205
|
-
|
|
206
|
-
"type": "string",
|
|
207
|
-
"description": "Domain name"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"required": [
|
|
211
|
-
"domain"
|
|
212
|
-
]
|
|
171
|
+
"properties": {},
|
|
172
|
+
"required": []
|
|
213
173
|
},
|
|
214
174
|
"security": [
|
|
215
175
|
{
|
|
@@ -224,20 +184,8 @@ const TOOLS = [
|
|
|
224
184
|
"path": "/api/dns/v1/snapshots/{domain}/{snapshotId}/restore",
|
|
225
185
|
"inputSchema": {
|
|
226
186
|
"type": "object",
|
|
227
|
-
"properties": {
|
|
228
|
-
|
|
229
|
-
"type": "string",
|
|
230
|
-
"description": "Domain name"
|
|
231
|
-
},
|
|
232
|
-
"snapshotId": {
|
|
233
|
-
"type": "integer",
|
|
234
|
-
"description": "Snapshot ID"
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"required": [
|
|
238
|
-
"domain",
|
|
239
|
-
"snapshotId"
|
|
240
|
-
]
|
|
187
|
+
"properties": {},
|
|
188
|
+
"required": []
|
|
241
189
|
},
|
|
242
190
|
"security": [
|
|
243
191
|
{
|
|
@@ -252,15 +200,8 @@ const TOOLS = [
|
|
|
252
200
|
"path": "/api/dns/v1/zones/{domain}",
|
|
253
201
|
"inputSchema": {
|
|
254
202
|
"type": "object",
|
|
255
|
-
"properties": {
|
|
256
|
-
|
|
257
|
-
"type": "string",
|
|
258
|
-
"description": "Domain name"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"required": [
|
|
262
|
-
"domain"
|
|
263
|
-
]
|
|
203
|
+
"properties": {},
|
|
204
|
+
"required": []
|
|
264
205
|
},
|
|
265
206
|
"security": [
|
|
266
207
|
{
|
|
@@ -276,10 +217,6 @@ const TOOLS = [
|
|
|
276
217
|
"inputSchema": {
|
|
277
218
|
"type": "object",
|
|
278
219
|
"properties": {
|
|
279
|
-
"domain": {
|
|
280
|
-
"type": "string",
|
|
281
|
-
"description": "Domain name"
|
|
282
|
-
},
|
|
283
220
|
"overwrite": {
|
|
284
221
|
"type": "boolean",
|
|
285
222
|
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created."
|
|
@@ -290,7 +227,6 @@ const TOOLS = [
|
|
|
290
227
|
}
|
|
291
228
|
},
|
|
292
229
|
"required": [
|
|
293
|
-
"domain",
|
|
294
230
|
"zone"
|
|
295
231
|
]
|
|
296
232
|
},
|
|
@@ -307,15 +243,8 @@ const TOOLS = [
|
|
|
307
243
|
"path": "/api/dns/v1/zones/{domain}",
|
|
308
244
|
"inputSchema": {
|
|
309
245
|
"type": "object",
|
|
310
|
-
"properties": {
|
|
311
|
-
|
|
312
|
-
"type": "string",
|
|
313
|
-
"description": "Domain name"
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
"required": [
|
|
317
|
-
"domain"
|
|
318
|
-
]
|
|
246
|
+
"properties": {},
|
|
247
|
+
"required": []
|
|
319
248
|
},
|
|
320
249
|
"security": [
|
|
321
250
|
{
|
|
@@ -331,10 +260,6 @@ const TOOLS = [
|
|
|
331
260
|
"inputSchema": {
|
|
332
261
|
"type": "object",
|
|
333
262
|
"properties": {
|
|
334
|
-
"domain": {
|
|
335
|
-
"type": "string",
|
|
336
|
-
"description": "Domain name"
|
|
337
|
-
},
|
|
338
263
|
"sync": {
|
|
339
264
|
"type": "boolean",
|
|
340
265
|
"description": "Determines if operation should be run synchronously"
|
|
@@ -348,9 +273,7 @@ const TOOLS = [
|
|
|
348
273
|
"description": "Specifies which record types to not reset"
|
|
349
274
|
}
|
|
350
275
|
},
|
|
351
|
-
"required": [
|
|
352
|
-
"domain"
|
|
353
|
-
]
|
|
276
|
+
"required": []
|
|
354
277
|
},
|
|
355
278
|
"security": [
|
|
356
279
|
{
|
|
@@ -366,10 +289,6 @@ const TOOLS = [
|
|
|
366
289
|
"inputSchema": {
|
|
367
290
|
"type": "object",
|
|
368
291
|
"properties": {
|
|
369
|
-
"domain": {
|
|
370
|
-
"type": "string",
|
|
371
|
-
"description": "Domain name"
|
|
372
|
-
},
|
|
373
292
|
"overwrite": {
|
|
374
293
|
"type": "boolean",
|
|
375
294
|
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created."
|
|
@@ -380,7 +299,6 @@ const TOOLS = [
|
|
|
380
299
|
}
|
|
381
300
|
},
|
|
382
301
|
"required": [
|
|
383
|
-
"domain",
|
|
384
302
|
"zone"
|
|
385
303
|
]
|
|
386
304
|
},
|
|
@@ -400,15 +318,15 @@ const TOOLS = [
|
|
|
400
318
|
"properties": {
|
|
401
319
|
"domain": {
|
|
402
320
|
"type": "string",
|
|
403
|
-
"description": "
|
|
321
|
+
"description": "Domain name without TLD"
|
|
404
322
|
},
|
|
405
323
|
"tlds": {
|
|
406
324
|
"type": "array",
|
|
407
|
-
"description": "
|
|
325
|
+
"description": "TLDs to check (without trailing dot)"
|
|
408
326
|
},
|
|
409
327
|
"with_alternatives": {
|
|
410
328
|
"type": "boolean",
|
|
411
|
-
"description": "
|
|
329
|
+
"description": "Should response include alternatives"
|
|
412
330
|
}
|
|
413
331
|
},
|
|
414
332
|
"required": [
|
|
@@ -423,10 +341,10 @@ const TOOLS = [
|
|
|
423
341
|
]
|
|
424
342
|
},
|
|
425
343
|
{
|
|
426
|
-
"name": "
|
|
427
|
-
"description": "This endpoint retrieves
|
|
344
|
+
"name": "domains_getForwardingDataV1",
|
|
345
|
+
"description": "This endpoint retrieves domain forwarding data.",
|
|
428
346
|
"method": "GET",
|
|
429
|
-
"path": "/api/domains/v1/
|
|
347
|
+
"path": "/api/domains/v1/forwarding/{domain}",
|
|
430
348
|
"inputSchema": {
|
|
431
349
|
"type": "object",
|
|
432
350
|
"properties": {},
|
|
@@ -439,10 +357,10 @@ const TOOLS = [
|
|
|
439
357
|
]
|
|
440
358
|
},
|
|
441
359
|
{
|
|
442
|
-
"name": "
|
|
443
|
-
"description": "This endpoint
|
|
444
|
-
"method": "
|
|
445
|
-
"path": "/api/
|
|
360
|
+
"name": "domains_deleteForwardingDataV1",
|
|
361
|
+
"description": "This endpoint deletes domain forwarding data.",
|
|
362
|
+
"method": "DELETE",
|
|
363
|
+
"path": "/api/domains/v1/forwarding/{domain}",
|
|
446
364
|
"inputSchema": {
|
|
447
365
|
"type": "object",
|
|
448
366
|
"properties": {},
|
|
@@ -455,25 +373,34 @@ const TOOLS = [
|
|
|
455
373
|
]
|
|
456
374
|
},
|
|
457
375
|
{
|
|
458
|
-
"name": "
|
|
459
|
-
"description": "This endpoint
|
|
376
|
+
"name": "domains_createForwardingDataV1",
|
|
377
|
+
"description": "This endpoint creates domain forwarding data.",
|
|
460
378
|
"method": "POST",
|
|
461
|
-
"path": "/api/
|
|
379
|
+
"path": "/api/domains/v1/forwarding",
|
|
462
380
|
"inputSchema": {
|
|
463
381
|
"type": "object",
|
|
464
382
|
"properties": {
|
|
465
|
-
"
|
|
466
|
-
"type": "
|
|
467
|
-
"description": "
|
|
383
|
+
"domain": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"description": "Domain name"
|
|
468
386
|
},
|
|
469
|
-
"
|
|
470
|
-
"type": "
|
|
471
|
-
"description": "
|
|
387
|
+
"redirect_type": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"description": "Redirect type",
|
|
390
|
+
"enum": [
|
|
391
|
+
"301",
|
|
392
|
+
"302"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"redirect_url": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"description": "URL to forward domain to"
|
|
472
398
|
}
|
|
473
399
|
},
|
|
474
400
|
"required": [
|
|
475
|
-
"
|
|
476
|
-
"
|
|
401
|
+
"domain",
|
|
402
|
+
"redirect_type",
|
|
403
|
+
"redirect_url"
|
|
477
404
|
]
|
|
478
405
|
},
|
|
479
406
|
"security": [
|
|
@@ -483,25 +410,105 @@ const TOOLS = [
|
|
|
483
410
|
]
|
|
484
411
|
},
|
|
485
412
|
{
|
|
486
|
-
"name": "
|
|
487
|
-
"description": "This endpoint
|
|
413
|
+
"name": "domains_enableDomainLockV1",
|
|
414
|
+
"description": "This endpoint enables domain lock for the domain. When domain lock is enabled, \nthe domain cannot be transferred to another registrar without first disabling the lock.",
|
|
415
|
+
"method": "PUT",
|
|
416
|
+
"path": "/api/domains/v1/portfolio/{domain}/domain-lock",
|
|
417
|
+
"inputSchema": {
|
|
418
|
+
"type": "object",
|
|
419
|
+
"properties": {},
|
|
420
|
+
"required": []
|
|
421
|
+
},
|
|
422
|
+
"security": [
|
|
423
|
+
{
|
|
424
|
+
"apiToken": []
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "domains_disableDomainLockV1",
|
|
430
|
+
"description": "This endpoint disables domain lock for the domain. Domain lock needs to be disabled \nbefore transferring the domain to another registrar.",
|
|
431
|
+
"method": "DELETE",
|
|
432
|
+
"path": "/api/domains/v1/portfolio/{domain}/domain-lock",
|
|
433
|
+
"inputSchema": {
|
|
434
|
+
"type": "object",
|
|
435
|
+
"properties": {},
|
|
436
|
+
"required": []
|
|
437
|
+
},
|
|
438
|
+
"security": [
|
|
439
|
+
{
|
|
440
|
+
"apiToken": []
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"name": "domains_getDomainV1",
|
|
446
|
+
"description": "This endpoint retrieves details for specified domain.",
|
|
447
|
+
"method": "GET",
|
|
448
|
+
"path": "/api/domains/v1/portfolio/{domain}",
|
|
449
|
+
"inputSchema": {
|
|
450
|
+
"type": "object",
|
|
451
|
+
"properties": {},
|
|
452
|
+
"required": []
|
|
453
|
+
},
|
|
454
|
+
"security": [
|
|
455
|
+
{
|
|
456
|
+
"apiToken": []
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "domains_getDomainListV1",
|
|
462
|
+
"description": "This endpoint retrieves a list of all domains associated with your account.",
|
|
463
|
+
"method": "GET",
|
|
464
|
+
"path": "/api/domains/v1/portfolio",
|
|
465
|
+
"inputSchema": {
|
|
466
|
+
"type": "object",
|
|
467
|
+
"properties": {},
|
|
468
|
+
"required": []
|
|
469
|
+
},
|
|
470
|
+
"security": [
|
|
471
|
+
{
|
|
472
|
+
"apiToken": []
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "domains_purchaseNewDomainV1",
|
|
478
|
+
"description": "This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status.\n\nIf no payment method is provided, default will be used.\n\nIf no WHOIS information is provided, default for that TLD will be used. \nBefore making request make sure that WHOIS information for TLD exists.\n\nSome TLDs require `additional_details` to be provided and will be validated before making purchase.",
|
|
488
479
|
"method": "POST",
|
|
489
|
-
"path": "/api/
|
|
480
|
+
"path": "/api/domains/v1/portfolio",
|
|
490
481
|
"inputSchema": {
|
|
491
482
|
"type": "object",
|
|
492
483
|
"properties": {
|
|
493
|
-
"
|
|
494
|
-
"type": "
|
|
495
|
-
"description": "
|
|
484
|
+
"domain": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"description": "Domain name"
|
|
496
487
|
},
|
|
497
|
-
"
|
|
488
|
+
"item_id": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "Catalog price item ID"
|
|
491
|
+
},
|
|
492
|
+
"payment_method_id": {
|
|
498
493
|
"type": "integer",
|
|
499
|
-
"description": "
|
|
494
|
+
"description": "Payment method ID"
|
|
495
|
+
},
|
|
496
|
+
"domain_contacts": {
|
|
497
|
+
"type": "object",
|
|
498
|
+
"description": "Domain contact information"
|
|
499
|
+
},
|
|
500
|
+
"additional_details": {
|
|
501
|
+
"type": "object",
|
|
502
|
+
"description": "Additional registration data, possible values depends on TLD"
|
|
503
|
+
},
|
|
504
|
+
"coupons": {
|
|
505
|
+
"type": "array",
|
|
506
|
+
"description": "Discount coupon codes"
|
|
500
507
|
}
|
|
501
508
|
},
|
|
502
509
|
"required": [
|
|
503
|
-
"
|
|
504
|
-
"
|
|
510
|
+
"domain",
|
|
511
|
+
"item_id"
|
|
505
512
|
]
|
|
506
513
|
},
|
|
507
514
|
"security": [
|
|
@@ -511,20 +518,65 @@ const TOOLS = [
|
|
|
511
518
|
]
|
|
512
519
|
},
|
|
513
520
|
{
|
|
514
|
-
"name": "
|
|
515
|
-
"description": "This endpoint
|
|
516
|
-
"method": "
|
|
517
|
-
"path": "/api/
|
|
521
|
+
"name": "domains_enablePrivacyProtectionV1",
|
|
522
|
+
"description": "This endpoint enables privacy protection for the domain.\nWhen privacy protection is enabled, the domain owner's personal information is hidden from the public WHOIS database.",
|
|
523
|
+
"method": "PUT",
|
|
524
|
+
"path": "/api/domains/v1/portfolio/{domain}/privacy-protection",
|
|
525
|
+
"inputSchema": {
|
|
526
|
+
"type": "object",
|
|
527
|
+
"properties": {},
|
|
528
|
+
"required": []
|
|
529
|
+
},
|
|
530
|
+
"security": [
|
|
531
|
+
{
|
|
532
|
+
"apiToken": []
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "domains_disablePrivacyProtectionV1",
|
|
538
|
+
"description": "This endpoint disables privacy protection for the domain.\nWhen privacy protection is disabled, the domain owner's personal information is visible in the public WHOIS database.",
|
|
539
|
+
"method": "DELETE",
|
|
540
|
+
"path": "/api/domains/v1/portfolio/{domain}/privacy-protection",
|
|
541
|
+
"inputSchema": {
|
|
542
|
+
"type": "object",
|
|
543
|
+
"properties": {},
|
|
544
|
+
"required": []
|
|
545
|
+
},
|
|
546
|
+
"security": [
|
|
547
|
+
{
|
|
548
|
+
"apiToken": []
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "domains_updateNameserversV1",
|
|
554
|
+
"description": "This endpoint sets the nameservers for a specified domain.\n\nBe aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable. ",
|
|
555
|
+
"method": "PUT",
|
|
556
|
+
"path": "/api/domains/v1/portfolio/{domain}/nameservers",
|
|
518
557
|
"inputSchema": {
|
|
519
558
|
"type": "object",
|
|
520
559
|
"properties": {
|
|
521
|
-
"
|
|
522
|
-
"type": "
|
|
523
|
-
"description": "
|
|
560
|
+
"ns1": {
|
|
561
|
+
"type": "string",
|
|
562
|
+
"description": "First name server"
|
|
563
|
+
},
|
|
564
|
+
"ns2": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"description": "Second name server"
|
|
567
|
+
},
|
|
568
|
+
"ns3": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"description": "Third name server"
|
|
571
|
+
},
|
|
572
|
+
"ns4": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"description": "Fourth name server"
|
|
524
575
|
}
|
|
525
576
|
},
|
|
526
577
|
"required": [
|
|
527
|
-
"
|
|
578
|
+
"ns1",
|
|
579
|
+
"ns2"
|
|
528
580
|
]
|
|
529
581
|
},
|
|
530
582
|
"security": [
|
|
@@ -534,20 +586,91 @@ const TOOLS = [
|
|
|
534
586
|
]
|
|
535
587
|
},
|
|
536
588
|
{
|
|
537
|
-
"name": "
|
|
538
|
-
"description": "This endpoint
|
|
589
|
+
"name": "domains_getWHOISProfileV1",
|
|
590
|
+
"description": "This endpoint retrieves a WHOIS contact profile.",
|
|
591
|
+
"method": "GET",
|
|
592
|
+
"path": "/api/domains/v1/whois/{whoisId}",
|
|
593
|
+
"inputSchema": {
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {},
|
|
596
|
+
"required": []
|
|
597
|
+
},
|
|
598
|
+
"security": [
|
|
599
|
+
{
|
|
600
|
+
"apiToken": []
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "domains_deleteWHOISProfileV1",
|
|
606
|
+
"description": "This endpoint deletes WHOIS contact profile.",
|
|
539
607
|
"method": "DELETE",
|
|
540
|
-
"path": "/api/
|
|
608
|
+
"path": "/api/domains/v1/whois/{whoisId}",
|
|
609
|
+
"inputSchema": {
|
|
610
|
+
"type": "object",
|
|
611
|
+
"properties": {},
|
|
612
|
+
"required": []
|
|
613
|
+
},
|
|
614
|
+
"security": [
|
|
615
|
+
{
|
|
616
|
+
"apiToken": []
|
|
617
|
+
}
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "domains_getWHOISProfileListV1",
|
|
622
|
+
"description": "This endpoint retrieves a list of WHOIS contact profiles.",
|
|
623
|
+
"method": "GET",
|
|
624
|
+
"path": "/api/domains/v1/whois",
|
|
625
|
+
"inputSchema": {
|
|
626
|
+
"type": "object",
|
|
627
|
+
"properties": {},
|
|
628
|
+
"required": []
|
|
629
|
+
},
|
|
630
|
+
"security": [
|
|
631
|
+
{
|
|
632
|
+
"apiToken": []
|
|
633
|
+
}
|
|
634
|
+
]
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "domains_createWHOISProfileV1",
|
|
638
|
+
"description": "This endpoint creates WHOIS contact profile.",
|
|
639
|
+
"method": "POST",
|
|
640
|
+
"path": "/api/domains/v1/whois",
|
|
541
641
|
"inputSchema": {
|
|
542
642
|
"type": "object",
|
|
543
643
|
"properties": {
|
|
544
|
-
"
|
|
545
|
-
"type": "
|
|
546
|
-
"description": "
|
|
644
|
+
"tld": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"description": "TLD of the domain (without trailing dot)"
|
|
647
|
+
},
|
|
648
|
+
"country": {
|
|
649
|
+
"type": "string",
|
|
650
|
+
"description": "ISO 3166 2-letter country code"
|
|
651
|
+
},
|
|
652
|
+
"entity_type": {
|
|
653
|
+
"type": "string",
|
|
654
|
+
"description": "Legal entity type",
|
|
655
|
+
"enum": [
|
|
656
|
+
"individual",
|
|
657
|
+
"organization"
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
"tld_details": {
|
|
661
|
+
"type": "object",
|
|
662
|
+
"description": "TLD details"
|
|
663
|
+
},
|
|
664
|
+
"whois_details": {
|
|
665
|
+
"type": "object",
|
|
666
|
+
"description": "WHOIS details"
|
|
547
667
|
}
|
|
548
668
|
},
|
|
549
669
|
"required": [
|
|
550
|
-
"
|
|
670
|
+
"tld",
|
|
671
|
+
"entity_type",
|
|
672
|
+
"country",
|
|
673
|
+
"whois_details"
|
|
551
674
|
]
|
|
552
675
|
},
|
|
553
676
|
"security": [
|
|
@@ -556,6 +679,102 @@ const TOOLS = [
|
|
|
556
679
|
}
|
|
557
680
|
]
|
|
558
681
|
},
|
|
682
|
+
{
|
|
683
|
+
"name": "domains_getWHOISProfileUsageV1",
|
|
684
|
+
"description": "This endpoint retrieves a domain list where provided WHOIS contact profile is used.",
|
|
685
|
+
"method": "GET",
|
|
686
|
+
"path": "/api/domains/v1/whois/{whoisId}/usage",
|
|
687
|
+
"inputSchema": {
|
|
688
|
+
"type": "object",
|
|
689
|
+
"properties": {},
|
|
690
|
+
"required": []
|
|
691
|
+
},
|
|
692
|
+
"security": [
|
|
693
|
+
{
|
|
694
|
+
"apiToken": []
|
|
695
|
+
}
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"name": "VPS_getDataCentersListV1",
|
|
700
|
+
"description": "This endpoint retrieves a list of all data centers available.",
|
|
701
|
+
"method": "GET",
|
|
702
|
+
"path": "/api/vps/v1/data-centers",
|
|
703
|
+
"inputSchema": {
|
|
704
|
+
"type": "object",
|
|
705
|
+
"properties": {},
|
|
706
|
+
"required": []
|
|
707
|
+
},
|
|
708
|
+
"security": [
|
|
709
|
+
{
|
|
710
|
+
"apiToken": []
|
|
711
|
+
}
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "VPS_activateFirewallV1",
|
|
716
|
+
"description": "This endpoint activates a firewall for a specified virtual machine. \n\nOnly one firewall can be active for a virtual machine at a time.",
|
|
717
|
+
"method": "POST",
|
|
718
|
+
"path": "/api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId}",
|
|
719
|
+
"inputSchema": {
|
|
720
|
+
"type": "object",
|
|
721
|
+
"properties": {},
|
|
722
|
+
"required": []
|
|
723
|
+
},
|
|
724
|
+
"security": [
|
|
725
|
+
{
|
|
726
|
+
"apiToken": []
|
|
727
|
+
}
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "VPS_deactivateFirewallV1",
|
|
732
|
+
"description": "This endpoint deactivates a firewall for a specified virtual machine.",
|
|
733
|
+
"method": "POST",
|
|
734
|
+
"path": "/api/vps/v1/firewall/{firewallId}/deactivate/{virtualMachineId}",
|
|
735
|
+
"inputSchema": {
|
|
736
|
+
"type": "object",
|
|
737
|
+
"properties": {},
|
|
738
|
+
"required": []
|
|
739
|
+
},
|
|
740
|
+
"security": [
|
|
741
|
+
{
|
|
742
|
+
"apiToken": []
|
|
743
|
+
}
|
|
744
|
+
]
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "VPS_getFirewallV1",
|
|
748
|
+
"description": "This endpoint retrieves firewall by its ID and rules associated with it.",
|
|
749
|
+
"method": "GET",
|
|
750
|
+
"path": "/api/vps/v1/firewall/{firewallId}",
|
|
751
|
+
"inputSchema": {
|
|
752
|
+
"type": "object",
|
|
753
|
+
"properties": {},
|
|
754
|
+
"required": []
|
|
755
|
+
},
|
|
756
|
+
"security": [
|
|
757
|
+
{
|
|
758
|
+
"apiToken": []
|
|
759
|
+
}
|
|
760
|
+
]
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"name": "VPS_deleteFirewallV1",
|
|
764
|
+
"description": "This endpoint deletes a specified firewall. \n\nAny virtual machine that has this firewall activated will automatically have it deactivated.",
|
|
765
|
+
"method": "DELETE",
|
|
766
|
+
"path": "/api/vps/v1/firewall/{firewallId}",
|
|
767
|
+
"inputSchema": {
|
|
768
|
+
"type": "object",
|
|
769
|
+
"properties": {},
|
|
770
|
+
"required": []
|
|
771
|
+
},
|
|
772
|
+
"security": [
|
|
773
|
+
{
|
|
774
|
+
"apiToken": []
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
},
|
|
559
778
|
{
|
|
560
779
|
"name": "VPS_getFirewallListV1",
|
|
561
780
|
"description": "This endpoint retrieves a list of all firewalls available.",
|
|
@@ -563,12 +782,7 @@ const TOOLS = [
|
|
|
563
782
|
"path": "/api/vps/v1/firewall",
|
|
564
783
|
"inputSchema": {
|
|
565
784
|
"type": "object",
|
|
566
|
-
"properties": {
|
|
567
|
-
"page": {
|
|
568
|
-
"type": "integer",
|
|
569
|
-
"description": "Page number"
|
|
570
|
-
}
|
|
571
|
-
},
|
|
785
|
+
"properties": {},
|
|
572
786
|
"required": []
|
|
573
787
|
},
|
|
574
788
|
"security": [
|
|
@@ -608,14 +822,6 @@ const TOOLS = [
|
|
|
608
822
|
"inputSchema": {
|
|
609
823
|
"type": "object",
|
|
610
824
|
"properties": {
|
|
611
|
-
"firewallId": {
|
|
612
|
-
"type": "integer",
|
|
613
|
-
"description": "Firewall ID"
|
|
614
|
-
},
|
|
615
|
-
"ruleId": {
|
|
616
|
-
"type": "integer",
|
|
617
|
-
"description": "Firewall Rule ID"
|
|
618
|
-
},
|
|
619
825
|
"protocol": {
|
|
620
826
|
"type": "string",
|
|
621
827
|
"description": "protocol property",
|
|
@@ -653,8 +859,6 @@ const TOOLS = [
|
|
|
653
859
|
}
|
|
654
860
|
},
|
|
655
861
|
"required": [
|
|
656
|
-
"firewallId",
|
|
657
|
-
"ruleId",
|
|
658
862
|
"protocol",
|
|
659
863
|
"port",
|
|
660
864
|
"source",
|
|
@@ -674,20 +878,8 @@ const TOOLS = [
|
|
|
674
878
|
"path": "/api/vps/v1/firewall/{firewallId}/rules/{ruleId}",
|
|
675
879
|
"inputSchema": {
|
|
676
880
|
"type": "object",
|
|
677
|
-
"properties": {
|
|
678
|
-
|
|
679
|
-
"type": "integer",
|
|
680
|
-
"description": "Firewall ID"
|
|
681
|
-
},
|
|
682
|
-
"ruleId": {
|
|
683
|
-
"type": "integer",
|
|
684
|
-
"description": "Firewall Rule ID"
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
"required": [
|
|
688
|
-
"firewallId",
|
|
689
|
-
"ruleId"
|
|
690
|
-
]
|
|
881
|
+
"properties": {},
|
|
882
|
+
"required": []
|
|
691
883
|
},
|
|
692
884
|
"security": [
|
|
693
885
|
{
|
|
@@ -703,10 +895,6 @@ const TOOLS = [
|
|
|
703
895
|
"inputSchema": {
|
|
704
896
|
"type": "object",
|
|
705
897
|
"properties": {
|
|
706
|
-
"firewallId": {
|
|
707
|
-
"type": "integer",
|
|
708
|
-
"description": "Firewall ID"
|
|
709
|
-
},
|
|
710
898
|
"protocol": {
|
|
711
899
|
"type": "string",
|
|
712
900
|
"description": "protocol property",
|
|
@@ -744,7 +932,6 @@ const TOOLS = [
|
|
|
744
932
|
}
|
|
745
933
|
},
|
|
746
934
|
"required": [
|
|
747
|
-
"firewallId",
|
|
748
935
|
"protocol",
|
|
749
936
|
"port",
|
|
750
937
|
"source",
|
|
@@ -764,20 +951,8 @@ const TOOLS = [
|
|
|
764
951
|
"path": "/api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId}",
|
|
765
952
|
"inputSchema": {
|
|
766
953
|
"type": "object",
|
|
767
|
-
"properties": {
|
|
768
|
-
|
|
769
|
-
"type": "integer",
|
|
770
|
-
"description": "Firewall ID"
|
|
771
|
-
},
|
|
772
|
-
"virtualMachineId": {
|
|
773
|
-
"type": "integer",
|
|
774
|
-
"description": "Virtual Machine ID"
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
"required": [
|
|
778
|
-
"firewallId",
|
|
779
|
-
"virtualMachineId"
|
|
780
|
-
]
|
|
954
|
+
"properties": {},
|
|
955
|
+
"required": []
|
|
781
956
|
},
|
|
782
957
|
"security": [
|
|
783
958
|
{
|
|
@@ -792,15 +967,8 @@ const TOOLS = [
|
|
|
792
967
|
"path": "/api/vps/v1/post-install-scripts/{postInstallScriptId}",
|
|
793
968
|
"inputSchema": {
|
|
794
969
|
"type": "object",
|
|
795
|
-
"properties": {
|
|
796
|
-
|
|
797
|
-
"type": "integer",
|
|
798
|
-
"description": "Post-install script ID"
|
|
799
|
-
}
|
|
800
|
-
},
|
|
801
|
-
"required": [
|
|
802
|
-
"postInstallScriptId"
|
|
803
|
-
]
|
|
970
|
+
"properties": {},
|
|
971
|
+
"required": []
|
|
804
972
|
},
|
|
805
973
|
"security": [
|
|
806
974
|
{
|
|
@@ -816,10 +984,6 @@ const TOOLS = [
|
|
|
816
984
|
"inputSchema": {
|
|
817
985
|
"type": "object",
|
|
818
986
|
"properties": {
|
|
819
|
-
"postInstallScriptId": {
|
|
820
|
-
"type": "integer",
|
|
821
|
-
"description": "Post-install script ID"
|
|
822
|
-
},
|
|
823
987
|
"name": {
|
|
824
988
|
"type": "string",
|
|
825
989
|
"description": "Name of the script"
|
|
@@ -830,7 +994,6 @@ const TOOLS = [
|
|
|
830
994
|
}
|
|
831
995
|
},
|
|
832
996
|
"required": [
|
|
833
|
-
"postInstallScriptId",
|
|
834
997
|
"name",
|
|
835
998
|
"content"
|
|
836
999
|
]
|
|
@@ -848,15 +1011,8 @@ const TOOLS = [
|
|
|
848
1011
|
"path": "/api/vps/v1/post-install-scripts/{postInstallScriptId}",
|
|
849
1012
|
"inputSchema": {
|
|
850
1013
|
"type": "object",
|
|
851
|
-
"properties": {
|
|
852
|
-
|
|
853
|
-
"type": "integer",
|
|
854
|
-
"description": "Post-install script ID"
|
|
855
|
-
}
|
|
856
|
-
},
|
|
857
|
-
"required": [
|
|
858
|
-
"postInstallScriptId"
|
|
859
|
-
]
|
|
1014
|
+
"properties": {},
|
|
1015
|
+
"required": []
|
|
860
1016
|
},
|
|
861
1017
|
"security": [
|
|
862
1018
|
{
|
|
@@ -871,12 +1027,7 @@ const TOOLS = [
|
|
|
871
1027
|
"path": "/api/vps/v1/post-install-scripts",
|
|
872
1028
|
"inputSchema": {
|
|
873
1029
|
"type": "object",
|
|
874
|
-
"properties": {
|
|
875
|
-
"page": {
|
|
876
|
-
"type": "integer",
|
|
877
|
-
"description": "Page number"
|
|
878
|
-
}
|
|
879
|
-
},
|
|
1030
|
+
"properties": {},
|
|
880
1031
|
"required": []
|
|
881
1032
|
},
|
|
882
1033
|
"security": [
|
|
@@ -921,17 +1072,12 @@ const TOOLS = [
|
|
|
921
1072
|
"inputSchema": {
|
|
922
1073
|
"type": "object",
|
|
923
1074
|
"properties": {
|
|
924
|
-
"virtualMachineId": {
|
|
925
|
-
"type": "integer",
|
|
926
|
-
"description": "Virtual Machine ID"
|
|
927
|
-
},
|
|
928
1075
|
"ids": {
|
|
929
1076
|
"type": "array",
|
|
930
1077
|
"description": "Public Key IDs to attach"
|
|
931
1078
|
}
|
|
932
1079
|
},
|
|
933
1080
|
"required": [
|
|
934
|
-
"virtualMachineId",
|
|
935
1081
|
"ids"
|
|
936
1082
|
]
|
|
937
1083
|
},
|
|
@@ -948,15 +1094,8 @@ const TOOLS = [
|
|
|
948
1094
|
"path": "/api/vps/v1/public-keys/{publicKeyId}",
|
|
949
1095
|
"inputSchema": {
|
|
950
1096
|
"type": "object",
|
|
951
|
-
"properties": {
|
|
952
|
-
|
|
953
|
-
"type": "integer",
|
|
954
|
-
"description": "Public Key ID"
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
|
-
"required": [
|
|
958
|
-
"publicKeyId"
|
|
959
|
-
]
|
|
1097
|
+
"properties": {},
|
|
1098
|
+
"required": []
|
|
960
1099
|
},
|
|
961
1100
|
"security": [
|
|
962
1101
|
{
|
|
@@ -971,12 +1110,7 @@ const TOOLS = [
|
|
|
971
1110
|
"path": "/api/vps/v1/public-keys",
|
|
972
1111
|
"inputSchema": {
|
|
973
1112
|
"type": "object",
|
|
974
|
-
"properties": {
|
|
975
|
-
"page": {
|
|
976
|
-
"type": "integer",
|
|
977
|
-
"description": "Page number"
|
|
978
|
-
}
|
|
979
|
-
},
|
|
1113
|
+
"properties": {},
|
|
980
1114
|
"required": []
|
|
981
1115
|
},
|
|
982
1116
|
"security": [
|
|
@@ -1020,15 +1154,8 @@ const TOOLS = [
|
|
|
1020
1154
|
"path": "/api/vps/v1/templates/{templateId}",
|
|
1021
1155
|
"inputSchema": {
|
|
1022
1156
|
"type": "object",
|
|
1023
|
-
"properties": {
|
|
1024
|
-
|
|
1025
|
-
"type": "integer",
|
|
1026
|
-
"description": "Template ID"
|
|
1027
|
-
}
|
|
1028
|
-
},
|
|
1029
|
-
"required": [
|
|
1030
|
-
"templateId"
|
|
1031
|
-
]
|
|
1157
|
+
"properties": {},
|
|
1158
|
+
"required": []
|
|
1032
1159
|
},
|
|
1033
1160
|
"security": [
|
|
1034
1161
|
{
|
|
@@ -1059,20 +1186,8 @@ const TOOLS = [
|
|
|
1059
1186
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId}",
|
|
1060
1187
|
"inputSchema": {
|
|
1061
1188
|
"type": "object",
|
|
1062
|
-
"properties": {
|
|
1063
|
-
|
|
1064
|
-
"type": "integer",
|
|
1065
|
-
"description": "Virtual Machine ID"
|
|
1066
|
-
},
|
|
1067
|
-
"actionId": {
|
|
1068
|
-
"type": "integer",
|
|
1069
|
-
"description": "Action ID"
|
|
1070
|
-
}
|
|
1071
|
-
},
|
|
1072
|
-
"required": [
|
|
1073
|
-
"virtualMachineId",
|
|
1074
|
-
"actionId"
|
|
1075
|
-
]
|
|
1189
|
+
"properties": {},
|
|
1190
|
+
"required": []
|
|
1076
1191
|
},
|
|
1077
1192
|
"security": [
|
|
1078
1193
|
{
|
|
@@ -1087,19 +1202,8 @@ const TOOLS = [
|
|
|
1087
1202
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/actions",
|
|
1088
1203
|
"inputSchema": {
|
|
1089
1204
|
"type": "object",
|
|
1090
|
-
"properties": {
|
|
1091
|
-
|
|
1092
|
-
"type": "integer",
|
|
1093
|
-
"description": "Virtual Machine ID"
|
|
1094
|
-
},
|
|
1095
|
-
"page": {
|
|
1096
|
-
"type": "integer",
|
|
1097
|
-
"description": "Page number"
|
|
1098
|
-
}
|
|
1099
|
-
},
|
|
1100
|
-
"required": [
|
|
1101
|
-
"virtualMachineId"
|
|
1102
|
-
]
|
|
1205
|
+
"properties": {},
|
|
1206
|
+
"required": []
|
|
1103
1207
|
},
|
|
1104
1208
|
"security": [
|
|
1105
1209
|
{
|
|
@@ -1114,19 +1218,8 @@ const TOOLS = [
|
|
|
1114
1218
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/public-keys",
|
|
1115
1219
|
"inputSchema": {
|
|
1116
1220
|
"type": "object",
|
|
1117
|
-
"properties": {
|
|
1118
|
-
|
|
1119
|
-
"type": "integer",
|
|
1120
|
-
"description": "Virtual Machine ID"
|
|
1121
|
-
},
|
|
1122
|
-
"page": {
|
|
1123
|
-
"type": "integer",
|
|
1124
|
-
"description": "Page number"
|
|
1125
|
-
}
|
|
1126
|
-
},
|
|
1127
|
-
"required": [
|
|
1128
|
-
"virtualMachineId"
|
|
1129
|
-
]
|
|
1221
|
+
"properties": {},
|
|
1222
|
+
"required": []
|
|
1130
1223
|
},
|
|
1131
1224
|
"security": [
|
|
1132
1225
|
{
|
|
@@ -1141,20 +1234,8 @@ const TOOLS = [
|
|
|
1141
1234
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}",
|
|
1142
1235
|
"inputSchema": {
|
|
1143
1236
|
"type": "object",
|
|
1144
|
-
"properties": {
|
|
1145
|
-
|
|
1146
|
-
"type": "integer",
|
|
1147
|
-
"description": "Virtual Machine ID"
|
|
1148
|
-
},
|
|
1149
|
-
"backupId": {
|
|
1150
|
-
"type": "integer",
|
|
1151
|
-
"description": "Backup ID"
|
|
1152
|
-
}
|
|
1153
|
-
},
|
|
1154
|
-
"required": [
|
|
1155
|
-
"virtualMachineId",
|
|
1156
|
-
"backupId"
|
|
1157
|
-
]
|
|
1237
|
+
"properties": {},
|
|
1238
|
+
"required": []
|
|
1158
1239
|
},
|
|
1159
1240
|
"security": [
|
|
1160
1241
|
{
|
|
@@ -1169,19 +1250,8 @@ const TOOLS = [
|
|
|
1169
1250
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/backups",
|
|
1170
1251
|
"inputSchema": {
|
|
1171
1252
|
"type": "object",
|
|
1172
|
-
"properties": {
|
|
1173
|
-
|
|
1174
|
-
"type": "integer",
|
|
1175
|
-
"description": "Page number"
|
|
1176
|
-
},
|
|
1177
|
-
"virtualMachineId": {
|
|
1178
|
-
"type": "integer",
|
|
1179
|
-
"description": "Virtual Machine ID"
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
"required": [
|
|
1183
|
-
"virtualMachineId"
|
|
1184
|
-
]
|
|
1253
|
+
"properties": {},
|
|
1254
|
+
"required": []
|
|
1185
1255
|
},
|
|
1186
1256
|
"security": [
|
|
1187
1257
|
{
|
|
@@ -1196,20 +1266,8 @@ const TOOLS = [
|
|
|
1196
1266
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore",
|
|
1197
1267
|
"inputSchema": {
|
|
1198
1268
|
"type": "object",
|
|
1199
|
-
"properties": {
|
|
1200
|
-
|
|
1201
|
-
"type": "integer",
|
|
1202
|
-
"description": "Virtual Machine ID"
|
|
1203
|
-
},
|
|
1204
|
-
"backupId": {
|
|
1205
|
-
"type": "integer",
|
|
1206
|
-
"description": "Backup ID"
|
|
1207
|
-
}
|
|
1208
|
-
},
|
|
1209
|
-
"required": [
|
|
1210
|
-
"virtualMachineId",
|
|
1211
|
-
"backupId"
|
|
1212
|
-
]
|
|
1269
|
+
"properties": {},
|
|
1270
|
+
"required": []
|
|
1213
1271
|
},
|
|
1214
1272
|
"security": [
|
|
1215
1273
|
{
|
|
@@ -1225,17 +1283,12 @@ const TOOLS = [
|
|
|
1225
1283
|
"inputSchema": {
|
|
1226
1284
|
"type": "object",
|
|
1227
1285
|
"properties": {
|
|
1228
|
-
"virtualMachineId": {
|
|
1229
|
-
"type": "integer",
|
|
1230
|
-
"description": "Virtual Machine ID"
|
|
1231
|
-
},
|
|
1232
1286
|
"hostname": {
|
|
1233
1287
|
"type": "string",
|
|
1234
1288
|
"description": "hostname property"
|
|
1235
1289
|
}
|
|
1236
1290
|
},
|
|
1237
1291
|
"required": [
|
|
1238
|
-
"virtualMachineId",
|
|
1239
1292
|
"hostname"
|
|
1240
1293
|
]
|
|
1241
1294
|
},
|
|
@@ -1252,15 +1305,8 @@ const TOOLS = [
|
|
|
1252
1305
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/hostname",
|
|
1253
1306
|
"inputSchema": {
|
|
1254
1307
|
"type": "object",
|
|
1255
|
-
"properties": {
|
|
1256
|
-
|
|
1257
|
-
"type": "integer",
|
|
1258
|
-
"description": "Virtual Machine ID"
|
|
1259
|
-
}
|
|
1260
|
-
},
|
|
1261
|
-
"required": [
|
|
1262
|
-
"virtualMachineId"
|
|
1263
|
-
]
|
|
1308
|
+
"properties": {},
|
|
1309
|
+
"required": []
|
|
1264
1310
|
},
|
|
1265
1311
|
"security": [
|
|
1266
1312
|
{
|
|
@@ -1275,15 +1321,8 @@ const TOOLS = [
|
|
|
1275
1321
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}",
|
|
1276
1322
|
"inputSchema": {
|
|
1277
1323
|
"type": "object",
|
|
1278
|
-
"properties": {
|
|
1279
|
-
|
|
1280
|
-
"type": "integer",
|
|
1281
|
-
"description": "Virtual Machine ID"
|
|
1282
|
-
}
|
|
1283
|
-
},
|
|
1284
|
-
"required": [
|
|
1285
|
-
"virtualMachineId"
|
|
1286
|
-
]
|
|
1324
|
+
"properties": {},
|
|
1325
|
+
"required": []
|
|
1287
1326
|
},
|
|
1288
1327
|
"security": [
|
|
1289
1328
|
{
|
|
@@ -1314,15 +1353,8 @@ const TOOLS = [
|
|
|
1314
1353
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/monarx",
|
|
1315
1354
|
"inputSchema": {
|
|
1316
1355
|
"type": "object",
|
|
1317
|
-
"properties": {
|
|
1318
|
-
|
|
1319
|
-
"type": "integer",
|
|
1320
|
-
"description": "Virtual Machine ID"
|
|
1321
|
-
}
|
|
1322
|
-
},
|
|
1323
|
-
"required": [
|
|
1324
|
-
"virtualMachineId"
|
|
1325
|
-
]
|
|
1356
|
+
"properties": {},
|
|
1357
|
+
"required": []
|
|
1326
1358
|
},
|
|
1327
1359
|
"security": [
|
|
1328
1360
|
{
|
|
@@ -1337,15 +1369,8 @@ const TOOLS = [
|
|
|
1337
1369
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/monarx",
|
|
1338
1370
|
"inputSchema": {
|
|
1339
1371
|
"type": "object",
|
|
1340
|
-
"properties": {
|
|
1341
|
-
|
|
1342
|
-
"type": "integer",
|
|
1343
|
-
"description": "Virtual Machine ID"
|
|
1344
|
-
}
|
|
1345
|
-
},
|
|
1346
|
-
"required": [
|
|
1347
|
-
"virtualMachineId"
|
|
1348
|
-
]
|
|
1372
|
+
"properties": {},
|
|
1373
|
+
"required": []
|
|
1349
1374
|
},
|
|
1350
1375
|
"security": [
|
|
1351
1376
|
{
|
|
@@ -1360,15 +1385,8 @@ const TOOLS = [
|
|
|
1360
1385
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/monarx",
|
|
1361
1386
|
"inputSchema": {
|
|
1362
1387
|
"type": "object",
|
|
1363
|
-
"properties": {
|
|
1364
|
-
|
|
1365
|
-
"type": "integer",
|
|
1366
|
-
"description": "Virtual Machine ID"
|
|
1367
|
-
}
|
|
1368
|
-
},
|
|
1369
|
-
"required": [
|
|
1370
|
-
"virtualMachineId"
|
|
1371
|
-
]
|
|
1388
|
+
"properties": {},
|
|
1389
|
+
"required": []
|
|
1372
1390
|
},
|
|
1373
1391
|
"security": [
|
|
1374
1392
|
{
|
|
@@ -1384,10 +1402,6 @@ const TOOLS = [
|
|
|
1384
1402
|
"inputSchema": {
|
|
1385
1403
|
"type": "object",
|
|
1386
1404
|
"properties": {
|
|
1387
|
-
"virtualMachineId": {
|
|
1388
|
-
"type": "integer",
|
|
1389
|
-
"description": "Virtual Machine ID"
|
|
1390
|
-
},
|
|
1391
1405
|
"date_from": {
|
|
1392
1406
|
"type": "string",
|
|
1393
1407
|
"description": "the date-time notation as defined by RFC 3339, section 5.6"
|
|
@@ -1398,7 +1412,6 @@ const TOOLS = [
|
|
|
1398
1412
|
}
|
|
1399
1413
|
},
|
|
1400
1414
|
"required": [
|
|
1401
|
-
"virtualMachineId",
|
|
1402
1415
|
"date_from",
|
|
1403
1416
|
"date_to"
|
|
1404
1417
|
]
|
|
@@ -1417,10 +1430,6 @@ const TOOLS = [
|
|
|
1417
1430
|
"inputSchema": {
|
|
1418
1431
|
"type": "object",
|
|
1419
1432
|
"properties": {
|
|
1420
|
-
"virtualMachineId": {
|
|
1421
|
-
"type": "integer",
|
|
1422
|
-
"description": "Virtual Machine ID"
|
|
1423
|
-
},
|
|
1424
1433
|
"ns1": {
|
|
1425
1434
|
"type": "string",
|
|
1426
1435
|
"description": "ns1 property"
|
|
@@ -1431,7 +1440,6 @@ const TOOLS = [
|
|
|
1431
1440
|
}
|
|
1432
1441
|
},
|
|
1433
1442
|
"required": [
|
|
1434
|
-
"virtualMachineId",
|
|
1435
1443
|
"ns1"
|
|
1436
1444
|
]
|
|
1437
1445
|
},
|
|
@@ -1448,15 +1456,8 @@ const TOOLS = [
|
|
|
1448
1456
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
|
|
1449
1457
|
"inputSchema": {
|
|
1450
1458
|
"type": "object",
|
|
1451
|
-
"properties": {
|
|
1452
|
-
|
|
1453
|
-
"type": "integer",
|
|
1454
|
-
"description": "Virtual Machine ID"
|
|
1455
|
-
}
|
|
1456
|
-
},
|
|
1457
|
-
"required": [
|
|
1458
|
-
"virtualMachineId"
|
|
1459
|
-
]
|
|
1459
|
+
"properties": {},
|
|
1460
|
+
"required": []
|
|
1460
1461
|
},
|
|
1461
1462
|
"security": [
|
|
1462
1463
|
{
|
|
@@ -1471,15 +1472,8 @@ const TOOLS = [
|
|
|
1471
1472
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
|
|
1472
1473
|
"inputSchema": {
|
|
1473
1474
|
"type": "object",
|
|
1474
|
-
"properties": {
|
|
1475
|
-
|
|
1476
|
-
"type": "integer",
|
|
1477
|
-
"description": "Virtual Machine ID"
|
|
1478
|
-
}
|
|
1479
|
-
},
|
|
1480
|
-
"required": [
|
|
1481
|
-
"virtualMachineId"
|
|
1482
|
-
]
|
|
1475
|
+
"properties": {},
|
|
1476
|
+
"required": []
|
|
1483
1477
|
},
|
|
1484
1478
|
"security": [
|
|
1485
1479
|
{
|
|
@@ -1495,17 +1489,12 @@ const TOOLS = [
|
|
|
1495
1489
|
"inputSchema": {
|
|
1496
1490
|
"type": "object",
|
|
1497
1491
|
"properties": {
|
|
1498
|
-
"virtualMachineId": {
|
|
1499
|
-
"type": "integer",
|
|
1500
|
-
"description": "Virtual Machine ID"
|
|
1501
|
-
},
|
|
1502
1492
|
"password": {
|
|
1503
1493
|
"type": "string",
|
|
1504
1494
|
"description": "Panel password for the virtual machine"
|
|
1505
1495
|
}
|
|
1506
1496
|
},
|
|
1507
1497
|
"required": [
|
|
1508
|
-
"virtualMachineId",
|
|
1509
1498
|
"password"
|
|
1510
1499
|
]
|
|
1511
1500
|
},
|
|
@@ -1523,17 +1512,12 @@ const TOOLS = [
|
|
|
1523
1512
|
"inputSchema": {
|
|
1524
1513
|
"type": "object",
|
|
1525
1514
|
"properties": {
|
|
1526
|
-
"virtualMachineId": {
|
|
1527
|
-
"type": "integer",
|
|
1528
|
-
"description": "Virtual Machine ID"
|
|
1529
|
-
},
|
|
1530
1515
|
"root_password": {
|
|
1531
1516
|
"type": "string",
|
|
1532
1517
|
"description": "Temporary root password for recovery mode"
|
|
1533
1518
|
}
|
|
1534
1519
|
},
|
|
1535
1520
|
"required": [
|
|
1536
|
-
"virtualMachineId",
|
|
1537
1521
|
"root_password"
|
|
1538
1522
|
]
|
|
1539
1523
|
},
|
|
@@ -1550,15 +1534,8 @@ const TOOLS = [
|
|
|
1550
1534
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/recovery",
|
|
1551
1535
|
"inputSchema": {
|
|
1552
1536
|
"type": "object",
|
|
1553
|
-
"properties": {
|
|
1554
|
-
|
|
1555
|
-
"type": "integer",
|
|
1556
|
-
"description": "Virtual Machine ID"
|
|
1557
|
-
}
|
|
1558
|
-
},
|
|
1559
|
-
"required": [
|
|
1560
|
-
"virtualMachineId"
|
|
1561
|
-
]
|
|
1537
|
+
"properties": {},
|
|
1538
|
+
"required": []
|
|
1562
1539
|
},
|
|
1563
1540
|
"security": [
|
|
1564
1541
|
{
|
|
@@ -1574,10 +1551,6 @@ const TOOLS = [
|
|
|
1574
1551
|
"inputSchema": {
|
|
1575
1552
|
"type": "object",
|
|
1576
1553
|
"properties": {
|
|
1577
|
-
"virtualMachineId": {
|
|
1578
|
-
"type": "integer",
|
|
1579
|
-
"description": "Virtual Machine ID"
|
|
1580
|
-
},
|
|
1581
1554
|
"template_id": {
|
|
1582
1555
|
"type": "integer",
|
|
1583
1556
|
"description": "Template ID"
|
|
@@ -1592,7 +1565,6 @@ const TOOLS = [
|
|
|
1592
1565
|
}
|
|
1593
1566
|
},
|
|
1594
1567
|
"required": [
|
|
1595
|
-
"virtualMachineId",
|
|
1596
1568
|
"template_id"
|
|
1597
1569
|
]
|
|
1598
1570
|
},
|
|
@@ -1609,15 +1581,8 @@ const TOOLS = [
|
|
|
1609
1581
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/restart",
|
|
1610
1582
|
"inputSchema": {
|
|
1611
1583
|
"type": "object",
|
|
1612
|
-
"properties": {
|
|
1613
|
-
|
|
1614
|
-
"type": "integer",
|
|
1615
|
-
"description": "Virtual Machine ID"
|
|
1616
|
-
}
|
|
1617
|
-
},
|
|
1618
|
-
"required": [
|
|
1619
|
-
"virtualMachineId"
|
|
1620
|
-
]
|
|
1584
|
+
"properties": {},
|
|
1585
|
+
"required": []
|
|
1621
1586
|
},
|
|
1622
1587
|
"security": [
|
|
1623
1588
|
{
|
|
@@ -1633,17 +1598,12 @@ const TOOLS = [
|
|
|
1633
1598
|
"inputSchema": {
|
|
1634
1599
|
"type": "object",
|
|
1635
1600
|
"properties": {
|
|
1636
|
-
"virtualMachineId": {
|
|
1637
|
-
"type": "integer",
|
|
1638
|
-
"description": "Virtual Machine ID"
|
|
1639
|
-
},
|
|
1640
1601
|
"password": {
|
|
1641
1602
|
"type": "string",
|
|
1642
1603
|
"description": "Root password for the virtual machine"
|
|
1643
1604
|
}
|
|
1644
1605
|
},
|
|
1645
1606
|
"required": [
|
|
1646
|
-
"virtualMachineId",
|
|
1647
1607
|
"password"
|
|
1648
1608
|
]
|
|
1649
1609
|
},
|
|
@@ -1661,10 +1621,6 @@ const TOOLS = [
|
|
|
1661
1621
|
"inputSchema": {
|
|
1662
1622
|
"type": "object",
|
|
1663
1623
|
"properties": {
|
|
1664
|
-
"virtualMachineId": {
|
|
1665
|
-
"type": "integer",
|
|
1666
|
-
"description": "Virtual Machine ID"
|
|
1667
|
-
},
|
|
1668
1624
|
"template_id": {
|
|
1669
1625
|
"type": "integer",
|
|
1670
1626
|
"description": "Template ID"
|
|
@@ -1707,7 +1663,6 @@ const TOOLS = [
|
|
|
1707
1663
|
}
|
|
1708
1664
|
},
|
|
1709
1665
|
"required": [
|
|
1710
|
-
"virtualMachineId",
|
|
1711
1666
|
"data_center_id",
|
|
1712
1667
|
"template_id"
|
|
1713
1668
|
]
|
|
@@ -1725,15 +1680,8 @@ const TOOLS = [
|
|
|
1725
1680
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot",
|
|
1726
1681
|
"inputSchema": {
|
|
1727
1682
|
"type": "object",
|
|
1728
|
-
"properties": {
|
|
1729
|
-
|
|
1730
|
-
"type": "integer",
|
|
1731
|
-
"description": "Virtual Machine ID"
|
|
1732
|
-
}
|
|
1733
|
-
},
|
|
1734
|
-
"required": [
|
|
1735
|
-
"virtualMachineId"
|
|
1736
|
-
]
|
|
1683
|
+
"properties": {},
|
|
1684
|
+
"required": []
|
|
1737
1685
|
},
|
|
1738
1686
|
"security": [
|
|
1739
1687
|
{
|
|
@@ -1748,15 +1696,8 @@ const TOOLS = [
|
|
|
1748
1696
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot",
|
|
1749
1697
|
"inputSchema": {
|
|
1750
1698
|
"type": "object",
|
|
1751
|
-
"properties": {
|
|
1752
|
-
|
|
1753
|
-
"type": "integer",
|
|
1754
|
-
"description": "Virtual Machine ID"
|
|
1755
|
-
}
|
|
1756
|
-
},
|
|
1757
|
-
"required": [
|
|
1758
|
-
"virtualMachineId"
|
|
1759
|
-
]
|
|
1699
|
+
"properties": {},
|
|
1700
|
+
"required": []
|
|
1760
1701
|
},
|
|
1761
1702
|
"security": [
|
|
1762
1703
|
{
|
|
@@ -1771,15 +1712,8 @@ const TOOLS = [
|
|
|
1771
1712
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot",
|
|
1772
1713
|
"inputSchema": {
|
|
1773
1714
|
"type": "object",
|
|
1774
|
-
"properties": {
|
|
1775
|
-
|
|
1776
|
-
"type": "integer",
|
|
1777
|
-
"description": "Virtual Machine ID"
|
|
1778
|
-
}
|
|
1779
|
-
},
|
|
1780
|
-
"required": [
|
|
1781
|
-
"virtualMachineId"
|
|
1782
|
-
]
|
|
1715
|
+
"properties": {},
|
|
1716
|
+
"required": []
|
|
1783
1717
|
},
|
|
1784
1718
|
"security": [
|
|
1785
1719
|
{
|
|
@@ -1794,15 +1728,8 @@ const TOOLS = [
|
|
|
1794
1728
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot/restore",
|
|
1795
1729
|
"inputSchema": {
|
|
1796
1730
|
"type": "object",
|
|
1797
|
-
"properties": {
|
|
1798
|
-
|
|
1799
|
-
"type": "integer",
|
|
1800
|
-
"description": "Virtual Machine ID"
|
|
1801
|
-
}
|
|
1802
|
-
},
|
|
1803
|
-
"required": [
|
|
1804
|
-
"virtualMachineId"
|
|
1805
|
-
]
|
|
1731
|
+
"properties": {},
|
|
1732
|
+
"required": []
|
|
1806
1733
|
},
|
|
1807
1734
|
"security": [
|
|
1808
1735
|
{
|
|
@@ -1817,15 +1744,8 @@ const TOOLS = [
|
|
|
1817
1744
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/start",
|
|
1818
1745
|
"inputSchema": {
|
|
1819
1746
|
"type": "object",
|
|
1820
|
-
"properties": {
|
|
1821
|
-
|
|
1822
|
-
"type": "integer",
|
|
1823
|
-
"description": "Virtual Machine ID"
|
|
1824
|
-
}
|
|
1825
|
-
},
|
|
1826
|
-
"required": [
|
|
1827
|
-
"virtualMachineId"
|
|
1828
|
-
]
|
|
1747
|
+
"properties": {},
|
|
1748
|
+
"required": []
|
|
1829
1749
|
},
|
|
1830
1750
|
"security": [
|
|
1831
1751
|
{
|
|
@@ -1840,15 +1760,8 @@ const TOOLS = [
|
|
|
1840
1760
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/stop",
|
|
1841
1761
|
"inputSchema": {
|
|
1842
1762
|
"type": "object",
|
|
1843
|
-
"properties": {
|
|
1844
|
-
|
|
1845
|
-
"type": "integer",
|
|
1846
|
-
"description": "Virtual Machine ID"
|
|
1847
|
-
}
|
|
1848
|
-
},
|
|
1849
|
-
"required": [
|
|
1850
|
-
"virtualMachineId"
|
|
1851
|
-
]
|
|
1763
|
+
"properties": {},
|
|
1764
|
+
"required": []
|
|
1852
1765
|
},
|
|
1853
1766
|
"security": [
|
|
1854
1767
|
{
|
|
@@ -1867,7 +1780,7 @@ const SECURITY_SCHEMES = {
|
|
|
1867
1780
|
|
|
1868
1781
|
/**
|
|
1869
1782
|
* MCP Server for Hostinger API
|
|
1870
|
-
* Generated from OpenAPI spec version 0.0.
|
|
1783
|
+
* Generated from OpenAPI spec version 0.0.37
|
|
1871
1784
|
*/
|
|
1872
1785
|
class MCPServer {
|
|
1873
1786
|
constructor() {
|
|
@@ -1885,7 +1798,7 @@ class MCPServer {
|
|
|
1885
1798
|
this.server = new Server(
|
|
1886
1799
|
{
|
|
1887
1800
|
name: "hostinger-api-mcp",
|
|
1888
|
-
version: "0.0.
|
|
1801
|
+
version: "0.0.14",
|
|
1889
1802
|
},
|
|
1890
1803
|
{
|
|
1891
1804
|
capabilities: {
|
|
@@ -1910,7 +1823,7 @@ class MCPServer {
|
|
|
1910
1823
|
});
|
|
1911
1824
|
}
|
|
1912
1825
|
|
|
1913
|
-
headers['User-Agent'] = 'hostinger-mcp-server/0.0.
|
|
1826
|
+
headers['User-Agent'] = 'hostinger-mcp-server/0.0.14';
|
|
1914
1827
|
|
|
1915
1828
|
return headers;
|
|
1916
1829
|
}
|