hostinger-api-sdk 1.5.1 → 1.21.1
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/.github/workflows/build-release.yaml +29 -1
- package/README.md +2 -2
- package/api.ts +18917 -8154
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +13394 -6243
- package/dist/api.js +10470 -3788
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +13394 -6243
- package/dist/esm/api.js +10463 -3867
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgencyHostingCacheApi.md +61 -0
- package/docs/AgencyHostingCronJobsApi.md +183 -0
- package/docs/AgencyHostingDatabasesApi.md +305 -0
- package/docs/AgencyHostingDatacentersApi.md +61 -0
- package/docs/AgencyHostingDomainsApi.md +245 -0
- package/docs/AgencyHostingFilesApi.md +66 -0
- package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
- package/docs/AgencyHostingOrdersApi.md +64 -0
- package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
- package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
- package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
- package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
- package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
- package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
- package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
- package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
- package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
- package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
- package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
- package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
- package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
- package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
- package/docs/AgencyHostingWebsitesApi.md +228 -0
- package/docs/AgencyHostingWordPressApi.md +174 -0
- package/docs/BillingCatalogApi.md +2 -2
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingV1OrderPurchaseRequest.md +24 -0
- package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
- package/docs/DomainsForwardingApi.md +59 -0
- package/docs/DomainsPortfolioApi.md +108 -0
- package/docs/DomainsTransferApi.md +108 -0
- package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
- package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
- package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
- package/docs/DomainsV1TransferTransferResource.md +26 -0
- package/docs/HostingDatabasesApi.md +63 -63
- package/docs/HostingNodeJSApi.md +122 -0
- package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
- package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
- package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
- package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +59 -0
- package/docs/MailAPITokensApi.md +185 -0
- package/docs/MailAliasesApi.md +186 -0
- package/docs/MailAutorepliesApi.md +246 -0
- package/docs/MailCatchallsApi.md +239 -0
- package/docs/MailForwardersApi.md +304 -0
- package/docs/MailListAPITokensV1200Response.md +22 -0
- package/docs/MailListAccessLogsV1200Response.md +22 -0
- package/docs/MailListActionLogsV1200Response.md +22 -0
- package/docs/MailListAliasesV1200Response.md +22 -0
- package/docs/MailListAutorepliesV1200Response.md +22 -0
- package/docs/MailListCatchAllsV1200Response.md +22 -0
- package/docs/MailListForwardersV1200Response.md +22 -0
- package/docs/MailListInboundLogsV1200Response.md +22 -0
- package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
- package/docs/MailListMailboxesV1200Response.md +22 -0
- package/docs/MailListOrdersV1200Response.md +22 -0
- package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
- package/docs/MailListWebhooksV1200Response.md +22 -0
- package/docs/MailLogsApi.md +410 -0
- package/docs/MailMailboxesApi.md +253 -0
- package/docs/MailOrdersApi.md +132 -0
- package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
- package/docs/MailV1AliasesAliasResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
- package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
- package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
- package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
- package/docs/MailV1CatchallsCatchallResource.md +32 -0
- package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
- package/docs/MailV1ForwardersForwarderResource.md +34 -0
- package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
- package/docs/MailV1LogsActionActionLogResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
- package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
- package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
- package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
- package/docs/MailV1MailboxesMailboxResource.md +38 -0
- package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
- package/docs/MailV1OrdersOrderDomainResource.md +22 -0
- package/docs/MailV1OrdersOrderPlanResource.md +22 -0
- package/docs/MailV1OrdersOrderResource.md +36 -0
- package/docs/MailV1OrdersPlanDomainResource.md +30 -0
- package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
- package/docs/MailV1OrdersPlanResource.md +26 -0
- package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
- package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
- package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
- package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
- package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
- package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
- package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
- package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
- package/docs/MailV1WebhooksWebhookResource.md +36 -0
- package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
- package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
- package/docs/MailWebhooksApi.md +488 -0
- package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
- package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters
|
|
2
|
+
|
|
3
|
+
Plan parameters
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**disk_quota_bytes** | **number** | Disk quota in bytes | [optional] [default to undefined]
|
|
10
|
+
**inode_quota** | **number** | Inode quota | [optional] [default to undefined]
|
|
11
|
+
**cpu_cores** | **number** | CPU cores | [optional] [default to undefined]
|
|
12
|
+
**memory_quota_bytes** | **number** | Memory quota in bytes | [optional] [default to undefined]
|
|
13
|
+
**disk_iops_quota** | **number** | Disk IOPs quota | [optional] [default to undefined]
|
|
14
|
+
**process_quota** | **number** | Process quota | [optional] [default to undefined]
|
|
15
|
+
**website_quota** | **number** | Website quota | [optional] [default to undefined]
|
|
16
|
+
**max_databases_per_website** | **number** | Maximum number of databases per website | [optional] [default to undefined]
|
|
17
|
+
**is_cdn_available** | **boolean** | Is CDN available | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters } from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const instance: AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters = {
|
|
25
|
+
disk_quota_bytes,
|
|
26
|
+
inode_quota,
|
|
27
|
+
cpu_cores,
|
|
28
|
+
memory_quota_bytes,
|
|
29
|
+
disk_iops_quota,
|
|
30
|
+
process_quota,
|
|
31
|
+
website_quota,
|
|
32
|
+
max_databases_per_website,
|
|
33
|
+
is_cdn_available,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteOrderResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Order ID | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Order status | [optional] [default to undefined]
|
|
10
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**plan** | [**AgencyHostingV1WebsitesWebsiteOrderPlanResource**](AgencyHostingV1WebsitesWebsiteOrderPlanResource.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AgencyHostingV1WebsitesWebsiteOrderResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: AgencyHostingV1WebsitesWebsiteOrderResource = {
|
|
19
|
+
id,
|
|
20
|
+
status,
|
|
21
|
+
created_at,
|
|
22
|
+
plan,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsitePhpSettingsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**version** | **string** | PHP version | [optional] [default to undefined]
|
|
9
|
+
**workers** | **number** | Number of PHP workers | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AgencyHostingV1WebsitesWebsitePhpSettingsResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AgencyHostingV1WebsitesWebsitePhpSettingsResource = {
|
|
17
|
+
version,
|
|
18
|
+
workers,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsitePreviewDomainResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**fqdn** | **string** | Preview domain name | [optional] [default to undefined]
|
|
9
|
+
**created_at** | **string** | Creation date | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AgencyHostingV1WebsitesWebsitePreviewDomainResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AgencyHostingV1WebsitesWebsitePreviewDomainResource = {
|
|
17
|
+
fqdn,
|
|
18
|
+
created_at,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteProcessResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Process ID | [optional] [default to undefined]
|
|
9
|
+
**type** | **string** | Process type | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | Process status | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { AgencyHostingV1WebsitesWebsiteProcessResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: AgencyHostingV1WebsitesWebsiteProcessResource = {
|
|
18
|
+
id,
|
|
19
|
+
type,
|
|
20
|
+
status,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteRemoteAccessResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**mode** | **string** | Remote access mode | [optional] [default to undefined]
|
|
9
|
+
**ssh** | [**AgencyHostingV1WebsitesWebsiteSshDetailsResource**](AgencyHostingV1WebsitesWebsiteSshDetailsResource.md) | | [optional] [default to undefined]
|
|
10
|
+
**sftp** | [**AgencyHostingV1WebsitesWebsiteSftpDetailsResource**](AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { AgencyHostingV1WebsitesWebsiteRemoteAccessResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: AgencyHostingV1WebsitesWebsiteRemoteAccessResource = {
|
|
18
|
+
mode,
|
|
19
|
+
ssh,
|
|
20
|
+
sftp,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | Website UID | [optional] [default to undefined]
|
|
9
|
+
**ipv4** | **string** | IPv4 address | [optional] [default to undefined]
|
|
10
|
+
**flavor** | **string** | Setup flavor | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | Website type | [optional] [default to undefined]
|
|
12
|
+
**description** | **string** | Description | [optional] [default to undefined]
|
|
13
|
+
**state** | **string** | Website state | [optional] [default to undefined]
|
|
14
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**domains** | [**Array<AgencyHostingV1WebsitesWebsiteDomainDetailsResource>**](AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md) | Array of [`AgencyHosting.V1.Websites.WebsiteDomainDetailsResource`](#model/agencyhostingv1websiteswebsitedomaindetailsresource) | [optional] [default to undefined]
|
|
16
|
+
**preview_domain** | [**AgencyHostingV1WebsitesWebsitePreviewDomainResource**](AgencyHostingV1WebsitesWebsitePreviewDomainResource.md) | | [optional] [default to undefined]
|
|
17
|
+
**settings** | [**AgencyHostingV1WebsitesWebsiteSettingsResource**](AgencyHostingV1WebsitesWebsiteSettingsResource.md) | | [optional] [default to undefined]
|
|
18
|
+
**wordpress** | [**AgencyHostingV1WebsitesWordPressInstallResource**](AgencyHostingV1WebsitesWordPressInstallResource.md) | | [optional] [default to undefined]
|
|
19
|
+
**remote_access** | [**AgencyHostingV1WebsitesWebsiteRemoteAccessResource**](AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md) | | [optional] [default to undefined]
|
|
20
|
+
**server** | [**AgencyHostingV1WebsitesWebsiteServerResource**](AgencyHostingV1WebsitesWebsiteServerResource.md) | | [optional] [default to undefined]
|
|
21
|
+
**order** | [**AgencyHostingV1WebsitesWebsiteOrderResource**](AgencyHostingV1WebsitesWebsiteOrderResource.md) | | [optional] [default to undefined]
|
|
22
|
+
**user** | [**AgencyHostingV1WebsitesWebsiteUserResource**](AgencyHostingV1WebsitesWebsiteUserResource.md) | | [optional] [default to undefined]
|
|
23
|
+
**staging_root** | [**AgencyHostingV1WebsitesWebsiteStagingRootResource**](AgencyHostingV1WebsitesWebsiteStagingRootResource.md) | | [optional] [default to undefined]
|
|
24
|
+
|
|
25
|
+
## Example
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { AgencyHostingV1WebsitesWebsiteResource } from 'hostinger-api-sdk';
|
|
29
|
+
|
|
30
|
+
const instance: AgencyHostingV1WebsitesWebsiteResource = {
|
|
31
|
+
uid,
|
|
32
|
+
ipv4,
|
|
33
|
+
flavor,
|
|
34
|
+
type,
|
|
35
|
+
description,
|
|
36
|
+
state,
|
|
37
|
+
created_at,
|
|
38
|
+
domains,
|
|
39
|
+
preview_domain,
|
|
40
|
+
settings,
|
|
41
|
+
wordpress,
|
|
42
|
+
remote_access,
|
|
43
|
+
server,
|
|
44
|
+
order,
|
|
45
|
+
user,
|
|
46
|
+
staging_root,
|
|
47
|
+
};
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteServerResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hostname** | **string** | Server hostname | [optional] [default to undefined]
|
|
9
|
+
**country_code** | **string** | Country code | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AgencyHostingV1WebsitesWebsiteServerResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AgencyHostingV1WebsitesWebsiteServerResource = {
|
|
17
|
+
hostname,
|
|
18
|
+
country_code,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteSettingsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**php** | [**AgencyHostingV1WebsitesWebsitePhpSettingsResource**](AgencyHostingV1WebsitesWebsitePhpSettingsResource.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AgencyHostingV1WebsitesWebsiteSettingsResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AgencyHostingV1WebsitesWebsiteSettingsResource = {
|
|
16
|
+
php,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteSftpDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**username** | **string** | SFTP username | [optional] [default to undefined]
|
|
9
|
+
**host** | **string** | SFTP host | [optional] [default to undefined]
|
|
10
|
+
**port** | **number** | SFTP port | [optional] [default to undefined]
|
|
11
|
+
**is_enabled** | **boolean** | Is SFTP access enabled | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AgencyHostingV1WebsitesWebsiteSftpDetailsResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: AgencyHostingV1WebsitesWebsiteSftpDetailsResource = {
|
|
19
|
+
username,
|
|
20
|
+
host,
|
|
21
|
+
port,
|
|
22
|
+
is_enabled,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteSshDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**username** | **string** | SSH username | [optional] [default to undefined]
|
|
9
|
+
**host** | **string** | SSH host | [optional] [default to undefined]
|
|
10
|
+
**port** | **number** | SSH port | [optional] [default to undefined]
|
|
11
|
+
**is_enabled** | **boolean** | Is SSH access enabled | [optional] [default to undefined]
|
|
12
|
+
**is_password_enabled** | **boolean** | Is SSH password access enabled | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { AgencyHostingV1WebsitesWebsiteSshDetailsResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: AgencyHostingV1WebsitesWebsiteSshDetailsResource = {
|
|
20
|
+
username,
|
|
21
|
+
host,
|
|
22
|
+
port,
|
|
23
|
+
is_enabled,
|
|
24
|
+
is_password_enabled,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteStagingRootResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | UID of the website this is a staging environment of | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AgencyHostingV1WebsitesWebsiteStagingRootResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AgencyHostingV1WebsitesWebsiteStagingRootResource = {
|
|
16
|
+
uid,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteUserResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**username** | **string** | System username | [optional] [default to undefined]
|
|
9
|
+
**state** | **string** | User state | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AgencyHostingV1WebsitesWebsiteUserResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AgencyHostingV1WebsitesWebsiteUserResource = {
|
|
17
|
+
username,
|
|
18
|
+
state,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWordPressInstallResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | WordPress domain | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | WordPress title | [optional] [default to undefined]
|
|
10
|
+
**language** | **string** | WordPress language | [optional] [default to undefined]
|
|
11
|
+
**is_config_locked** | **boolean** | WordPress configuration lock status | [optional] [default to undefined]
|
|
12
|
+
**created_at** | **string** | Creation date | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { AgencyHostingV1WebsitesWordPressInstallResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: AgencyHostingV1WebsitesWordPressInstallResource = {
|
|
20
|
+
domain,
|
|
21
|
+
title,
|
|
22
|
+
language,
|
|
23
|
+
is_config_locked,
|
|
24
|
+
created_at,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AgencyHostingV1WordPressChangeVersionRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**version** | **string** | Target WordPress core version to install. Must be one of the available versions. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AgencyHostingV1WordPressChangeVersionRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AgencyHostingV1WordPressChangeVersionRequest = {
|
|
16
|
+
version,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# AgencyHostingV1WordPressSettingsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**core_version** | **string** | Currently installed WordPress core version, or null when it cannot be determined. | [optional] [default to undefined]
|
|
9
|
+
**is_lite_speed_cache_enabled** | **boolean** | Whether the LiteSpeed Cache plugin is active. | [optional] [default to undefined]
|
|
10
|
+
**is_object_cache_enabled** | **boolean** | Whether LiteSpeed object cache is enabled. | [optional] [default to undefined]
|
|
11
|
+
**is_maintenance_mode_enabled** | **boolean** | Whether WordPress maintenance mode is currently enabled. | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AgencyHostingV1WordPressSettingsResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: AgencyHostingV1WordPressSettingsResource = {
|
|
19
|
+
core_version,
|
|
20
|
+
is_lite_speed_cache_enabled,
|
|
21
|
+
is_object_cache_enabled,
|
|
22
|
+
is_maintenance_mode_enabled,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AgencyHostingV1WordPressVersionResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**version** | **string** | WordPress core version. | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AgencyHostingV1WordPressVersionResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AgencyHostingV1WordPressVersionResource = {
|
|
16
|
+
version,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# AgencyHostingWebsiteSetupsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getAgencyPlanWebsiteSetupStatusV1**](#getagencyplanwebsitesetupstatusv1) | **GET** /api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid} | Get Agency Plan website setup status|
|
|
8
|
+
|[**provisionANewAgencyPlanWebsiteV1**](#provisionanewagencyplanwebsitev1) | **POST** /api/agency-hosting/v1/orders/{order_id}/websites/setups | Provision a new Agency Plan website|
|
|
9
|
+
|
|
10
|
+
# **getAgencyPlanWebsiteSetupStatusV1**
|
|
11
|
+
> AgencyHostingV1SetupsWebsiteSetupStatusResource getAgencyPlanWebsiteSetupStatusV1()
|
|
12
|
+
|
|
13
|
+
Returns the current status of an Agency Plan website setup started via the setups endpoint. Poll this endpoint using the `setup_uuid` returned from the provisioning request until `status` becomes `completed`, at which point `website_uid` identifies the new website.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
AgencyHostingWebsiteSetupsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AgencyHostingWebsiteSetupsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let orderId: number; //Agency Plan order ID (default to undefined)
|
|
27
|
+
let setupUuid: string; //Website setup UUID (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.getAgencyPlanWebsiteSetupStatusV1(
|
|
30
|
+
orderId,
|
|
31
|
+
setupUuid
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **orderId** | [**number**] | Agency Plan order ID | defaults to undefined|
|
|
40
|
+
| **setupUuid** | [**string**] | Website setup UUID | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**AgencyHostingV1SetupsWebsiteSetupStatusResource**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[apiToken](../README.md#apiToken)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Success response | - |
|
|
61
|
+
|**401** | Unauthenticated response | - |
|
|
62
|
+
|**500** | Error response | - |
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
66
|
+
# **provisionANewAgencyPlanWebsiteV1**
|
|
67
|
+
> AgencyHostingV1SetupsWebsiteSetupResource provisionANewAgencyPlanWebsiteV1(agencyHostingV1SetupsCreateSetupRequest)
|
|
68
|
+
|
|
69
|
+
Provisions a new website on one of your Agency Plan hosting orders. Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach your own `domain` — omit it, set it to `null`, or leave it unavailable and a free `*.hostingersite.com` subdomain is generated instead — and/or install WordPress by supplying the `wordpress` details (admin account, site title, and language). Common setups: - **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit `wordpress` and `type`. - **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus the `wordpress` block (admin account, title, language). - **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to `node-static`. Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
AgencyHostingWebsiteSetupsApi,
|
|
76
|
+
Configuration,
|
|
77
|
+
AgencyHostingV1SetupsCreateSetupRequest
|
|
78
|
+
} from 'hostinger-api-sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new AgencyHostingWebsiteSetupsApi(configuration);
|
|
82
|
+
|
|
83
|
+
let orderId: number; //Agency Plan order ID (default to undefined)
|
|
84
|
+
let agencyHostingV1SetupsCreateSetupRequest: AgencyHostingV1SetupsCreateSetupRequest; //
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.provisionANewAgencyPlanWebsiteV1(
|
|
87
|
+
orderId,
|
|
88
|
+
agencyHostingV1SetupsCreateSetupRequest
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **agencyHostingV1SetupsCreateSetupRequest** | **AgencyHostingV1SetupsCreateSetupRequest**| | |
|
|
97
|
+
| **orderId** | [**number**] | Agency Plan order ID | defaults to undefined|
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Return type
|
|
101
|
+
|
|
102
|
+
**AgencyHostingV1SetupsWebsiteSetupResource**
|
|
103
|
+
|
|
104
|
+
### Authorization
|
|
105
|
+
|
|
106
|
+
[apiToken](../README.md#apiToken)
|
|
107
|
+
|
|
108
|
+
### HTTP request headers
|
|
109
|
+
|
|
110
|
+
- **Content-Type**: application/json
|
|
111
|
+
- **Accept**: application/json
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### HTTP response details
|
|
115
|
+
| Status code | Description | Response headers |
|
|
116
|
+
|-------------|-------------|------------------|
|
|
117
|
+
|**200** | Success response | - |
|
|
118
|
+
|**422** | Validation error response | - |
|
|
119
|
+
|**401** | Unauthenticated response | - |
|
|
120
|
+
|**500** | Error response | - |
|
|
121
|
+
|
|
122
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
123
|
+
|