hostinger-api-sdk 1.30.3 → 1.30.5
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 +2 -2
- package/api.ts +405 -403
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +251 -246
- package/dist/api.js +388 -381
- 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 +251 -246
- package/dist/esm/api.js +384 -377
- 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 +4 -4
- package/docs/AgencyHostingCronJobsApi.md +13 -13
- package/docs/AgencyHostingDatabasesApi.md +21 -21
- package/docs/AgencyHostingDatacentersApi.md +4 -4
- package/docs/AgencyHostingDomainsApi.md +17 -17
- package/docs/AgencyHostingFilesApi.md +4 -4
- package/docs/{AgencyHostingListAgencyPlanDomainsV1200Response.md → AgencyHostingListDomainsV1200Response.md} +3 -3
- package/docs/{AgencyHostingListAgencyPlanOrdersV1200Response.md → AgencyHostingListOrdersV1200Response.md} +3 -3
- package/docs/{AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md → AgencyHostingListWebsiteCronJobsV1200Response.md} +3 -3
- package/docs/{AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md → AgencyHostingListWebsiteDatabasesV1200Response.md} +3 -3
- package/docs/AgencyHostingOrdersApi.md +5 -5
- package/docs/AgencyHostingWebsiteSetupsApi.md +24 -24
- package/docs/AgencyHostingWebsitesApi.md +16 -16
- package/docs/AgencyHostingWordPressApi.md +12 -12
- package/docs/HostingFilesApi.md +3 -4
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/HostingListWebsiteFilesAndDirectoriesV1FileTypesParameter.md +0 -18
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.4
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.4
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.4
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.30.5" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.4
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.32.
|
|
6
|
+
* API Version: 1.32.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.32.
|
|
4
|
+
* API Version: 1.32.4
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.32.
|
|
7
|
+
* API Version: 1.32.4
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**clearWebsiteCacheV1**](#clearwebsitecachev1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/cache | Clear website cache|
|
|
8
8
|
|
|
9
|
-
# **
|
|
10
|
-
> CommonSuccessEmptyResource
|
|
9
|
+
# **clearWebsiteCacheV1**
|
|
10
|
+
> CommonSuccessEmptyResource clearWebsiteCacheV1()
|
|
11
11
|
|
|
12
12
|
Clears cache for all domains associated with an Agency Plan website, including its preview domain. This operation clears all cache types for the website.
|
|
13
13
|
|
|
@@ -24,7 +24,7 @@ const apiInstance = new AgencyHostingCacheApi(configuration);
|
|
|
24
24
|
|
|
25
25
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
26
26
|
|
|
27
|
-
const { status, data } = await apiInstance.
|
|
27
|
+
const { status, data } = await apiInstance.clearWebsiteCacheV1(
|
|
28
28
|
websiteUid
|
|
29
29
|
);
|
|
30
30
|
```
|
|
@@ -4,12 +4,12 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
7
|
+
|[**createWebsiteCronJobV1**](#createwebsitecronjobv1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/cron-jobs | Create website cron job|
|
|
8
|
+
|[**deleteWebsiteCronJobV1**](#deletewebsitecronjobv1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/cron-jobs/{uuid} | Delete website cron job|
|
|
9
|
+
|[**listWebsiteCronJobsV1**](#listwebsitecronjobsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/cron-jobs | List website cron jobs|
|
|
10
10
|
|
|
11
|
-
# **
|
|
12
|
-
> AgencyHostingV1WebsitesCronJobsCronJobResource
|
|
11
|
+
# **createWebsiteCronJobV1**
|
|
12
|
+
> AgencyHostingV1WebsitesCronJobsCronJobResource createWebsiteCronJobV1(agencyHostingV1WebsitesCronJobsCreateCronJobRequest)
|
|
13
13
|
|
|
14
14
|
Creates a cron job for an Agency Plan website from a schedule expression and a command. Returns the created cron job, including its uuid, which is required to delete the cron job.
|
|
15
15
|
|
|
@@ -28,7 +28,7 @@ const apiInstance = new AgencyHostingCronJobsApi(configuration);
|
|
|
28
28
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
29
29
|
let agencyHostingV1WebsitesCronJobsCreateCronJobRequest: AgencyHostingV1WebsitesCronJobsCreateCronJobRequest; //
|
|
30
30
|
|
|
31
|
-
const { status, data } = await apiInstance.
|
|
31
|
+
const { status, data } = await apiInstance.createWebsiteCronJobV1(
|
|
32
32
|
websiteUid,
|
|
33
33
|
agencyHostingV1WebsitesCronJobsCreateCronJobRequest
|
|
34
34
|
);
|
|
@@ -66,8 +66,8 @@ const { status, data } = await apiInstance.createAgencyPlanWebsiteCronJobV1(
|
|
|
66
66
|
|
|
67
67
|
[[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)
|
|
68
68
|
|
|
69
|
-
# **
|
|
70
|
-
> CommonSuccessEmptyResource
|
|
69
|
+
# **deleteWebsiteCronJobV1**
|
|
70
|
+
> CommonSuccessEmptyResource deleteWebsiteCronJobV1()
|
|
71
71
|
|
|
72
72
|
Permanently deletes the cron job identified by its uuid from an Agency Plan website. The operation is idempotent: deleting a cron job that does not exist succeeds without error.
|
|
73
73
|
|
|
@@ -85,7 +85,7 @@ const apiInstance = new AgencyHostingCronJobsApi(configuration);
|
|
|
85
85
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
86
86
|
let uuid: string; //Unique identifier of the cron job as returned by the list cron jobs endpoint. (default to undefined)
|
|
87
87
|
|
|
88
|
-
const { status, data } = await apiInstance.
|
|
88
|
+
const { status, data } = await apiInstance.deleteWebsiteCronJobV1(
|
|
89
89
|
websiteUid,
|
|
90
90
|
uuid
|
|
91
91
|
);
|
|
@@ -122,8 +122,8 @@ const { status, data } = await apiInstance.deleteAgencyPlanWebsiteCronJobV1(
|
|
|
122
122
|
|
|
123
123
|
[[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)
|
|
124
124
|
|
|
125
|
-
# **
|
|
126
|
-
>
|
|
125
|
+
# **listWebsiteCronJobsV1**
|
|
126
|
+
> AgencyHostingListWebsiteCronJobsV1200Response listWebsiteCronJobsV1()
|
|
127
127
|
|
|
128
128
|
Returns a paginated list of cron jobs configured for an Agency Plan website. Each entry includes the schedule expression and the command executed on that schedule.
|
|
129
129
|
|
|
@@ -142,7 +142,7 @@ let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
|
142
142
|
let page: number; //Page number (optional) (default to undefined)
|
|
143
143
|
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
144
144
|
|
|
145
|
-
const { status, data } = await apiInstance.
|
|
145
|
+
const { status, data } = await apiInstance.listWebsiteCronJobsV1(
|
|
146
146
|
websiteUid,
|
|
147
147
|
page,
|
|
148
148
|
perPage
|
|
@@ -160,7 +160,7 @@ const { status, data } = await apiInstance.listAgencyPlanWebsiteCronJobsV1(
|
|
|
160
160
|
|
|
161
161
|
### Return type
|
|
162
162
|
|
|
163
|
-
**
|
|
163
|
+
**AgencyHostingListWebsiteCronJobsV1200Response**
|
|
164
164
|
|
|
165
165
|
### Authorization
|
|
166
166
|
|
|
@@ -4,14 +4,14 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
11
|
-
|[**
|
|
7
|
+
|[**createWebsiteDatabaseUserV1**](#createwebsitedatabaseuserv1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users | Create website database user|
|
|
8
|
+
|[**createWebsiteDatabaseV1**](#createwebsitedatabasev1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/databases | Create website database|
|
|
9
|
+
|[**deleteWebsiteDatabaseUserV1**](#deletewebsitedatabaseuserv1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users/{database_user_name} | Delete website database user|
|
|
10
|
+
|[**deleteWebsiteDatabaseV1**](#deletewebsitedatabasev1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name} | Delete website database|
|
|
11
|
+
|[**listWebsiteDatabasesV1**](#listwebsitedatabasesv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/databases | List website databases|
|
|
12
12
|
|
|
13
|
-
# **
|
|
14
|
-
> AgencyHostingV1WebsitesDatabasesDatabaseUserResource
|
|
13
|
+
# **createWebsiteDatabaseUserV1**
|
|
14
|
+
> AgencyHostingV1WebsitesDatabasesDatabaseUserResource createWebsiteDatabaseUserV1(agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest)
|
|
15
15
|
|
|
16
16
|
Creates a user for an existing database on an Agency Plan website. Each database supports a single non-system user; creating a user for a database that already has one fails.
|
|
17
17
|
|
|
@@ -31,7 +31,7 @@ let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
|
31
31
|
let databaseName: string; //Full database name as returned by the list databases endpoint. (default to undefined)
|
|
32
32
|
let agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest: AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest; //
|
|
33
33
|
|
|
34
|
-
const { status, data } = await apiInstance.
|
|
34
|
+
const { status, data } = await apiInstance.createWebsiteDatabaseUserV1(
|
|
35
35
|
websiteUid,
|
|
36
36
|
databaseName,
|
|
37
37
|
agencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest
|
|
@@ -71,8 +71,8 @@ const { status, data } = await apiInstance.createAgencyPlanWebsiteDatabaseUserV1
|
|
|
71
71
|
|
|
72
72
|
[[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)
|
|
73
73
|
|
|
74
|
-
# **
|
|
75
|
-
> AgencyHostingV1WebsitesDatabasesDatabaseResource
|
|
74
|
+
# **createWebsiteDatabaseV1**
|
|
75
|
+
> AgencyHostingV1WebsitesDatabasesDatabaseResource createWebsiteDatabaseV1(agencyHostingV1WebsitesDatabasesCreateDatabaseRequest)
|
|
76
76
|
|
|
77
77
|
Creates a MySQL database with a dedicated user for an Agency Plan website. The database name, username, and password must all be provided by the caller.
|
|
78
78
|
|
|
@@ -91,7 +91,7 @@ const apiInstance = new AgencyHostingDatabasesApi(configuration);
|
|
|
91
91
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
92
92
|
let agencyHostingV1WebsitesDatabasesCreateDatabaseRequest: AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest; //
|
|
93
93
|
|
|
94
|
-
const { status, data } = await apiInstance.
|
|
94
|
+
const { status, data } = await apiInstance.createWebsiteDatabaseV1(
|
|
95
95
|
websiteUid,
|
|
96
96
|
agencyHostingV1WebsitesDatabasesCreateDatabaseRequest
|
|
97
97
|
);
|
|
@@ -129,8 +129,8 @@ const { status, data } = await apiInstance.createAgencyPlanWebsiteDatabaseV1(
|
|
|
129
129
|
|
|
130
130
|
[[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)
|
|
131
131
|
|
|
132
|
-
# **
|
|
133
|
-
> CommonSuccessEmptyResource
|
|
132
|
+
# **deleteWebsiteDatabaseUserV1**
|
|
133
|
+
> CommonSuccessEmptyResource deleteWebsiteDatabaseUserV1()
|
|
134
134
|
|
|
135
135
|
Permanently deletes a database user from an Agency Plan website database, revoking all access it had. The operation is idempotent: deleting a user that does not exist succeeds without error.
|
|
136
136
|
|
|
@@ -149,7 +149,7 @@ let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
|
149
149
|
let databaseName: string; //Full database name as returned by the list databases endpoint. (default to undefined)
|
|
150
150
|
let databaseUserName: string; //Database username as returned by the list databases endpoint. (default to undefined)
|
|
151
151
|
|
|
152
|
-
const { status, data } = await apiInstance.
|
|
152
|
+
const { status, data } = await apiInstance.deleteWebsiteDatabaseUserV1(
|
|
153
153
|
websiteUid,
|
|
154
154
|
databaseName,
|
|
155
155
|
databaseUserName
|
|
@@ -188,8 +188,8 @@ const { status, data } = await apiInstance.deleteAgencyPlanWebsiteDatabaseUserV1
|
|
|
188
188
|
|
|
189
189
|
[[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)
|
|
190
190
|
|
|
191
|
-
# **
|
|
192
|
-
> CommonSuccessEmptyResource
|
|
191
|
+
# **deleteWebsiteDatabaseV1**
|
|
192
|
+
> CommonSuccessEmptyResource deleteWebsiteDatabaseV1()
|
|
193
193
|
|
|
194
194
|
Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users. The operation is idempotent: deleting a database that does not exist succeeds without error.
|
|
195
195
|
|
|
@@ -207,7 +207,7 @@ const apiInstance = new AgencyHostingDatabasesApi(configuration);
|
|
|
207
207
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
208
208
|
let databaseName: string; //Full database name as returned by the list databases endpoint. (default to undefined)
|
|
209
209
|
|
|
210
|
-
const { status, data } = await apiInstance.
|
|
210
|
+
const { status, data } = await apiInstance.deleteWebsiteDatabaseV1(
|
|
211
211
|
websiteUid,
|
|
212
212
|
databaseName
|
|
213
213
|
);
|
|
@@ -244,8 +244,8 @@ const { status, data } = await apiInstance.deleteAgencyPlanWebsiteDatabaseV1(
|
|
|
244
244
|
|
|
245
245
|
[[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)
|
|
246
246
|
|
|
247
|
-
# **
|
|
248
|
-
>
|
|
247
|
+
# **listWebsiteDatabasesV1**
|
|
248
|
+
> AgencyHostingListWebsiteDatabasesV1200Response listWebsiteDatabasesV1()
|
|
249
249
|
|
|
250
250
|
Returns a paginated list of MySQL databases created for an Agency Plan website. Each entry includes the database\'s non-system users.
|
|
251
251
|
|
|
@@ -264,7 +264,7 @@ let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
|
264
264
|
let page: number; //Page number (optional) (default to undefined)
|
|
265
265
|
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
266
266
|
|
|
267
|
-
const { status, data } = await apiInstance.
|
|
267
|
+
const { status, data } = await apiInstance.listWebsiteDatabasesV1(
|
|
268
268
|
websiteUid,
|
|
269
269
|
page,
|
|
270
270
|
perPage
|
|
@@ -282,7 +282,7 @@ const { status, data } = await apiInstance.listAgencyPlanWebsiteDatabasesV1(
|
|
|
282
282
|
|
|
283
283
|
### Return type
|
|
284
284
|
|
|
285
|
-
**
|
|
285
|
+
**AgencyHostingListWebsiteDatabasesV1200Response**
|
|
286
286
|
|
|
287
287
|
### Authorization
|
|
288
288
|
|
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**listAvailableDatacentersV1**](#listavailabledatacentersv1) | **GET** /api/agency-hosting/v1/orders/{order_id}/datacenters | List available datacenters|
|
|
8
8
|
|
|
9
|
-
# **
|
|
10
|
-
> Array<AgencyHostingV1DatacentersDatacenterResource>
|
|
9
|
+
# **listAvailableDatacentersV1**
|
|
10
|
+
> Array<AgencyHostingV1DatacentersDatacenterResource> listAvailableDatacentersV1()
|
|
11
11
|
|
|
12
12
|
Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order. Each datacenter includes a `pinger_url` you can ping from the client to measure round-trip latency; comparing the results across datacenters lets you pick the nearest one (lowest ping) before choosing its `code` as the `datacenter_code` when creating a website setup.
|
|
13
13
|
|
|
@@ -24,7 +24,7 @@ const apiInstance = new AgencyHostingDatacentersApi(configuration);
|
|
|
24
24
|
|
|
25
25
|
let orderId: number; //Agency Plan order ID (default to undefined)
|
|
26
26
|
|
|
27
|
-
const { status, data } = await apiInstance.
|
|
27
|
+
const { status, data } = await apiInstance.listAvailableDatacentersV1(
|
|
28
28
|
orderId
|
|
29
29
|
);
|
|
30
30
|
```
|
|
@@ -4,13 +4,13 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
7
|
+
|[**changeWebsiteDomainV1**](#changewebsitedomainv1) | **PUT** /api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain} | Change website domain|
|
|
8
|
+
|[**linkDomainToWebsiteV1**](#linkdomaintowebsitev1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/domains | Link domain to website|
|
|
9
|
+
|[**listDomainsV1**](#listdomainsv1) | **GET** /api/agency-hosting/v1/domains | List domains|
|
|
10
|
+
|[**unlinkDomainFromWebsiteV1**](#unlinkdomainfromwebsitev1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid}/domains/{domain} | Unlink domain from website|
|
|
11
11
|
|
|
12
|
-
# **
|
|
13
|
-
> CommonSuccessEmptyResource
|
|
12
|
+
# **changeWebsiteDomainV1**
|
|
13
|
+
> CommonSuccessEmptyResource changeWebsiteDomainV1(agencyHostingV1DomainsChangeDomainRequest)
|
|
14
14
|
|
|
15
15
|
Changes the primary domain for an Agency Plan website. Provide the current domain in the path and the new domain in the request body. Set domain to null to revert to the temporary domain.
|
|
16
16
|
|
|
@@ -30,7 +30,7 @@ let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
|
30
30
|
let fromDomain: string; //Current domain name to change from (default to undefined)
|
|
31
31
|
let agencyHostingV1DomainsChangeDomainRequest: AgencyHostingV1DomainsChangeDomainRequest; //
|
|
32
32
|
|
|
33
|
-
const { status, data } = await apiInstance.
|
|
33
|
+
const { status, data } = await apiInstance.changeWebsiteDomainV1(
|
|
34
34
|
websiteUid,
|
|
35
35
|
fromDomain,
|
|
36
36
|
agencyHostingV1DomainsChangeDomainRequest
|
|
@@ -70,8 +70,8 @@ const { status, data } = await apiInstance.changeAgencyPlanWebsiteDomainV1(
|
|
|
70
70
|
|
|
71
71
|
[[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)
|
|
72
72
|
|
|
73
|
-
# **
|
|
74
|
-
> CommonSuccessEmptyResource
|
|
73
|
+
# **linkDomainToWebsiteV1**
|
|
74
|
+
> CommonSuccessEmptyResource linkDomainToWebsiteV1(agencyHostingV1DomainsLinkDomainRequest)
|
|
75
75
|
|
|
76
76
|
Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
|
|
77
77
|
|
|
@@ -90,7 +90,7 @@ const apiInstance = new AgencyHostingDomainsApi(configuration);
|
|
|
90
90
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
91
91
|
let agencyHostingV1DomainsLinkDomainRequest: AgencyHostingV1DomainsLinkDomainRequest; //
|
|
92
92
|
|
|
93
|
-
const { status, data } = await apiInstance.
|
|
93
|
+
const { status, data } = await apiInstance.linkDomainToWebsiteV1(
|
|
94
94
|
websiteUid,
|
|
95
95
|
agencyHostingV1DomainsLinkDomainRequest
|
|
96
96
|
);
|
|
@@ -128,8 +128,8 @@ const { status, data } = await apiInstance.linkDomainToAgencyPlanWebsiteV1(
|
|
|
128
128
|
|
|
129
129
|
[[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)
|
|
130
130
|
|
|
131
|
-
# **
|
|
132
|
-
>
|
|
131
|
+
# **listDomainsV1**
|
|
132
|
+
> AgencyHostingListDomainsV1200Response listDomainsV1()
|
|
133
133
|
|
|
134
134
|
Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client. Use the website_uuids filter to narrow results to specific websites.
|
|
135
135
|
|
|
@@ -148,7 +148,7 @@ let page: number; //Page number (optional) (default to undefined)
|
|
|
148
148
|
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
149
149
|
let websiteUuids: Array<string>; //Filter by website UIDs (optional) (default to undefined)
|
|
150
150
|
|
|
151
|
-
const { status, data } = await apiInstance.
|
|
151
|
+
const { status, data } = await apiInstance.listDomainsV1(
|
|
152
152
|
page,
|
|
153
153
|
perPage,
|
|
154
154
|
websiteUuids
|
|
@@ -166,7 +166,7 @@ const { status, data } = await apiInstance.listAgencyPlanDomainsV1(
|
|
|
166
166
|
|
|
167
167
|
### Return type
|
|
168
168
|
|
|
169
|
-
**
|
|
169
|
+
**AgencyHostingListDomainsV1200Response**
|
|
170
170
|
|
|
171
171
|
### Authorization
|
|
172
172
|
|
|
@@ -187,8 +187,8 @@ const { status, data } = await apiInstance.listAgencyPlanDomainsV1(
|
|
|
187
187
|
|
|
188
188
|
[[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)
|
|
189
189
|
|
|
190
|
-
# **
|
|
191
|
-
> CommonSuccessEmptyResource
|
|
190
|
+
# **unlinkDomainFromWebsiteV1**
|
|
191
|
+
> CommonSuccessEmptyResource unlinkDomainFromWebsiteV1()
|
|
192
192
|
|
|
193
193
|
Unlinks a domain from the specified Agency Plan website. The website stops serving traffic on this domain immediately. Website files and database are preserved, and any other linked domains remain accessible. If this is the only domain on the website, unlinking leaves the website without an accessible domain.
|
|
194
194
|
|
|
@@ -206,7 +206,7 @@ const apiInstance = new AgencyHostingDomainsApi(configuration);
|
|
|
206
206
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
207
207
|
let domain: string; //Domain name (default to undefined)
|
|
208
208
|
|
|
209
|
-
const { status, data } = await apiInstance.
|
|
209
|
+
const { status, data } = await apiInstance.unlinkDomainFromWebsiteV1(
|
|
210
210
|
websiteUid,
|
|
211
211
|
domain
|
|
212
212
|
);
|
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**importWebsiteFromArchiveV1**](#importwebsitefromarchivev1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/files/import-archive | Import website from archive|
|
|
8
8
|
|
|
9
|
-
# **
|
|
10
|
-
> CommonSuccessEmptyResource
|
|
9
|
+
# **importWebsiteFromArchiveV1**
|
|
10
|
+
> CommonSuccessEmptyResource importWebsiteFromArchiveV1(agencyHostingV1FilesImportArchiveRequest)
|
|
11
11
|
|
|
12
12
|
Imports an Agency Plan website from an already-uploaded archive. Upload the archive to the website\'s root directory via file browser first, then provide its filename in this request. Website contents are overwritten by the archive contents. Supported archive types: .zip, .tar, .tar.gz, .tgz.
|
|
13
13
|
|
|
@@ -26,7 +26,7 @@ const apiInstance = new AgencyHostingFilesApi(configuration);
|
|
|
26
26
|
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
27
27
|
let agencyHostingV1FilesImportArchiveRequest: AgencyHostingV1FilesImportArchiveRequest; //
|
|
28
28
|
|
|
29
|
-
const { status, data } = await apiInstance.
|
|
29
|
+
const { status, data } = await apiInstance.importWebsiteFromArchiveV1(
|
|
30
30
|
websiteUid,
|
|
31
31
|
agencyHostingV1FilesImportArchiveRequest
|
|
32
32
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AgencyHostingListDomainsV1200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { AgencyHostingListDomainsV1200Response } from 'hostinger-api-sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: AgencyHostingListDomainsV1200Response = {
|
|
17
17
|
data,
|
|
18
18
|
meta,
|
|
19
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AgencyHostingListOrdersV1200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { AgencyHostingListOrdersV1200Response } from 'hostinger-api-sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: AgencyHostingListOrdersV1200Response = {
|
|
17
17
|
data,
|
|
18
18
|
meta,
|
|
19
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AgencyHostingListWebsiteCronJobsV1200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { AgencyHostingListWebsiteCronJobsV1200Response } from 'hostinger-api-sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: AgencyHostingListWebsiteCronJobsV1200Response = {
|
|
17
17
|
data,
|
|
18
18
|
meta,
|
|
19
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AgencyHostingListWebsiteDatabasesV1200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { AgencyHostingListWebsiteDatabasesV1200Response } from 'hostinger-api-sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: AgencyHostingListWebsiteDatabasesV1200Response = {
|
|
17
17
|
data,
|
|
18
18
|
meta,
|
|
19
19
|
};
|
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
7
|
+
|[**listOrdersV1**](#listordersv1) | **GET** /api/agency-hosting/v1/orders | List orders|
|
|
8
8
|
|
|
9
|
-
# **
|
|
10
|
-
>
|
|
9
|
+
# **listOrdersV1**
|
|
10
|
+
> AgencyHostingListOrdersV1200Response listOrdersV1()
|
|
11
11
|
|
|
12
12
|
Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ const apiInstance = new AgencyHostingOrdersApi(configuration);
|
|
|
25
25
|
let page: number; //Page number (optional) (default to undefined)
|
|
26
26
|
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
27
27
|
|
|
28
|
-
const { status, data } = await apiInstance.
|
|
28
|
+
const { status, data } = await apiInstance.listOrdersV1(
|
|
29
29
|
page,
|
|
30
30
|
perPage
|
|
31
31
|
);
|
|
@@ -41,7 +41,7 @@ const { status, data } = await apiInstance.listAgencyPlanOrdersV1(
|
|
|
41
41
|
|
|
42
42
|
### Return type
|
|
43
43
|
|
|
44
|
-
**
|
|
44
|
+
**AgencyHostingListOrdersV1200Response**
|
|
45
45
|
|
|
46
46
|
### Authorization
|
|
47
47
|
|