hostinger-api-mcp 0.2.19 → 0.2.20
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 +36 -2
- 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/all.js +116 -0
- package/src/core/tools/all.ts +116 -0
- package/src/core/tools/hosting.js +116 -0
- package/src/core/tools/hosting.ts +116 -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/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/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 +74 -0
package/README.md
CHANGED
|
@@ -49,13 +49,13 @@ pnpm update -g hostinger-api-mcp
|
|
|
49
49
|
|
|
50
50
|
This package installs the following MCP server commands:
|
|
51
51
|
|
|
52
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (153 total)
|
|
53
53
|
- `hostinger-billing-mcp` — 7 tools for billing
|
|
54
54
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
55
55
|
- `hostinger-domains-mcp` — 18 tools for domains
|
|
56
56
|
- `hostinger-ecommerce-mcp` — 7 tools for ecommerce
|
|
57
57
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
58
|
-
- `hostinger-hosting-mcp` —
|
|
58
|
+
- `hostinger-hosting-mcp` — 37 tools for hosting
|
|
59
59
|
- `hostinger-reach-mcp` — 12 tools for reach
|
|
60
60
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
61
61
|
|
|
@@ -702,6 +702,40 @@ Retrieve logs for a specified JavaScript application deployment for debugging pu
|
|
|
702
702
|
- **Method**: `custom`
|
|
703
703
|
- **Path**: `custom`
|
|
704
704
|
|
|
705
|
+
#### hosting_listAccountCronJobsV1
|
|
706
|
+
|
|
707
|
+
Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
708
|
+
|
|
709
|
+
- **Method**: `GET`
|
|
710
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/cron-jobs`
|
|
711
|
+
|
|
712
|
+
#### hosting_createAccountCronJobV1
|
|
713
|
+
|
|
714
|
+
Creates a cron job for the specified account from a schedule expression and a command.
|
|
715
|
+
|
|
716
|
+
Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
717
|
+
|
|
718
|
+
- **Method**: `POST`
|
|
719
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/cron-jobs`
|
|
720
|
+
|
|
721
|
+
#### hosting_deleteAccountCronJobV1
|
|
722
|
+
|
|
723
|
+
Permanently deletes the cron job identified by its uid.
|
|
724
|
+
|
|
725
|
+
The uid is returned by the list cron jobs endpoint.
|
|
726
|
+
|
|
727
|
+
- **Method**: `DELETE`
|
|
728
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
|
|
729
|
+
|
|
730
|
+
#### hosting_getCronJobOutputV1
|
|
731
|
+
|
|
732
|
+
Returns the output captured from the last execution of the cron job identified by its uid.
|
|
733
|
+
|
|
734
|
+
The uid is returned by the list cron jobs endpoint.
|
|
735
|
+
|
|
736
|
+
- **Method**: `GET`
|
|
737
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
|
|
738
|
+
|
|
705
739
|
#### hosting_changeDatabasePasswordV1
|
|
706
740
|
|
|
707
741
|
Changes the password for the specified database user.
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/hostinger/api-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.20",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "0.2.
|
|
14
|
+
"version": "0.2.20",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED
package/src/core/tools/all.js
CHANGED
|
@@ -1602,6 +1602,122 @@ export default [
|
|
|
1602
1602
|
],
|
|
1603
1603
|
"group": "horizons"
|
|
1604
1604
|
},
|
|
1605
|
+
{
|
|
1606
|
+
"name": "hosting_listAccountCronJobsV1",
|
|
1607
|
+
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
|
1608
|
+
"method": "GET",
|
|
1609
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
1610
|
+
"inputSchema": {
|
|
1611
|
+
"type": "object",
|
|
1612
|
+
"properties": {
|
|
1613
|
+
"username": {
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"description": "username parameter"
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
"required": [
|
|
1619
|
+
"username"
|
|
1620
|
+
]
|
|
1621
|
+
},
|
|
1622
|
+
"security": [
|
|
1623
|
+
{
|
|
1624
|
+
"apiToken": []
|
|
1625
|
+
}
|
|
1626
|
+
],
|
|
1627
|
+
"group": "hosting"
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"name": "hosting_createAccountCronJobV1",
|
|
1631
|
+
"description": "Creates a cron job for the specified account from a schedule expression and a command.\n\nReturns the created cron job, including its uid, which is required to delete the cron job or fetch its output.",
|
|
1632
|
+
"method": "POST",
|
|
1633
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
1634
|
+
"inputSchema": {
|
|
1635
|
+
"type": "object",
|
|
1636
|
+
"properties": {
|
|
1637
|
+
"username": {
|
|
1638
|
+
"type": "string",
|
|
1639
|
+
"description": "username parameter"
|
|
1640
|
+
},
|
|
1641
|
+
"time": {
|
|
1642
|
+
"type": "string",
|
|
1643
|
+
"description": "Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00)."
|
|
1644
|
+
},
|
|
1645
|
+
"command": {
|
|
1646
|
+
"type": "string",
|
|
1647
|
+
"description": "Command to execute on the schedule."
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1650
|
+
"required": [
|
|
1651
|
+
"username",
|
|
1652
|
+
"time",
|
|
1653
|
+
"command"
|
|
1654
|
+
]
|
|
1655
|
+
},
|
|
1656
|
+
"security": [
|
|
1657
|
+
{
|
|
1658
|
+
"apiToken": []
|
|
1659
|
+
}
|
|
1660
|
+
],
|
|
1661
|
+
"group": "hosting"
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"name": "hosting_deleteAccountCronJobV1",
|
|
1665
|
+
"description": "Permanently deletes the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
1666
|
+
"method": "DELETE",
|
|
1667
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}",
|
|
1668
|
+
"inputSchema": {
|
|
1669
|
+
"type": "object",
|
|
1670
|
+
"properties": {
|
|
1671
|
+
"username": {
|
|
1672
|
+
"type": "string",
|
|
1673
|
+
"description": "username parameter"
|
|
1674
|
+
},
|
|
1675
|
+
"uid": {
|
|
1676
|
+
"type": "string",
|
|
1677
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
1678
|
+
}
|
|
1679
|
+
},
|
|
1680
|
+
"required": [
|
|
1681
|
+
"username",
|
|
1682
|
+
"uid"
|
|
1683
|
+
]
|
|
1684
|
+
},
|
|
1685
|
+
"security": [
|
|
1686
|
+
{
|
|
1687
|
+
"apiToken": []
|
|
1688
|
+
}
|
|
1689
|
+
],
|
|
1690
|
+
"group": "hosting"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"name": "hosting_getCronJobOutputV1",
|
|
1694
|
+
"description": "Returns the output captured from the last execution of the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
1695
|
+
"method": "GET",
|
|
1696
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output",
|
|
1697
|
+
"inputSchema": {
|
|
1698
|
+
"type": "object",
|
|
1699
|
+
"properties": {
|
|
1700
|
+
"username": {
|
|
1701
|
+
"type": "string",
|
|
1702
|
+
"description": "username parameter"
|
|
1703
|
+
},
|
|
1704
|
+
"uid": {
|
|
1705
|
+
"type": "string",
|
|
1706
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
"required": [
|
|
1710
|
+
"username",
|
|
1711
|
+
"uid"
|
|
1712
|
+
]
|
|
1713
|
+
},
|
|
1714
|
+
"security": [
|
|
1715
|
+
{
|
|
1716
|
+
"apiToken": []
|
|
1717
|
+
}
|
|
1718
|
+
],
|
|
1719
|
+
"group": "hosting"
|
|
1720
|
+
},
|
|
1605
1721
|
{
|
|
1606
1722
|
"name": "hosting_changeDatabasePasswordV1",
|
|
1607
1723
|
"description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -1612,6 +1612,122 @@ const tools: OpenApiTool[] = [
|
|
|
1612
1612
|
],
|
|
1613
1613
|
"group": "horizons"
|
|
1614
1614
|
},
|
|
1615
|
+
{
|
|
1616
|
+
"name": "hosting_listAccountCronJobsV1",
|
|
1617
|
+
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
|
1618
|
+
"method": "GET",
|
|
1619
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
1620
|
+
"inputSchema": {
|
|
1621
|
+
"type": "object",
|
|
1622
|
+
"properties": {
|
|
1623
|
+
"username": {
|
|
1624
|
+
"type": "string",
|
|
1625
|
+
"description": "username parameter"
|
|
1626
|
+
}
|
|
1627
|
+
},
|
|
1628
|
+
"required": [
|
|
1629
|
+
"username"
|
|
1630
|
+
]
|
|
1631
|
+
},
|
|
1632
|
+
"security": [
|
|
1633
|
+
{
|
|
1634
|
+
"apiToken": []
|
|
1635
|
+
}
|
|
1636
|
+
],
|
|
1637
|
+
"group": "hosting"
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"name": "hosting_createAccountCronJobV1",
|
|
1641
|
+
"description": "Creates a cron job for the specified account from a schedule expression and a command.\n\nReturns the created cron job, including its uid, which is required to delete the cron job or fetch its output.",
|
|
1642
|
+
"method": "POST",
|
|
1643
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
1644
|
+
"inputSchema": {
|
|
1645
|
+
"type": "object",
|
|
1646
|
+
"properties": {
|
|
1647
|
+
"username": {
|
|
1648
|
+
"type": "string",
|
|
1649
|
+
"description": "username parameter"
|
|
1650
|
+
},
|
|
1651
|
+
"time": {
|
|
1652
|
+
"type": "string",
|
|
1653
|
+
"description": "Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00)."
|
|
1654
|
+
},
|
|
1655
|
+
"command": {
|
|
1656
|
+
"type": "string",
|
|
1657
|
+
"description": "Command to execute on the schedule."
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
"required": [
|
|
1661
|
+
"username",
|
|
1662
|
+
"time",
|
|
1663
|
+
"command"
|
|
1664
|
+
]
|
|
1665
|
+
},
|
|
1666
|
+
"security": [
|
|
1667
|
+
{
|
|
1668
|
+
"apiToken": []
|
|
1669
|
+
}
|
|
1670
|
+
],
|
|
1671
|
+
"group": "hosting"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
"name": "hosting_deleteAccountCronJobV1",
|
|
1675
|
+
"description": "Permanently deletes the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
1676
|
+
"method": "DELETE",
|
|
1677
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}",
|
|
1678
|
+
"inputSchema": {
|
|
1679
|
+
"type": "object",
|
|
1680
|
+
"properties": {
|
|
1681
|
+
"username": {
|
|
1682
|
+
"type": "string",
|
|
1683
|
+
"description": "username parameter"
|
|
1684
|
+
},
|
|
1685
|
+
"uid": {
|
|
1686
|
+
"type": "string",
|
|
1687
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
"required": [
|
|
1691
|
+
"username",
|
|
1692
|
+
"uid"
|
|
1693
|
+
]
|
|
1694
|
+
},
|
|
1695
|
+
"security": [
|
|
1696
|
+
{
|
|
1697
|
+
"apiToken": []
|
|
1698
|
+
}
|
|
1699
|
+
],
|
|
1700
|
+
"group": "hosting"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"name": "hosting_getCronJobOutputV1",
|
|
1704
|
+
"description": "Returns the output captured from the last execution of the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
1705
|
+
"method": "GET",
|
|
1706
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output",
|
|
1707
|
+
"inputSchema": {
|
|
1708
|
+
"type": "object",
|
|
1709
|
+
"properties": {
|
|
1710
|
+
"username": {
|
|
1711
|
+
"type": "string",
|
|
1712
|
+
"description": "username parameter"
|
|
1713
|
+
},
|
|
1714
|
+
"uid": {
|
|
1715
|
+
"type": "string",
|
|
1716
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"required": [
|
|
1720
|
+
"username",
|
|
1721
|
+
"uid"
|
|
1722
|
+
]
|
|
1723
|
+
},
|
|
1724
|
+
"security": [
|
|
1725
|
+
{
|
|
1726
|
+
"apiToken": []
|
|
1727
|
+
}
|
|
1728
|
+
],
|
|
1729
|
+
"group": "hosting"
|
|
1730
|
+
},
|
|
1615
1731
|
{
|
|
1616
1732
|
"name": "hosting_changeDatabasePasswordV1",
|
|
1617
1733
|
"description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
|
|
@@ -257,6 +257,122 @@ export default [
|
|
|
257
257
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
258
258
|
"group": "hosting"
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"name": "hosting_listAccountCronJobsV1",
|
|
262
|
+
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
|
263
|
+
"method": "GET",
|
|
264
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
265
|
+
"inputSchema": {
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"username": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"description": "username parameter"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"required": [
|
|
274
|
+
"username"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"security": [
|
|
278
|
+
{
|
|
279
|
+
"apiToken": []
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"group": "hosting"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "hosting_createAccountCronJobV1",
|
|
286
|
+
"description": "Creates a cron job for the specified account from a schedule expression and a command.\n\nReturns the created cron job, including its uid, which is required to delete the cron job or fetch its output.",
|
|
287
|
+
"method": "POST",
|
|
288
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
289
|
+
"inputSchema": {
|
|
290
|
+
"type": "object",
|
|
291
|
+
"properties": {
|
|
292
|
+
"username": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"description": "username parameter"
|
|
295
|
+
},
|
|
296
|
+
"time": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00)."
|
|
299
|
+
},
|
|
300
|
+
"command": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"description": "Command to execute on the schedule."
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"required": [
|
|
306
|
+
"username",
|
|
307
|
+
"time",
|
|
308
|
+
"command"
|
|
309
|
+
]
|
|
310
|
+
},
|
|
311
|
+
"security": [
|
|
312
|
+
{
|
|
313
|
+
"apiToken": []
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"group": "hosting"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "hosting_deleteAccountCronJobV1",
|
|
320
|
+
"description": "Permanently deletes the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
321
|
+
"method": "DELETE",
|
|
322
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}",
|
|
323
|
+
"inputSchema": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"properties": {
|
|
326
|
+
"username": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"description": "username parameter"
|
|
329
|
+
},
|
|
330
|
+
"uid": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"required": [
|
|
336
|
+
"username",
|
|
337
|
+
"uid"
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
"security": [
|
|
341
|
+
{
|
|
342
|
+
"apiToken": []
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"group": "hosting"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "hosting_getCronJobOutputV1",
|
|
349
|
+
"description": "Returns the output captured from the last execution of the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
350
|
+
"method": "GET",
|
|
351
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output",
|
|
352
|
+
"inputSchema": {
|
|
353
|
+
"type": "object",
|
|
354
|
+
"properties": {
|
|
355
|
+
"username": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"description": "username parameter"
|
|
358
|
+
},
|
|
359
|
+
"uid": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"required": [
|
|
365
|
+
"username",
|
|
366
|
+
"uid"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"security": [
|
|
370
|
+
{
|
|
371
|
+
"apiToken": []
|
|
372
|
+
}
|
|
373
|
+
],
|
|
374
|
+
"group": "hosting"
|
|
375
|
+
},
|
|
260
376
|
{
|
|
261
377
|
"name": "hosting_changeDatabasePasswordV1",
|
|
262
378
|
"description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
|
|
@@ -267,6 +267,122 @@ const tools: OpenApiTool[] = [
|
|
|
267
267
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
268
268
|
"group": "hosting"
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"name": "hosting_listAccountCronJobsV1",
|
|
272
|
+
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
|
273
|
+
"method": "GET",
|
|
274
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
275
|
+
"inputSchema": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"username": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "username parameter"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"required": [
|
|
284
|
+
"username"
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
"security": [
|
|
288
|
+
{
|
|
289
|
+
"apiToken": []
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"group": "hosting"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "hosting_createAccountCronJobV1",
|
|
296
|
+
"description": "Creates a cron job for the specified account from a schedule expression and a command.\n\nReturns the created cron job, including its uid, which is required to delete the cron job or fetch its output.",
|
|
297
|
+
"method": "POST",
|
|
298
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs",
|
|
299
|
+
"inputSchema": {
|
|
300
|
+
"type": "object",
|
|
301
|
+
"properties": {
|
|
302
|
+
"username": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"description": "username parameter"
|
|
305
|
+
},
|
|
306
|
+
"time": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"description": "Cron schedule expression (for example \"0 2 * * *\" runs daily at 02:00)."
|
|
309
|
+
},
|
|
310
|
+
"command": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"description": "Command to execute on the schedule."
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"required": [
|
|
316
|
+
"username",
|
|
317
|
+
"time",
|
|
318
|
+
"command"
|
|
319
|
+
]
|
|
320
|
+
},
|
|
321
|
+
"security": [
|
|
322
|
+
{
|
|
323
|
+
"apiToken": []
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"group": "hosting"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "hosting_deleteAccountCronJobV1",
|
|
330
|
+
"description": "Permanently deletes the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
331
|
+
"method": "DELETE",
|
|
332
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}",
|
|
333
|
+
"inputSchema": {
|
|
334
|
+
"type": "object",
|
|
335
|
+
"properties": {
|
|
336
|
+
"username": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"description": "username parameter"
|
|
339
|
+
},
|
|
340
|
+
"uid": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"required": [
|
|
346
|
+
"username",
|
|
347
|
+
"uid"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"security": [
|
|
351
|
+
{
|
|
352
|
+
"apiToken": []
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"group": "hosting"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "hosting_getCronJobOutputV1",
|
|
359
|
+
"description": "Returns the output captured from the last execution of the cron job identified by its uid.\n\nThe uid is returned by the list cron jobs endpoint.",
|
|
360
|
+
"method": "GET",
|
|
361
|
+
"path": "/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output",
|
|
362
|
+
"inputSchema": {
|
|
363
|
+
"type": "object",
|
|
364
|
+
"properties": {
|
|
365
|
+
"username": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"description": "username parameter"
|
|
368
|
+
},
|
|
369
|
+
"uid": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"description": "Unique identifier of the cron job as returned by the list cron jobs endpoint."
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"required": [
|
|
375
|
+
"username",
|
|
376
|
+
"uid"
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
"security": [
|
|
380
|
+
{
|
|
381
|
+
"apiToken": []
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"group": "hosting"
|
|
385
|
+
},
|
|
270
386
|
{
|
|
271
387
|
"name": "hosting_changeDatabasePasswordV1",
|
|
272
388
|
"description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
|
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/ecommerce.js
CHANGED
package/src/servers/ecommerce.ts
CHANGED
package/src/servers/horizons.js
CHANGED
package/src/servers/horizons.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
|
@@ -1017,6 +1017,80 @@ Websites can only be edited in Hostinger Horizons interface in the provided webs
|
|
|
1017
1017
|
response: any; // Response structure will depend on the API
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
1020
|
+
/**
|
|
1021
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
1022
|
+
*/
|
|
1023
|
+
"hosting_listAccountCronJobsV1": {
|
|
1024
|
+
params: {
|
|
1025
|
+
/**
|
|
1026
|
+
* username parameter
|
|
1027
|
+
*/
|
|
1028
|
+
username: string;
|
|
1029
|
+
};
|
|
1030
|
+
response: any; // Response structure will depend on the API
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Creates a cron job for the specified account from a schedule expression and a command.
|
|
1035
|
+
|
|
1036
|
+
Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
|
|
1037
|
+
*/
|
|
1038
|
+
"hosting_createAccountCronJobV1": {
|
|
1039
|
+
params: {
|
|
1040
|
+
/**
|
|
1041
|
+
* username parameter
|
|
1042
|
+
*/
|
|
1043
|
+
username: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* Cron schedule expression (for example "0 2 * * *" runs daily at 02:00).
|
|
1046
|
+
*/
|
|
1047
|
+
time: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Command to execute on the schedule.
|
|
1050
|
+
*/
|
|
1051
|
+
command: string;
|
|
1052
|
+
};
|
|
1053
|
+
response: any; // Response structure will depend on the API
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Permanently deletes the cron job identified by its uid.
|
|
1058
|
+
|
|
1059
|
+
The uid is returned by the list cron jobs endpoint.
|
|
1060
|
+
*/
|
|
1061
|
+
"hosting_deleteAccountCronJobV1": {
|
|
1062
|
+
params: {
|
|
1063
|
+
/**
|
|
1064
|
+
* username parameter
|
|
1065
|
+
*/
|
|
1066
|
+
username: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
1069
|
+
*/
|
|
1070
|
+
uid: string;
|
|
1071
|
+
};
|
|
1072
|
+
response: any; // Response structure will depend on the API
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Returns the output captured from the last execution of the cron job identified by its uid.
|
|
1077
|
+
|
|
1078
|
+
The uid is returned by the list cron jobs endpoint.
|
|
1079
|
+
*/
|
|
1080
|
+
"hosting_getCronJobOutputV1": {
|
|
1081
|
+
params: {
|
|
1082
|
+
/**
|
|
1083
|
+
* username parameter
|
|
1084
|
+
*/
|
|
1085
|
+
username: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
1088
|
+
*/
|
|
1089
|
+
uid: string;
|
|
1090
|
+
};
|
|
1091
|
+
response: any; // Response structure will depend on the API
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1020
1094
|
/**
|
|
1021
1095
|
* Changes the password for the specified database user.
|
|
1022
1096
|
|