hostinger-api-mcp 1.38.2 → 1.40.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/README.md +75 -3
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/agency-hosting.js +205 -0
- package/src/core/tools/agency-hosting.ts +205 -0
- package/src/core/tools/all.js +315 -0
- package/src/core/tools/all.ts +315 -0
- package/src/core/tools/hosting.js +110 -0
- package/src/core/tools/hosting.ts +110 -0
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- 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/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.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/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +176 -0
package/src/core/tools/all.js
CHANGED
|
@@ -530,6 +530,211 @@ export default [
|
|
|
530
530
|
],
|
|
531
531
|
"group": "agency-hosting"
|
|
532
532
|
},
|
|
533
|
+
{
|
|
534
|
+
"name": "agency-hosting_listPHPExtensionsForAWebsiteV1",
|
|
535
|
+
"description": "Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.",
|
|
536
|
+
"method": "GET",
|
|
537
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions",
|
|
538
|
+
"inputSchema": {
|
|
539
|
+
"type": "object",
|
|
540
|
+
"properties": {
|
|
541
|
+
"website_uid": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"description": "Agency Plan website UID"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"required": [
|
|
547
|
+
"website_uid"
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"security": [
|
|
551
|
+
{
|
|
552
|
+
"apiToken": []
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
"group": "agency-hosting"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "agency-hosting_replaceWebsitePHPExtensionsV1",
|
|
559
|
+
"description": "Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.",
|
|
560
|
+
"method": "PUT",
|
|
561
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions",
|
|
562
|
+
"inputSchema": {
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"website_uid": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"description": "Agency Plan website UID"
|
|
568
|
+
},
|
|
569
|
+
"extensions": {
|
|
570
|
+
"type": "array",
|
|
571
|
+
"description": "Extension names, exactly as returned by the extensions endpoint.",
|
|
572
|
+
"items": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"description": "extensions parameter"
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"required": [
|
|
579
|
+
"website_uid",
|
|
580
|
+
"extensions"
|
|
581
|
+
]
|
|
582
|
+
},
|
|
583
|
+
"security": [
|
|
584
|
+
{
|
|
585
|
+
"apiToken": []
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"group": "agency-hosting"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"name": "agency-hosting_listPHPOptionsForAWebsiteV1",
|
|
592
|
+
"description": "Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.",
|
|
593
|
+
"method": "GET",
|
|
594
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/options",
|
|
595
|
+
"inputSchema": {
|
|
596
|
+
"type": "object",
|
|
597
|
+
"properties": {
|
|
598
|
+
"website_uid": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"description": "Agency Plan website UID"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"required": [
|
|
604
|
+
"website_uid"
|
|
605
|
+
]
|
|
606
|
+
},
|
|
607
|
+
"security": [
|
|
608
|
+
{
|
|
609
|
+
"apiToken": []
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"group": "agency-hosting"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "agency-hosting_replaceWebsitePHPOptionsV1",
|
|
616
|
+
"description": "Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.",
|
|
617
|
+
"method": "PUT",
|
|
618
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/options",
|
|
619
|
+
"inputSchema": {
|
|
620
|
+
"type": "object",
|
|
621
|
+
"properties": {
|
|
622
|
+
"website_uid": {
|
|
623
|
+
"type": "string",
|
|
624
|
+
"description": "Agency Plan website UID"
|
|
625
|
+
},
|
|
626
|
+
"options": {
|
|
627
|
+
"type": "array",
|
|
628
|
+
"description": "Option names and values. Each name must be one of the options returned by the options endpoint, and each value must satisfy that option's allowed_values when it declares them.",
|
|
629
|
+
"items": {
|
|
630
|
+
"type": "object",
|
|
631
|
+
"description": "options parameter",
|
|
632
|
+
"properties": {
|
|
633
|
+
"name": {
|
|
634
|
+
"type": "string",
|
|
635
|
+
"description": "php.ini directive name."
|
|
636
|
+
},
|
|
637
|
+
"value": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"description": "Value to apply."
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"required": [
|
|
643
|
+
"name",
|
|
644
|
+
"value"
|
|
645
|
+
]
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"required": [
|
|
650
|
+
"website_uid",
|
|
651
|
+
"options"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"security": [
|
|
655
|
+
{
|
|
656
|
+
"apiToken": []
|
|
657
|
+
}
|
|
658
|
+
],
|
|
659
|
+
"group": "agency-hosting"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"name": "agency-hosting_listAvailablePHPVersionsForAnOrderV1",
|
|
663
|
+
"description": "Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.",
|
|
664
|
+
"method": "GET",
|
|
665
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/websites/php-settings/versions",
|
|
666
|
+
"inputSchema": {
|
|
667
|
+
"type": "object",
|
|
668
|
+
"properties": {
|
|
669
|
+
"order_id": {
|
|
670
|
+
"type": "integer",
|
|
671
|
+
"description": "Agency Plan order ID"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": [
|
|
675
|
+
"order_id"
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
"security": [
|
|
679
|
+
{
|
|
680
|
+
"apiToken": []
|
|
681
|
+
}
|
|
682
|
+
],
|
|
683
|
+
"group": "agency-hosting"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "agency-hosting_listAvailablePHPVersionsForAWebsiteV1",
|
|
687
|
+
"description": "Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.",
|
|
688
|
+
"method": "GET",
|
|
689
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/versions",
|
|
690
|
+
"inputSchema": {
|
|
691
|
+
"type": "object",
|
|
692
|
+
"properties": {
|
|
693
|
+
"website_uid": {
|
|
694
|
+
"type": "string",
|
|
695
|
+
"description": "Agency Plan website UID"
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"required": [
|
|
699
|
+
"website_uid"
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
"security": [
|
|
703
|
+
{
|
|
704
|
+
"apiToken": []
|
|
705
|
+
}
|
|
706
|
+
],
|
|
707
|
+
"group": "agency-hosting"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "agency-hosting_updateWebsitePHPVersionV1",
|
|
711
|
+
"description": "Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.",
|
|
712
|
+
"method": "PATCH",
|
|
713
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/version",
|
|
714
|
+
"inputSchema": {
|
|
715
|
+
"type": "object",
|
|
716
|
+
"properties": {
|
|
717
|
+
"website_uid": {
|
|
718
|
+
"type": "string",
|
|
719
|
+
"description": "Agency Plan website UID"
|
|
720
|
+
},
|
|
721
|
+
"version": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"description": "PHP version to switch the website to, as major.minor. Must be one of the versions returned by the available versions endpoint."
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"required": [
|
|
727
|
+
"website_uid",
|
|
728
|
+
"version"
|
|
729
|
+
]
|
|
730
|
+
},
|
|
731
|
+
"security": [
|
|
732
|
+
{
|
|
733
|
+
"apiToken": []
|
|
734
|
+
}
|
|
735
|
+
],
|
|
736
|
+
"group": "agency-hosting"
|
|
737
|
+
},
|
|
533
738
|
{
|
|
534
739
|
"name": "agency-hosting_createANewWebsiteV1",
|
|
535
740
|
"description": "Provisions a new website on one of your Agency Plan hosting orders.\n\nChoose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach\nyour own `domain` — omit it, set it to `null`, or leave it unavailable and a free\n`*.hostingersite.com` subdomain is generated instead — and/or install WordPress by\nsupplying the `wordpress` details (admin account, site title, and language).\n\nCommon setups:\n- **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit\n `wordpress` and `type`.\n- **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus\n the `wordpress` block (admin account, title, language).\n- **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to\n `node-static`.\n\nProvisioning runs in the background, so the response returns immediately with a setup UUID\nthat identifies the job. The new website becomes reachable once provisioning finishes.",
|
|
@@ -4912,6 +5117,116 @@ export default [
|
|
|
4912
5117
|
],
|
|
4913
5118
|
"group": "hosting"
|
|
4914
5119
|
},
|
|
5120
|
+
{
|
|
5121
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
5122
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
5123
|
+
"method": "GET",
|
|
5124
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5125
|
+
"inputSchema": {
|
|
5126
|
+
"type": "object",
|
|
5127
|
+
"properties": {
|
|
5128
|
+
"username": {
|
|
5129
|
+
"type": "string",
|
|
5130
|
+
"description": "username parameter"
|
|
5131
|
+
},
|
|
5132
|
+
"domain": {
|
|
5133
|
+
"type": "string",
|
|
5134
|
+
"description": "Domain name"
|
|
5135
|
+
},
|
|
5136
|
+
"page": {
|
|
5137
|
+
"type": "integer",
|
|
5138
|
+
"description": "Page number"
|
|
5139
|
+
},
|
|
5140
|
+
"per_page": {
|
|
5141
|
+
"type": "integer",
|
|
5142
|
+
"description": "Number of items per page"
|
|
5143
|
+
}
|
|
5144
|
+
},
|
|
5145
|
+
"required": [
|
|
5146
|
+
"username",
|
|
5147
|
+
"domain"
|
|
5148
|
+
]
|
|
5149
|
+
},
|
|
5150
|
+
"security": [
|
|
5151
|
+
{
|
|
5152
|
+
"apiToken": []
|
|
5153
|
+
}
|
|
5154
|
+
],
|
|
5155
|
+
"group": "hosting"
|
|
5156
|
+
},
|
|
5157
|
+
{
|
|
5158
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
5159
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
5160
|
+
"method": "POST",
|
|
5161
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5162
|
+
"inputSchema": {
|
|
5163
|
+
"type": "object",
|
|
5164
|
+
"properties": {
|
|
5165
|
+
"username": {
|
|
5166
|
+
"type": "string",
|
|
5167
|
+
"description": "username parameter"
|
|
5168
|
+
},
|
|
5169
|
+
"domain": {
|
|
5170
|
+
"type": "string",
|
|
5171
|
+
"description": "Domain name"
|
|
5172
|
+
},
|
|
5173
|
+
"from": {
|
|
5174
|
+
"type": "string",
|
|
5175
|
+
"description": "Source URL on the selected website"
|
|
5176
|
+
},
|
|
5177
|
+
"to": {
|
|
5178
|
+
"type": "string",
|
|
5179
|
+
"description": "Destination URL or IP address"
|
|
5180
|
+
}
|
|
5181
|
+
},
|
|
5182
|
+
"required": [
|
|
5183
|
+
"username",
|
|
5184
|
+
"domain",
|
|
5185
|
+
"from",
|
|
5186
|
+
"to"
|
|
5187
|
+
]
|
|
5188
|
+
},
|
|
5189
|
+
"security": [
|
|
5190
|
+
{
|
|
5191
|
+
"apiToken": []
|
|
5192
|
+
}
|
|
5193
|
+
],
|
|
5194
|
+
"group": "hosting"
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
5198
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
5199
|
+
"method": "DELETE",
|
|
5200
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5201
|
+
"inputSchema": {
|
|
5202
|
+
"type": "object",
|
|
5203
|
+
"properties": {
|
|
5204
|
+
"username": {
|
|
5205
|
+
"type": "string",
|
|
5206
|
+
"description": "username parameter"
|
|
5207
|
+
},
|
|
5208
|
+
"domain": {
|
|
5209
|
+
"type": "string",
|
|
5210
|
+
"description": "Domain name"
|
|
5211
|
+
},
|
|
5212
|
+
"from": {
|
|
5213
|
+
"type": "string",
|
|
5214
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
5215
|
+
}
|
|
5216
|
+
},
|
|
5217
|
+
"required": [
|
|
5218
|
+
"username",
|
|
5219
|
+
"domain",
|
|
5220
|
+
"from"
|
|
5221
|
+
]
|
|
5222
|
+
},
|
|
5223
|
+
"security": [
|
|
5224
|
+
{
|
|
5225
|
+
"apiToken": []
|
|
5226
|
+
}
|
|
5227
|
+
],
|
|
5228
|
+
"group": "hosting"
|
|
5229
|
+
},
|
|
4915
5230
|
{
|
|
4916
5231
|
"name": "hosting_listWebsitesV1",
|
|
4917
5232
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -544,6 +544,211 @@ const tools: OpenApiTool[] = [
|
|
|
544
544
|
],
|
|
545
545
|
"group": "agency-hosting"
|
|
546
546
|
},
|
|
547
|
+
{
|
|
548
|
+
"name": "agency-hosting_listPHPExtensionsForAWebsiteV1",
|
|
549
|
+
"description": "Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.",
|
|
550
|
+
"method": "GET",
|
|
551
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions",
|
|
552
|
+
"inputSchema": {
|
|
553
|
+
"type": "object",
|
|
554
|
+
"properties": {
|
|
555
|
+
"website_uid": {
|
|
556
|
+
"type": "string",
|
|
557
|
+
"description": "Agency Plan website UID"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
"required": [
|
|
561
|
+
"website_uid"
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
"security": [
|
|
565
|
+
{
|
|
566
|
+
"apiToken": []
|
|
567
|
+
}
|
|
568
|
+
],
|
|
569
|
+
"group": "agency-hosting"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "agency-hosting_replaceWebsitePHPExtensionsV1",
|
|
573
|
+
"description": "Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.",
|
|
574
|
+
"method": "PUT",
|
|
575
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/extensions",
|
|
576
|
+
"inputSchema": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"website_uid": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"description": "Agency Plan website UID"
|
|
582
|
+
},
|
|
583
|
+
"extensions": {
|
|
584
|
+
"type": "array",
|
|
585
|
+
"description": "Extension names, exactly as returned by the extensions endpoint.",
|
|
586
|
+
"items": {
|
|
587
|
+
"type": "string",
|
|
588
|
+
"description": "extensions parameter"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"required": [
|
|
593
|
+
"website_uid",
|
|
594
|
+
"extensions"
|
|
595
|
+
]
|
|
596
|
+
},
|
|
597
|
+
"security": [
|
|
598
|
+
{
|
|
599
|
+
"apiToken": []
|
|
600
|
+
}
|
|
601
|
+
],
|
|
602
|
+
"group": "agency-hosting"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "agency-hosting_listPHPOptionsForAWebsiteV1",
|
|
606
|
+
"description": "Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.",
|
|
607
|
+
"method": "GET",
|
|
608
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/options",
|
|
609
|
+
"inputSchema": {
|
|
610
|
+
"type": "object",
|
|
611
|
+
"properties": {
|
|
612
|
+
"website_uid": {
|
|
613
|
+
"type": "string",
|
|
614
|
+
"description": "Agency Plan website UID"
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"required": [
|
|
618
|
+
"website_uid"
|
|
619
|
+
]
|
|
620
|
+
},
|
|
621
|
+
"security": [
|
|
622
|
+
{
|
|
623
|
+
"apiToken": []
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"group": "agency-hosting"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "agency-hosting_replaceWebsitePHPOptionsV1",
|
|
630
|
+
"description": "Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.",
|
|
631
|
+
"method": "PUT",
|
|
632
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/options",
|
|
633
|
+
"inputSchema": {
|
|
634
|
+
"type": "object",
|
|
635
|
+
"properties": {
|
|
636
|
+
"website_uid": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"description": "Agency Plan website UID"
|
|
639
|
+
},
|
|
640
|
+
"options": {
|
|
641
|
+
"type": "array",
|
|
642
|
+
"description": "Option names and values. Each name must be one of the options returned by the options endpoint, and each value must satisfy that option's allowed_values when it declares them.",
|
|
643
|
+
"items": {
|
|
644
|
+
"type": "object",
|
|
645
|
+
"description": "options parameter",
|
|
646
|
+
"properties": {
|
|
647
|
+
"name": {
|
|
648
|
+
"type": "string",
|
|
649
|
+
"description": "php.ini directive name."
|
|
650
|
+
},
|
|
651
|
+
"value": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"description": "Value to apply."
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"required": [
|
|
657
|
+
"name",
|
|
658
|
+
"value"
|
|
659
|
+
]
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"required": [
|
|
664
|
+
"website_uid",
|
|
665
|
+
"options"
|
|
666
|
+
]
|
|
667
|
+
},
|
|
668
|
+
"security": [
|
|
669
|
+
{
|
|
670
|
+
"apiToken": []
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"group": "agency-hosting"
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "agency-hosting_listAvailablePHPVersionsForAnOrderV1",
|
|
677
|
+
"description": "Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.",
|
|
678
|
+
"method": "GET",
|
|
679
|
+
"path": "/api/agency-hosting/v1/orders/{order_id}/websites/php-settings/versions",
|
|
680
|
+
"inputSchema": {
|
|
681
|
+
"type": "object",
|
|
682
|
+
"properties": {
|
|
683
|
+
"order_id": {
|
|
684
|
+
"type": "integer",
|
|
685
|
+
"description": "Agency Plan order ID"
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"required": [
|
|
689
|
+
"order_id"
|
|
690
|
+
]
|
|
691
|
+
},
|
|
692
|
+
"security": [
|
|
693
|
+
{
|
|
694
|
+
"apiToken": []
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"group": "agency-hosting"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"name": "agency-hosting_listAvailablePHPVersionsForAWebsiteV1",
|
|
701
|
+
"description": "Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.",
|
|
702
|
+
"method": "GET",
|
|
703
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/versions",
|
|
704
|
+
"inputSchema": {
|
|
705
|
+
"type": "object",
|
|
706
|
+
"properties": {
|
|
707
|
+
"website_uid": {
|
|
708
|
+
"type": "string",
|
|
709
|
+
"description": "Agency Plan website UID"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"required": [
|
|
713
|
+
"website_uid"
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
"security": [
|
|
717
|
+
{
|
|
718
|
+
"apiToken": []
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
"group": "agency-hosting"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "agency-hosting_updateWebsitePHPVersionV1",
|
|
725
|
+
"description": "Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.",
|
|
726
|
+
"method": "PATCH",
|
|
727
|
+
"path": "/api/agency-hosting/v1/websites/{website_uid}/php-settings/version",
|
|
728
|
+
"inputSchema": {
|
|
729
|
+
"type": "object",
|
|
730
|
+
"properties": {
|
|
731
|
+
"website_uid": {
|
|
732
|
+
"type": "string",
|
|
733
|
+
"description": "Agency Plan website UID"
|
|
734
|
+
},
|
|
735
|
+
"version": {
|
|
736
|
+
"type": "string",
|
|
737
|
+
"description": "PHP version to switch the website to, as major.minor. Must be one of the versions returned by the available versions endpoint."
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
"required": [
|
|
741
|
+
"website_uid",
|
|
742
|
+
"version"
|
|
743
|
+
]
|
|
744
|
+
},
|
|
745
|
+
"security": [
|
|
746
|
+
{
|
|
747
|
+
"apiToken": []
|
|
748
|
+
}
|
|
749
|
+
],
|
|
750
|
+
"group": "agency-hosting"
|
|
751
|
+
},
|
|
547
752
|
{
|
|
548
753
|
"name": "agency-hosting_createANewWebsiteV1",
|
|
549
754
|
"description": "Provisions a new website on one of your Agency Plan hosting orders.\n\nChoose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach\nyour own `domain` — omit it, set it to `null`, or leave it unavailable and a free\n`*.hostingersite.com` subdomain is generated instead — and/or install WordPress by\nsupplying the `wordpress` details (admin account, site title, and language).\n\nCommon setups:\n- **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit\n `wordpress` and `type`.\n- **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus\n the `wordpress` block (admin account, title, language).\n- **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to\n `node-static`.\n\nProvisioning runs in the background, so the response returns immediately with a setup UUID\nthat identifies the job. The new website becomes reachable once provisioning finishes.",
|
|
@@ -4926,6 +5131,116 @@ const tools: OpenApiTool[] = [
|
|
|
4926
5131
|
],
|
|
4927
5132
|
"group": "hosting"
|
|
4928
5133
|
},
|
|
5134
|
+
{
|
|
5135
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
5136
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
5137
|
+
"method": "GET",
|
|
5138
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5139
|
+
"inputSchema": {
|
|
5140
|
+
"type": "object",
|
|
5141
|
+
"properties": {
|
|
5142
|
+
"username": {
|
|
5143
|
+
"type": "string",
|
|
5144
|
+
"description": "username parameter"
|
|
5145
|
+
},
|
|
5146
|
+
"domain": {
|
|
5147
|
+
"type": "string",
|
|
5148
|
+
"description": "Domain name"
|
|
5149
|
+
},
|
|
5150
|
+
"page": {
|
|
5151
|
+
"type": "integer",
|
|
5152
|
+
"description": "Page number"
|
|
5153
|
+
},
|
|
5154
|
+
"per_page": {
|
|
5155
|
+
"type": "integer",
|
|
5156
|
+
"description": "Number of items per page"
|
|
5157
|
+
}
|
|
5158
|
+
},
|
|
5159
|
+
"required": [
|
|
5160
|
+
"username",
|
|
5161
|
+
"domain"
|
|
5162
|
+
]
|
|
5163
|
+
},
|
|
5164
|
+
"security": [
|
|
5165
|
+
{
|
|
5166
|
+
"apiToken": []
|
|
5167
|
+
}
|
|
5168
|
+
],
|
|
5169
|
+
"group": "hosting"
|
|
5170
|
+
},
|
|
5171
|
+
{
|
|
5172
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
5173
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
5174
|
+
"method": "POST",
|
|
5175
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5176
|
+
"inputSchema": {
|
|
5177
|
+
"type": "object",
|
|
5178
|
+
"properties": {
|
|
5179
|
+
"username": {
|
|
5180
|
+
"type": "string",
|
|
5181
|
+
"description": "username parameter"
|
|
5182
|
+
},
|
|
5183
|
+
"domain": {
|
|
5184
|
+
"type": "string",
|
|
5185
|
+
"description": "Domain name"
|
|
5186
|
+
},
|
|
5187
|
+
"from": {
|
|
5188
|
+
"type": "string",
|
|
5189
|
+
"description": "Source URL on the selected website"
|
|
5190
|
+
},
|
|
5191
|
+
"to": {
|
|
5192
|
+
"type": "string",
|
|
5193
|
+
"description": "Destination URL or IP address"
|
|
5194
|
+
}
|
|
5195
|
+
},
|
|
5196
|
+
"required": [
|
|
5197
|
+
"username",
|
|
5198
|
+
"domain",
|
|
5199
|
+
"from",
|
|
5200
|
+
"to"
|
|
5201
|
+
]
|
|
5202
|
+
},
|
|
5203
|
+
"security": [
|
|
5204
|
+
{
|
|
5205
|
+
"apiToken": []
|
|
5206
|
+
}
|
|
5207
|
+
],
|
|
5208
|
+
"group": "hosting"
|
|
5209
|
+
},
|
|
5210
|
+
{
|
|
5211
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
5212
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
5213
|
+
"method": "DELETE",
|
|
5214
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
5215
|
+
"inputSchema": {
|
|
5216
|
+
"type": "object",
|
|
5217
|
+
"properties": {
|
|
5218
|
+
"username": {
|
|
5219
|
+
"type": "string",
|
|
5220
|
+
"description": "username parameter"
|
|
5221
|
+
},
|
|
5222
|
+
"domain": {
|
|
5223
|
+
"type": "string",
|
|
5224
|
+
"description": "Domain name"
|
|
5225
|
+
},
|
|
5226
|
+
"from": {
|
|
5227
|
+
"type": "string",
|
|
5228
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
5229
|
+
}
|
|
5230
|
+
},
|
|
5231
|
+
"required": [
|
|
5232
|
+
"username",
|
|
5233
|
+
"domain",
|
|
5234
|
+
"from"
|
|
5235
|
+
]
|
|
5236
|
+
},
|
|
5237
|
+
"security": [
|
|
5238
|
+
{
|
|
5239
|
+
"apiToken": []
|
|
5240
|
+
}
|
|
5241
|
+
],
|
|
5242
|
+
"group": "hosting"
|
|
5243
|
+
},
|
|
4929
5244
|
{
|
|
4930
5245
|
"name": "hosting_listWebsitesV1",
|
|
4931
5246
|
"description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
|