hostinger-api-mcp 0.2.2 → 0.2.4
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 +87 -2
- package/package.json +1 -1
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +319 -0
- package/src/core/tools/all.ts +319 -0
- package/src/core/tools/hosting.js +319 -0
- package/src/core/tools/hosting.ts +319 -0
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/types.d.ts +227 -0
|
@@ -267,6 +267,123 @@ const tools: OpenApiTool[] = [
|
|
|
267
267
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
268
268
|
"group": "hosting"
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"name": "hosting_listAccountDatabasesV1",
|
|
272
|
+
"description": "Returns a paginated list of databases for the specified account.\n\nUse the domain and is_assigned filters to find databases assigned to a specific domain.",
|
|
273
|
+
"method": "GET",
|
|
274
|
+
"path": "/api/hosting/v1/accounts/{username}/databases",
|
|
275
|
+
"inputSchema": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"username": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "username parameter"
|
|
281
|
+
},
|
|
282
|
+
"page": {
|
|
283
|
+
"type": "integer",
|
|
284
|
+
"description": "Page number"
|
|
285
|
+
},
|
|
286
|
+
"per_page": {
|
|
287
|
+
"type": "integer",
|
|
288
|
+
"description": "Number of items per page"
|
|
289
|
+
},
|
|
290
|
+
"domain": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"description": "Filter by domain name (exact match)"
|
|
293
|
+
},
|
|
294
|
+
"is_assigned": {
|
|
295
|
+
"type": "boolean",
|
|
296
|
+
"description": "When used with domain, return only databases assigned to that domain."
|
|
297
|
+
},
|
|
298
|
+
"search": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"description": "Search databases by name, user, or creation date."
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"username"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"security": [
|
|
308
|
+
{
|
|
309
|
+
"apiToken": []
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"group": "hosting"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "hosting_createAccountDatabaseV1",
|
|
316
|
+
"description": "Creates a database with a database user and password for the specified account.\n\nThe database name and user are automatically prefixed with the account username when needed.",
|
|
317
|
+
"method": "POST",
|
|
318
|
+
"path": "/api/hosting/v1/accounts/{username}/databases",
|
|
319
|
+
"inputSchema": {
|
|
320
|
+
"type": "object",
|
|
321
|
+
"properties": {
|
|
322
|
+
"username": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"description": "username parameter"
|
|
325
|
+
},
|
|
326
|
+
"name": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"description": "Database name. If the account username prefix is omitted, it is added automatically."
|
|
329
|
+
},
|
|
330
|
+
"user": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"description": "Database user. If the account username prefix is omitted, it is added automatically."
|
|
333
|
+
},
|
|
334
|
+
"password": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Database user password."
|
|
337
|
+
},
|
|
338
|
+
"website_domain": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "Website domain assigned to the database."
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"required": [
|
|
344
|
+
"username",
|
|
345
|
+
"name",
|
|
346
|
+
"user",
|
|
347
|
+
"password",
|
|
348
|
+
"website_domain"
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
"security": [
|
|
352
|
+
{
|
|
353
|
+
"apiToken": []
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"group": "hosting"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "hosting_deleteAccountDatabaseV1",
|
|
360
|
+
"description": "Permanently deletes a database and its remote connections.\n\nThe database name must be the full name returned by the list databases endpoint.",
|
|
361
|
+
"method": "DELETE",
|
|
362
|
+
"path": "/api/hosting/v1/accounts/{username}/databases/{name}",
|
|
363
|
+
"inputSchema": {
|
|
364
|
+
"type": "object",
|
|
365
|
+
"properties": {
|
|
366
|
+
"username": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"description": "username parameter"
|
|
369
|
+
},
|
|
370
|
+
"name": {
|
|
371
|
+
"type": "string",
|
|
372
|
+
"description": "Full database name as returned by the list databases endpoint."
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"required": [
|
|
376
|
+
"username",
|
|
377
|
+
"name"
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
"security": [
|
|
381
|
+
{
|
|
382
|
+
"apiToken": []
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"group": "hosting"
|
|
386
|
+
},
|
|
270
387
|
{
|
|
271
388
|
"name": "hosting_listAvailableDatacentersV1",
|
|
272
389
|
"description": "Retrieve a list of datacenters available for setting up hosting plans\nbased on available datacenter capacity and hosting plan of your order.\nThe first item in the list is the best match for your specific order\nrequirements.",
|
|
@@ -308,6 +425,208 @@ const tools: OpenApiTool[] = [
|
|
|
308
425
|
],
|
|
309
426
|
"group": "hosting"
|
|
310
427
|
},
|
|
428
|
+
{
|
|
429
|
+
"name": "hosting_listWebsiteParkedDomainsV1",
|
|
430
|
+
"description": "Retrieve all parked or alias domains created under the selected website.\n\nUse this endpoint to inspect parked domain configuration for a specific website,\nincluding the parent domain and root directory assigned to each parked domain.",
|
|
431
|
+
"method": "GET",
|
|
432
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains",
|
|
433
|
+
"inputSchema": {
|
|
434
|
+
"type": "object",
|
|
435
|
+
"properties": {
|
|
436
|
+
"username": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"description": "username parameter"
|
|
439
|
+
},
|
|
440
|
+
"domain": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"description": "Domain name"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"required": [
|
|
446
|
+
"username",
|
|
447
|
+
"domain"
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
"security": [
|
|
451
|
+
{
|
|
452
|
+
"apiToken": []
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"group": "hosting"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "hosting_createWebsiteParkedDomainV1",
|
|
459
|
+
"description": "Create a parked or alias domain for the selected website.\n\nProvide a domain name or IP address to park on the website so it serves the same content\nas the parent domain.",
|
|
460
|
+
"method": "POST",
|
|
461
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains",
|
|
462
|
+
"inputSchema": {
|
|
463
|
+
"type": "object",
|
|
464
|
+
"properties": {
|
|
465
|
+
"username": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"description": "username parameter"
|
|
468
|
+
},
|
|
469
|
+
"domain": {
|
|
470
|
+
"type": "string",
|
|
471
|
+
"description": "Domain name"
|
|
472
|
+
},
|
|
473
|
+
"parked_domain": {
|
|
474
|
+
"type": "string",
|
|
475
|
+
"description": "Domain name or IP address to park on the selected website"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"required": [
|
|
479
|
+
"username",
|
|
480
|
+
"domain",
|
|
481
|
+
"parked_domain"
|
|
482
|
+
]
|
|
483
|
+
},
|
|
484
|
+
"security": [
|
|
485
|
+
{
|
|
486
|
+
"apiToken": []
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"group": "hosting"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "hosting_deleteWebsiteParkedDomainV1",
|
|
493
|
+
"description": "Delete an existing parked or alias domain from the selected website.\n\nUse this endpoint to remove parked domains that are no longer needed.",
|
|
494
|
+
"method": "DELETE",
|
|
495
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain}",
|
|
496
|
+
"inputSchema": {
|
|
497
|
+
"type": "object",
|
|
498
|
+
"properties": {
|
|
499
|
+
"username": {
|
|
500
|
+
"type": "string",
|
|
501
|
+
"description": "username parameter"
|
|
502
|
+
},
|
|
503
|
+
"domain": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"description": "Domain name"
|
|
506
|
+
},
|
|
507
|
+
"parkedDomain": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"description": "parkedDomain parameter"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"required": [
|
|
513
|
+
"username",
|
|
514
|
+
"domain",
|
|
515
|
+
"parkedDomain"
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
"security": [
|
|
519
|
+
{
|
|
520
|
+
"apiToken": []
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"group": "hosting"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "hosting_listWebsiteSubdomainsV1",
|
|
527
|
+
"description": "Retrieve all subdomains created under the selected website.\n\nUse this endpoint to inspect subdomain configuration for a specific website,\nincluding the parent domain and root directory assigned to each subdomain.",
|
|
528
|
+
"method": "GET",
|
|
529
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
530
|
+
"inputSchema": {
|
|
531
|
+
"type": "object",
|
|
532
|
+
"properties": {
|
|
533
|
+
"username": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"description": "username parameter"
|
|
536
|
+
},
|
|
537
|
+
"domain": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "Domain name"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"required": [
|
|
543
|
+
"username",
|
|
544
|
+
"domain"
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
"security": [
|
|
548
|
+
{
|
|
549
|
+
"apiToken": []
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"group": "hosting"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"name": "hosting_createWebsiteSubdomainV1",
|
|
556
|
+
"description": "Create a new subdomain for the selected website.\n\nProvide a subdomain prefix and, optionally, a custom directory or the\nwebsite public directory to use as the subdomain root.",
|
|
557
|
+
"method": "POST",
|
|
558
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains",
|
|
559
|
+
"inputSchema": {
|
|
560
|
+
"type": "object",
|
|
561
|
+
"properties": {
|
|
562
|
+
"username": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"description": "username parameter"
|
|
565
|
+
},
|
|
566
|
+
"domain": {
|
|
567
|
+
"type": "string",
|
|
568
|
+
"description": "Domain name"
|
|
569
|
+
},
|
|
570
|
+
"subdomain": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"description": "Subdomain prefix to create under the selected website"
|
|
573
|
+
},
|
|
574
|
+
"directory": {
|
|
575
|
+
"type": "string",
|
|
576
|
+
"description": "Directory name for the subdomain relative to the website root"
|
|
577
|
+
},
|
|
578
|
+
"is_using_public_directory": {
|
|
579
|
+
"type": "boolean",
|
|
580
|
+
"description": "Use the website public directory as the subdomain root directory"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"required": [
|
|
584
|
+
"username",
|
|
585
|
+
"domain",
|
|
586
|
+
"subdomain"
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
"security": [
|
|
590
|
+
{
|
|
591
|
+
"apiToken": []
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
"group": "hosting"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "hosting_deleteWebsiteSubdomainV1",
|
|
598
|
+
"description": "Delete an existing subdomain from the selected website.\n\nUse this endpoint to remove subdomains that are no longer needed.",
|
|
599
|
+
"method": "DELETE",
|
|
600
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain}",
|
|
601
|
+
"inputSchema": {
|
|
602
|
+
"type": "object",
|
|
603
|
+
"properties": {
|
|
604
|
+
"username": {
|
|
605
|
+
"type": "string",
|
|
606
|
+
"description": "username parameter"
|
|
607
|
+
},
|
|
608
|
+
"domain": {
|
|
609
|
+
"type": "string",
|
|
610
|
+
"description": "Domain name"
|
|
611
|
+
},
|
|
612
|
+
"subdomain": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"description": "subdomain parameter"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"required": [
|
|
618
|
+
"username",
|
|
619
|
+
"domain",
|
|
620
|
+
"subdomain"
|
|
621
|
+
]
|
|
622
|
+
},
|
|
623
|
+
"security": [
|
|
624
|
+
{
|
|
625
|
+
"apiToken": []
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"group": "hosting"
|
|
629
|
+
},
|
|
311
630
|
{
|
|
312
631
|
"name": "hosting_verifyDomainOwnershipV1",
|
|
313
632
|
"description": "Verify ownership of a single domain and return the verification status.\n\nUse this endpoint to check if a domain is accessible for you before using it for new websites.\nIf the domain is accessible, the response will have `is_accessible: true`.\nIf not, add the given TXT record to your domain's DNS records and try verifying again.\nKeep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.\n\nSkip this verification when using Hostinger's free subdomains (*.hostingersite.com).",
|
package/src/servers/all.js
CHANGED
package/src/servers/all.ts
CHANGED
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/hosting.js
CHANGED
package/src/servers/hosting.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -796,6 +796,91 @@ Use this endpoint to view which domains use specific contact profiles.
|
|
|
796
796
|
response: any; // Response structure will depend on the API
|
|
797
797
|
};
|
|
798
798
|
|
|
799
|
+
/**
|
|
800
|
+
* Returns a paginated list of databases for the specified account.
|
|
801
|
+
|
|
802
|
+
Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
803
|
+
*/
|
|
804
|
+
"hosting_listAccountDatabasesV1": {
|
|
805
|
+
params: {
|
|
806
|
+
/**
|
|
807
|
+
* username parameter
|
|
808
|
+
*/
|
|
809
|
+
username: string;
|
|
810
|
+
/**
|
|
811
|
+
* Page number
|
|
812
|
+
*/
|
|
813
|
+
page?: number;
|
|
814
|
+
/**
|
|
815
|
+
* Number of items per page
|
|
816
|
+
*/
|
|
817
|
+
per_page?: number;
|
|
818
|
+
/**
|
|
819
|
+
* Filter by domain name (exact match)
|
|
820
|
+
*/
|
|
821
|
+
domain?: string;
|
|
822
|
+
/**
|
|
823
|
+
* When used with domain, return only databases assigned to that domain.
|
|
824
|
+
*/
|
|
825
|
+
is_assigned?: boolean;
|
|
826
|
+
/**
|
|
827
|
+
* Search databases by name, user, or creation date.
|
|
828
|
+
*/
|
|
829
|
+
search?: string;
|
|
830
|
+
};
|
|
831
|
+
response: any; // Response structure will depend on the API
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Creates a database with a database user and password for the specified account.
|
|
836
|
+
|
|
837
|
+
The database name and user are automatically prefixed with the account username when needed.
|
|
838
|
+
*/
|
|
839
|
+
"hosting_createAccountDatabaseV1": {
|
|
840
|
+
params: {
|
|
841
|
+
/**
|
|
842
|
+
* username parameter
|
|
843
|
+
*/
|
|
844
|
+
username: string;
|
|
845
|
+
/**
|
|
846
|
+
* Database name. If the account username prefix is omitted, it is added automatically.
|
|
847
|
+
*/
|
|
848
|
+
name: string;
|
|
849
|
+
/**
|
|
850
|
+
* Database user. If the account username prefix is omitted, it is added automatically.
|
|
851
|
+
*/
|
|
852
|
+
user: string;
|
|
853
|
+
/**
|
|
854
|
+
* Database user password.
|
|
855
|
+
*/
|
|
856
|
+
password: string;
|
|
857
|
+
/**
|
|
858
|
+
* Website domain assigned to the database.
|
|
859
|
+
*/
|
|
860
|
+
website_domain: string;
|
|
861
|
+
};
|
|
862
|
+
response: any; // Response structure will depend on the API
|
|
863
|
+
};
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Permanently deletes a database and its remote connections.
|
|
867
|
+
|
|
868
|
+
The database name must be the full name returned by the list databases endpoint.
|
|
869
|
+
*/
|
|
870
|
+
"hosting_deleteAccountDatabaseV1": {
|
|
871
|
+
params: {
|
|
872
|
+
/**
|
|
873
|
+
* username parameter
|
|
874
|
+
*/
|
|
875
|
+
username: string;
|
|
876
|
+
/**
|
|
877
|
+
* Full database name as returned by the list databases endpoint.
|
|
878
|
+
*/
|
|
879
|
+
name: string;
|
|
880
|
+
};
|
|
881
|
+
response: any; // Response structure will depend on the API
|
|
882
|
+
};
|
|
883
|
+
|
|
799
884
|
/**
|
|
800
885
|
* Retrieve a list of datacenters available for setting up hosting plans
|
|
801
886
|
based on available datacenter capacity and hosting plan of your order.
|
|
@@ -824,6 +909,148 @@ and you can always connect a custom domain to your site later.
|
|
|
824
909
|
response: any; // Response structure will depend on the API
|
|
825
910
|
};
|
|
826
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Retrieve all parked or alias domains created under the selected website.
|
|
914
|
+
|
|
915
|
+
Use this endpoint to inspect parked domain configuration for a specific website,
|
|
916
|
+
including the parent domain and root directory assigned to each parked domain.
|
|
917
|
+
*/
|
|
918
|
+
"hosting_listWebsiteParkedDomainsV1": {
|
|
919
|
+
params: {
|
|
920
|
+
/**
|
|
921
|
+
* username parameter
|
|
922
|
+
*/
|
|
923
|
+
username: string;
|
|
924
|
+
/**
|
|
925
|
+
* Domain name
|
|
926
|
+
*/
|
|
927
|
+
domain: string;
|
|
928
|
+
};
|
|
929
|
+
response: any; // Response structure will depend on the API
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Create a parked or alias domain for the selected website.
|
|
934
|
+
|
|
935
|
+
Provide a domain name or IP address to park on the website so it serves the same content
|
|
936
|
+
as the parent domain.
|
|
937
|
+
*/
|
|
938
|
+
"hosting_createWebsiteParkedDomainV1": {
|
|
939
|
+
params: {
|
|
940
|
+
/**
|
|
941
|
+
* username parameter
|
|
942
|
+
*/
|
|
943
|
+
username: string;
|
|
944
|
+
/**
|
|
945
|
+
* Domain name
|
|
946
|
+
*/
|
|
947
|
+
domain: string;
|
|
948
|
+
/**
|
|
949
|
+
* Domain name or IP address to park on the selected website
|
|
950
|
+
*/
|
|
951
|
+
parked_domain: string;
|
|
952
|
+
};
|
|
953
|
+
response: any; // Response structure will depend on the API
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Delete an existing parked or alias domain from the selected website.
|
|
958
|
+
|
|
959
|
+
Use this endpoint to remove parked domains that are no longer needed.
|
|
960
|
+
*/
|
|
961
|
+
"hosting_deleteWebsiteParkedDomainV1": {
|
|
962
|
+
params: {
|
|
963
|
+
/**
|
|
964
|
+
* username parameter
|
|
965
|
+
*/
|
|
966
|
+
username: string;
|
|
967
|
+
/**
|
|
968
|
+
* Domain name
|
|
969
|
+
*/
|
|
970
|
+
domain: string;
|
|
971
|
+
/**
|
|
972
|
+
* parkedDomain parameter
|
|
973
|
+
*/
|
|
974
|
+
parkedDomain: string;
|
|
975
|
+
};
|
|
976
|
+
response: any; // Response structure will depend on the API
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Retrieve all subdomains created under the selected website.
|
|
981
|
+
|
|
982
|
+
Use this endpoint to inspect subdomain configuration for a specific website,
|
|
983
|
+
including the parent domain and root directory assigned to each subdomain.
|
|
984
|
+
*/
|
|
985
|
+
"hosting_listWebsiteSubdomainsV1": {
|
|
986
|
+
params: {
|
|
987
|
+
/**
|
|
988
|
+
* username parameter
|
|
989
|
+
*/
|
|
990
|
+
username: string;
|
|
991
|
+
/**
|
|
992
|
+
* Domain name
|
|
993
|
+
*/
|
|
994
|
+
domain: string;
|
|
995
|
+
};
|
|
996
|
+
response: any; // Response structure will depend on the API
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* Create a new subdomain for the selected website.
|
|
1001
|
+
|
|
1002
|
+
Provide a subdomain prefix and, optionally, a custom directory or the
|
|
1003
|
+
website public directory to use as the subdomain root.
|
|
1004
|
+
*/
|
|
1005
|
+
"hosting_createWebsiteSubdomainV1": {
|
|
1006
|
+
params: {
|
|
1007
|
+
/**
|
|
1008
|
+
* username parameter
|
|
1009
|
+
*/
|
|
1010
|
+
username: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* Domain name
|
|
1013
|
+
*/
|
|
1014
|
+
domain: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* Subdomain prefix to create under the selected website
|
|
1017
|
+
*/
|
|
1018
|
+
subdomain: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Directory name for the subdomain relative to the website root
|
|
1021
|
+
*/
|
|
1022
|
+
directory?: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Use the website public directory as the subdomain root directory
|
|
1025
|
+
*/
|
|
1026
|
+
is_using_public_directory?: boolean;
|
|
1027
|
+
};
|
|
1028
|
+
response: any; // Response structure will depend on the API
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* Delete an existing subdomain from the selected website.
|
|
1033
|
+
|
|
1034
|
+
Use this endpoint to remove subdomains that are no longer needed.
|
|
1035
|
+
*/
|
|
1036
|
+
"hosting_deleteWebsiteSubdomainV1": {
|
|
1037
|
+
params: {
|
|
1038
|
+
/**
|
|
1039
|
+
* username parameter
|
|
1040
|
+
*/
|
|
1041
|
+
username: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* Domain name
|
|
1044
|
+
*/
|
|
1045
|
+
domain: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* subdomain parameter
|
|
1048
|
+
*/
|
|
1049
|
+
subdomain: string;
|
|
1050
|
+
};
|
|
1051
|
+
response: any; // Response structure will depend on the API
|
|
1052
|
+
};
|
|
1053
|
+
|
|
827
1054
|
/**
|
|
828
1055
|
* Verify ownership of a single domain and return the verification status.
|
|
829
1056
|
|