hostinger-api-sdk 0.0.17 → 0.0.19
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 +28 -11
- package/README.md +2 -2
- package/api.ts +7280 -2652
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4936 -1816
- package/dist/api.js +3248 -374
- 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 +4936 -1816
- package/dist/esm/api.js +3196 -363
- 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/BillingSubscriptionsApi.md +0 -59
- package/docs/BillingV1CatalogCatalogItemResource.md +1 -1
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollection.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionData.md +23 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDING.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataPENDINGDOMAINTLDVERIFICATIONTYPE.md +27 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIED.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLD.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsActiveVerificationsCollectionDataVERIFIEDDOMAINTLDVERIFICATIONTYPE.md +21 -0
- package/docs/DomainAccessVerifierV2VerificationsListRequest.md +20 -0
- package/docs/DomainAccessVerifierVerificationsApi.md +63 -0
- package/docs/DomainsPortfolioApi.md +1 -1
- package/docs/EcommerceGetStoresV1200Response.md +22 -0
- package/docs/EcommerceStoresApi.md +117 -0
- package/docs/EcommerceV1StoreStoreCreationResource.md +22 -0
- package/docs/EcommerceV1StoreStoreCreationResourceSalesChannel.md +24 -0
- package/docs/EcommerceV1StoreStoreCreationResourceStore.md +30 -0
- package/docs/EcommerceV1StoreStoreRequest.md +30 -0
- package/docs/EcommerceV1StoreStoreRequestSalesChannel.md +22 -0
- package/docs/EcommerceV1StoreStoreResource.md +30 -0
- package/docs/HostingDatabasesApi.md +368 -0
- package/docs/HostingDatacentersApi.md +61 -0
- package/docs/HostingDomainsApi.md +468 -0
- package/docs/HostingListAccountDatabasesV1200Response.md +22 -0
- package/docs/HostingListNodeJSBuildsV1200Response.md +22 -0
- package/docs/HostingListOrdersV1200Response.md +22 -0
- package/docs/HostingListWebsitesV1200Response.md +22 -0
- package/docs/HostingNodeJSApi.md +199 -0
- package/docs/HostingOrdersApi.md +70 -0
- package/docs/HostingV1DatabasesChangeDatabasePasswordRequest.md +20 -0
- package/docs/HostingV1DatabasesCreateDatabaseRequest.md +26 -0
- package/docs/HostingV1DatabasesDatabaseResource.md +34 -0
- package/docs/HostingV1DatabasesPhpMyAdminLinkResource.md +20 -0
- package/docs/HostingV1DatacenterCoordinatesResource.md +22 -0
- package/docs/HostingV1DatacenterDatacenterResource.md +24 -0
- package/docs/HostingV1DatacentersListRequest.md +20 -0
- package/docs/HostingV1DomainsCreateParkedDomainRequest.md +20 -0
- package/docs/HostingV1DomainsCreateSubdomainRequest.md +24 -0
- package/docs/HostingV1DomainsDomainAccessResource.md +24 -0
- package/docs/HostingV1DomainsFreeSubdomainResource.md +20 -0
- package/docs/HostingV1DomainsParkedDomainResource.md +28 -0
- package/docs/HostingV1DomainsSubdomainResource.md +28 -0
- package/docs/HostingV1DomainsVerifyOwnershipRequest.md +20 -0
- package/docs/HostingV1NodeJsBuildLogsResource.md +22 -0
- package/docs/HostingV1NodeJsBuildOptionsResource.md +36 -0
- package/docs/HostingV1NodeJsBuildResource.md +28 -0
- package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +34 -0
- package/docs/{BillingV1OrderStoreRequestItemsInner.md → HostingV1NodeJsSourceOptionsResource.md} +5 -7
- package/docs/HostingV1OrdersOrderResource.md +30 -0
- package/docs/HostingV1OrdersPlanResource.md +20 -0
- package/docs/HostingV1WebsitesCreateWebsiteRequest.md +24 -0
- package/docs/HostingV1WebsitesWebsiteResource.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequest.md +36 -0
- package/docs/HostingV1WordpressInstallWordpressRequestCredentials.md +25 -0
- package/docs/HostingV1WordpressInstallWordpressRequestDatabase.md +23 -0
- package/docs/HostingV1WordpressWordpressInstallationResource.md +42 -0
- package/docs/HostingWebsitesApi.md +132 -0
- package/docs/HostingWordpressApi.md +126 -0
- package/docs/ReachContactsApi.md +63 -4
- package/docs/ReachListSegmentContactsV1200Response.md +22 -0
- package/docs/ReachProfilesApi.md +54 -0
- package/docs/ReachSegmentsApi.md +224 -0
- package/docs/ReachV1ContactsSegmentsContactSegmentResource.md +26 -0
- package/docs/ReachV1ContactsSegmentsSegmentResource.md +28 -0
- package/docs/ReachV1ContactsSegmentsSegmentationContactResource.md +34 -0
- package/docs/ReachV1ContactsSegmentsStoreRequest.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInner.md +24 -0
- package/docs/ReachV1ContactsSegmentsStoreRequestConditionsInnerValue.md +18 -0
- package/docs/ReachV1ContactsStoreRequest.md +2 -2
- package/docs/ReachV1ProfilesProfileResource.md +30 -0
- package/docs/ReachV1ProfilesProfileResourceLimits.md +26 -0
- package/docs/ReachV1ProfilesProfileResourceProfilesInner.md +26 -0
- package/docs/VPSActionsApi.md +1 -1
- package/docs/VPSDockerManagerApi.md +7 -7
- package/docs/VPSFirewallApi.md +1 -1
- package/docs/VPSMalwareScannerApi.md +2 -2
- package/docs/VPSVirtualMachineApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingV1OrderStoreRequest.md +0 -24
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
# HostingDomainsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createWebsiteParkedDomainV1**](#createwebsiteparkeddomainv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains | Create website parked domain|
|
|
8
|
+
|[**createWebsiteSubdomainV1**](#createwebsitesubdomainv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/subdomains | Create website subdomain|
|
|
9
|
+
|[**deleteWebsiteParkedDomainV1**](#deletewebsiteparkeddomainv1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains/{parkedDomain} | Delete website parked domain|
|
|
10
|
+
|[**deleteWebsiteSubdomainV1**](#deletewebsitesubdomainv1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/subdomains/{subdomain} | Delete website subdomain|
|
|
11
|
+
|[**generateAFreeSubdomainV1**](#generateafreesubdomainv1) | **POST** /api/hosting/v1/domains/free-subdomains | Generate a free subdomain|
|
|
12
|
+
|[**listWebsiteParkedDomainsV1**](#listwebsiteparkeddomainsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains | List website parked domains|
|
|
13
|
+
|[**listWebsiteSubdomainsV1**](#listwebsitesubdomainsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/subdomains | List website subdomains|
|
|
14
|
+
|[**verifyDomainOwnershipV1**](#verifydomainownershipv1) | **POST** /api/hosting/v1/domains/verify-ownership | Verify domain ownership|
|
|
15
|
+
|
|
16
|
+
# **createWebsiteParkedDomainV1**
|
|
17
|
+
> CommonSuccessEmptyResource createWebsiteParkedDomainV1(hostingV1DomainsCreateParkedDomainRequest)
|
|
18
|
+
|
|
19
|
+
Create a parked or alias domain for the selected website. Provide a domain name or IP address to park on the website so it serves the same content as the parent domain.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
HostingDomainsApi,
|
|
26
|
+
Configuration,
|
|
27
|
+
HostingV1DomainsCreateParkedDomainRequest
|
|
28
|
+
} from 'hostinger-api-sdk';
|
|
29
|
+
|
|
30
|
+
const configuration = new Configuration();
|
|
31
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
32
|
+
|
|
33
|
+
let username: string; // (default to undefined)
|
|
34
|
+
let domain: string; //Domain name (default to undefined)
|
|
35
|
+
let hostingV1DomainsCreateParkedDomainRequest: HostingV1DomainsCreateParkedDomainRequest; //
|
|
36
|
+
|
|
37
|
+
const { status, data } = await apiInstance.createWebsiteParkedDomainV1(
|
|
38
|
+
username,
|
|
39
|
+
domain,
|
|
40
|
+
hostingV1DomainsCreateParkedDomainRequest
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
|Name | Type | Description | Notes|
|
|
47
|
+
|------------- | ------------- | ------------- | -------------|
|
|
48
|
+
| **hostingV1DomainsCreateParkedDomainRequest** | **HostingV1DomainsCreateParkedDomainRequest**| | |
|
|
49
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
50
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Return type
|
|
54
|
+
|
|
55
|
+
**CommonSuccessEmptyResource**
|
|
56
|
+
|
|
57
|
+
### Authorization
|
|
58
|
+
|
|
59
|
+
[apiToken](../README.md#apiToken)
|
|
60
|
+
|
|
61
|
+
### HTTP request headers
|
|
62
|
+
|
|
63
|
+
- **Content-Type**: application/json
|
|
64
|
+
- **Accept**: application/json
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### HTTP response details
|
|
68
|
+
| Status code | Description | Response headers |
|
|
69
|
+
|-------------|-------------|------------------|
|
|
70
|
+
|**200** | Success empty response | - |
|
|
71
|
+
|**422** | Validation error response | - |
|
|
72
|
+
|**401** | Unauthenticated response | - |
|
|
73
|
+
|**500** | Error response | - |
|
|
74
|
+
|
|
75
|
+
[[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)
|
|
76
|
+
|
|
77
|
+
# **createWebsiteSubdomainV1**
|
|
78
|
+
> CommonSuccessEmptyResource createWebsiteSubdomainV1(hostingV1DomainsCreateSubdomainRequest)
|
|
79
|
+
|
|
80
|
+
Create a new subdomain for the selected website. Provide a subdomain prefix and, optionally, a custom directory or the website public directory to use as the subdomain root.
|
|
81
|
+
|
|
82
|
+
### Example
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
import {
|
|
86
|
+
HostingDomainsApi,
|
|
87
|
+
Configuration,
|
|
88
|
+
HostingV1DomainsCreateSubdomainRequest
|
|
89
|
+
} from 'hostinger-api-sdk';
|
|
90
|
+
|
|
91
|
+
const configuration = new Configuration();
|
|
92
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
93
|
+
|
|
94
|
+
let username: string; // (default to undefined)
|
|
95
|
+
let domain: string; //Domain name (default to undefined)
|
|
96
|
+
let hostingV1DomainsCreateSubdomainRequest: HostingV1DomainsCreateSubdomainRequest; //
|
|
97
|
+
|
|
98
|
+
const { status, data } = await apiInstance.createWebsiteSubdomainV1(
|
|
99
|
+
username,
|
|
100
|
+
domain,
|
|
101
|
+
hostingV1DomainsCreateSubdomainRequest
|
|
102
|
+
);
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Parameters
|
|
106
|
+
|
|
107
|
+
|Name | Type | Description | Notes|
|
|
108
|
+
|------------- | ------------- | ------------- | -------------|
|
|
109
|
+
| **hostingV1DomainsCreateSubdomainRequest** | **HostingV1DomainsCreateSubdomainRequest**| | |
|
|
110
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
111
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Return type
|
|
115
|
+
|
|
116
|
+
**CommonSuccessEmptyResource**
|
|
117
|
+
|
|
118
|
+
### Authorization
|
|
119
|
+
|
|
120
|
+
[apiToken](../README.md#apiToken)
|
|
121
|
+
|
|
122
|
+
### HTTP request headers
|
|
123
|
+
|
|
124
|
+
- **Content-Type**: application/json
|
|
125
|
+
- **Accept**: application/json
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### HTTP response details
|
|
129
|
+
| Status code | Description | Response headers |
|
|
130
|
+
|-------------|-------------|------------------|
|
|
131
|
+
|**200** | Success empty response | - |
|
|
132
|
+
|**422** | Validation error response | - |
|
|
133
|
+
|**401** | Unauthenticated response | - |
|
|
134
|
+
|**500** | Error response | - |
|
|
135
|
+
|
|
136
|
+
[[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)
|
|
137
|
+
|
|
138
|
+
# **deleteWebsiteParkedDomainV1**
|
|
139
|
+
> CommonSuccessEmptyResource deleteWebsiteParkedDomainV1()
|
|
140
|
+
|
|
141
|
+
Delete an existing parked or alias domain from the selected website. Use this endpoint to remove parked domains that are no longer needed.
|
|
142
|
+
|
|
143
|
+
### Example
|
|
144
|
+
|
|
145
|
+
```typescript
|
|
146
|
+
import {
|
|
147
|
+
HostingDomainsApi,
|
|
148
|
+
Configuration
|
|
149
|
+
} from 'hostinger-api-sdk';
|
|
150
|
+
|
|
151
|
+
const configuration = new Configuration();
|
|
152
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
153
|
+
|
|
154
|
+
let username: string; // (default to undefined)
|
|
155
|
+
let domain: string; //Domain name (default to undefined)
|
|
156
|
+
let parkedDomain: string; // (default to undefined)
|
|
157
|
+
|
|
158
|
+
const { status, data } = await apiInstance.deleteWebsiteParkedDomainV1(
|
|
159
|
+
username,
|
|
160
|
+
domain,
|
|
161
|
+
parkedDomain
|
|
162
|
+
);
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Parameters
|
|
166
|
+
|
|
167
|
+
|Name | Type | Description | Notes|
|
|
168
|
+
|------------- | ------------- | ------------- | -------------|
|
|
169
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
170
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
171
|
+
| **parkedDomain** | [**string**] | | defaults to undefined|
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Return type
|
|
175
|
+
|
|
176
|
+
**CommonSuccessEmptyResource**
|
|
177
|
+
|
|
178
|
+
### Authorization
|
|
179
|
+
|
|
180
|
+
[apiToken](../README.md#apiToken)
|
|
181
|
+
|
|
182
|
+
### HTTP request headers
|
|
183
|
+
|
|
184
|
+
- **Content-Type**: Not defined
|
|
185
|
+
- **Accept**: application/json
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### HTTP response details
|
|
189
|
+
| Status code | Description | Response headers |
|
|
190
|
+
|-------------|-------------|------------------|
|
|
191
|
+
|**200** | Success empty response | - |
|
|
192
|
+
|**401** | Unauthenticated response | - |
|
|
193
|
+
|**500** | Error response | - |
|
|
194
|
+
|
|
195
|
+
[[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)
|
|
196
|
+
|
|
197
|
+
# **deleteWebsiteSubdomainV1**
|
|
198
|
+
> CommonSuccessEmptyResource deleteWebsiteSubdomainV1()
|
|
199
|
+
|
|
200
|
+
Delete an existing subdomain from the selected website. Use this endpoint to remove subdomains that are no longer needed.
|
|
201
|
+
|
|
202
|
+
### Example
|
|
203
|
+
|
|
204
|
+
```typescript
|
|
205
|
+
import {
|
|
206
|
+
HostingDomainsApi,
|
|
207
|
+
Configuration
|
|
208
|
+
} from 'hostinger-api-sdk';
|
|
209
|
+
|
|
210
|
+
const configuration = new Configuration();
|
|
211
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
212
|
+
|
|
213
|
+
let username: string; // (default to undefined)
|
|
214
|
+
let domain: string; //Domain name (default to undefined)
|
|
215
|
+
let subdomain: string; // (default to undefined)
|
|
216
|
+
|
|
217
|
+
const { status, data } = await apiInstance.deleteWebsiteSubdomainV1(
|
|
218
|
+
username,
|
|
219
|
+
domain,
|
|
220
|
+
subdomain
|
|
221
|
+
);
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Parameters
|
|
225
|
+
|
|
226
|
+
|Name | Type | Description | Notes|
|
|
227
|
+
|------------- | ------------- | ------------- | -------------|
|
|
228
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
229
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
230
|
+
| **subdomain** | [**string**] | | defaults to undefined|
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Return type
|
|
234
|
+
|
|
235
|
+
**CommonSuccessEmptyResource**
|
|
236
|
+
|
|
237
|
+
### Authorization
|
|
238
|
+
|
|
239
|
+
[apiToken](../README.md#apiToken)
|
|
240
|
+
|
|
241
|
+
### HTTP request headers
|
|
242
|
+
|
|
243
|
+
- **Content-Type**: Not defined
|
|
244
|
+
- **Accept**: application/json
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### HTTP response details
|
|
248
|
+
| Status code | Description | Response headers |
|
|
249
|
+
|-------------|-------------|------------------|
|
|
250
|
+
|**200** | Success empty response | - |
|
|
251
|
+
|**401** | Unauthenticated response | - |
|
|
252
|
+
|**500** | Error response | - |
|
|
253
|
+
|
|
254
|
+
[[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)
|
|
255
|
+
|
|
256
|
+
# **generateAFreeSubdomainV1**
|
|
257
|
+
> HostingV1DomainsFreeSubdomainResource generateAFreeSubdomainV1()
|
|
258
|
+
|
|
259
|
+
Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.
|
|
260
|
+
|
|
261
|
+
### Example
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
import {
|
|
265
|
+
HostingDomainsApi,
|
|
266
|
+
Configuration
|
|
267
|
+
} from 'hostinger-api-sdk';
|
|
268
|
+
|
|
269
|
+
const configuration = new Configuration();
|
|
270
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
271
|
+
|
|
272
|
+
const { status, data } = await apiInstance.generateAFreeSubdomainV1();
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Parameters
|
|
276
|
+
This endpoint does not have any parameters.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
### Return type
|
|
280
|
+
|
|
281
|
+
**HostingV1DomainsFreeSubdomainResource**
|
|
282
|
+
|
|
283
|
+
### Authorization
|
|
284
|
+
|
|
285
|
+
[apiToken](../README.md#apiToken)
|
|
286
|
+
|
|
287
|
+
### HTTP request headers
|
|
288
|
+
|
|
289
|
+
- **Content-Type**: Not defined
|
|
290
|
+
- **Accept**: application/json
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### HTTP response details
|
|
294
|
+
| Status code | Description | Response headers |
|
|
295
|
+
|-------------|-------------|------------------|
|
|
296
|
+
|**200** | Success response | - |
|
|
297
|
+
|**401** | Unauthenticated response | - |
|
|
298
|
+
|**500** | Error response | - |
|
|
299
|
+
|
|
300
|
+
[[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)
|
|
301
|
+
|
|
302
|
+
# **listWebsiteParkedDomainsV1**
|
|
303
|
+
> Array<HostingV1DomainsParkedDomainResource> listWebsiteParkedDomainsV1()
|
|
304
|
+
|
|
305
|
+
Retrieve all parked or alias domains created under the selected website. Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.
|
|
306
|
+
|
|
307
|
+
### Example
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
import {
|
|
311
|
+
HostingDomainsApi,
|
|
312
|
+
Configuration
|
|
313
|
+
} from 'hostinger-api-sdk';
|
|
314
|
+
|
|
315
|
+
const configuration = new Configuration();
|
|
316
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
317
|
+
|
|
318
|
+
let username: string; // (default to undefined)
|
|
319
|
+
let domain: string; //Domain name (default to undefined)
|
|
320
|
+
|
|
321
|
+
const { status, data } = await apiInstance.listWebsiteParkedDomainsV1(
|
|
322
|
+
username,
|
|
323
|
+
domain
|
|
324
|
+
);
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### Parameters
|
|
328
|
+
|
|
329
|
+
|Name | Type | Description | Notes|
|
|
330
|
+
|------------- | ------------- | ------------- | -------------|
|
|
331
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
332
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
### Return type
|
|
336
|
+
|
|
337
|
+
**Array<HostingV1DomainsParkedDomainResource>**
|
|
338
|
+
|
|
339
|
+
### Authorization
|
|
340
|
+
|
|
341
|
+
[apiToken](../README.md#apiToken)
|
|
342
|
+
|
|
343
|
+
### HTTP request headers
|
|
344
|
+
|
|
345
|
+
- **Content-Type**: Not defined
|
|
346
|
+
- **Accept**: application/json
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
### HTTP response details
|
|
350
|
+
| Status code | Description | Response headers |
|
|
351
|
+
|-------------|-------------|------------------|
|
|
352
|
+
|**200** | Success response | - |
|
|
353
|
+
|**401** | Unauthenticated response | - |
|
|
354
|
+
|**500** | Error response | - |
|
|
355
|
+
|
|
356
|
+
[[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)
|
|
357
|
+
|
|
358
|
+
# **listWebsiteSubdomainsV1**
|
|
359
|
+
> Array<HostingV1DomainsSubdomainResource> listWebsiteSubdomainsV1()
|
|
360
|
+
|
|
361
|
+
Retrieve all subdomains created under the selected website. Use this endpoint to inspect subdomain configuration for a specific website, including the parent domain and root directory assigned to each subdomain.
|
|
362
|
+
|
|
363
|
+
### Example
|
|
364
|
+
|
|
365
|
+
```typescript
|
|
366
|
+
import {
|
|
367
|
+
HostingDomainsApi,
|
|
368
|
+
Configuration
|
|
369
|
+
} from 'hostinger-api-sdk';
|
|
370
|
+
|
|
371
|
+
const configuration = new Configuration();
|
|
372
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
373
|
+
|
|
374
|
+
let username: string; // (default to undefined)
|
|
375
|
+
let domain: string; //Domain name (default to undefined)
|
|
376
|
+
|
|
377
|
+
const { status, data } = await apiInstance.listWebsiteSubdomainsV1(
|
|
378
|
+
username,
|
|
379
|
+
domain
|
|
380
|
+
);
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Parameters
|
|
384
|
+
|
|
385
|
+
|Name | Type | Description | Notes|
|
|
386
|
+
|------------- | ------------- | ------------- | -------------|
|
|
387
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
388
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
### Return type
|
|
392
|
+
|
|
393
|
+
**Array<HostingV1DomainsSubdomainResource>**
|
|
394
|
+
|
|
395
|
+
### Authorization
|
|
396
|
+
|
|
397
|
+
[apiToken](../README.md#apiToken)
|
|
398
|
+
|
|
399
|
+
### HTTP request headers
|
|
400
|
+
|
|
401
|
+
- **Content-Type**: Not defined
|
|
402
|
+
- **Accept**: application/json
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
### HTTP response details
|
|
406
|
+
| Status code | Description | Response headers |
|
|
407
|
+
|-------------|-------------|------------------|
|
|
408
|
+
|**200** | Success response | - |
|
|
409
|
+
|**401** | Unauthenticated response | - |
|
|
410
|
+
|**500** | Error response | - |
|
|
411
|
+
|
|
412
|
+
[[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)
|
|
413
|
+
|
|
414
|
+
# **verifyDomainOwnershipV1**
|
|
415
|
+
> HostingV1DomainsDomainAccessResource verifyDomainOwnershipV1(hostingV1DomainsVerifyOwnershipRequest)
|
|
416
|
+
|
|
417
|
+
Verify ownership of a single domain and return the verification status. Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have `is_accessible: true`. If not, add the given TXT record to your domain\'s DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate. Skip this verification when using Hostinger\'s free subdomains (*.hostingersite.com).
|
|
418
|
+
|
|
419
|
+
### Example
|
|
420
|
+
|
|
421
|
+
```typescript
|
|
422
|
+
import {
|
|
423
|
+
HostingDomainsApi,
|
|
424
|
+
Configuration,
|
|
425
|
+
HostingV1DomainsVerifyOwnershipRequest
|
|
426
|
+
} from 'hostinger-api-sdk';
|
|
427
|
+
|
|
428
|
+
const configuration = new Configuration();
|
|
429
|
+
const apiInstance = new HostingDomainsApi(configuration);
|
|
430
|
+
|
|
431
|
+
let hostingV1DomainsVerifyOwnershipRequest: HostingV1DomainsVerifyOwnershipRequest; //
|
|
432
|
+
|
|
433
|
+
const { status, data } = await apiInstance.verifyDomainOwnershipV1(
|
|
434
|
+
hostingV1DomainsVerifyOwnershipRequest
|
|
435
|
+
);
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
### Parameters
|
|
439
|
+
|
|
440
|
+
|Name | Type | Description | Notes|
|
|
441
|
+
|------------- | ------------- | ------------- | -------------|
|
|
442
|
+
| **hostingV1DomainsVerifyOwnershipRequest** | **HostingV1DomainsVerifyOwnershipRequest**| | |
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
### Return type
|
|
446
|
+
|
|
447
|
+
**HostingV1DomainsDomainAccessResource**
|
|
448
|
+
|
|
449
|
+
### Authorization
|
|
450
|
+
|
|
451
|
+
[apiToken](../README.md#apiToken)
|
|
452
|
+
|
|
453
|
+
### HTTP request headers
|
|
454
|
+
|
|
455
|
+
- **Content-Type**: application/json
|
|
456
|
+
- **Accept**: application/json
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
### HTTP response details
|
|
460
|
+
| Status code | Description | Response headers |
|
|
461
|
+
|-------------|-------------|------------------|
|
|
462
|
+
|**200** | Success response | - |
|
|
463
|
+
|**401** | Unauthenticated response | - |
|
|
464
|
+
|**422** | Validation error response | - |
|
|
465
|
+
|**500** | Error response | - |
|
|
466
|
+
|
|
467
|
+
[[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)
|
|
468
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# HostingListAccountDatabasesV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<HostingV1DatabasesDatabaseResource>**](HostingV1DatabasesDatabaseResource.md) | Array of [`Hosting.V1.Databases.DatabaseResource`](#model/hostingv1databasesdatabaseresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingListAccountDatabasesV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingListAccountDatabasesV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
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
|
+
# HostingListNodeJSBuildsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<HostingV1NodeJsBuildResource>**](HostingV1NodeJsBuildResource.md) | Array of [`Hosting.V1.NodeJs.BuildResource`](#model/hostingv1nodejsbuildresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingListNodeJSBuildsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingListNodeJSBuildsV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
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
|
+
# HostingListOrdersV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<HostingV1OrdersOrderResource>**](HostingV1OrdersOrderResource.md) | Array of [`Hosting.V1.Orders.OrderResource`](#model/hostingv1ordersorderresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingListOrdersV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingListOrdersV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
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
|
+
# HostingListWebsitesV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<HostingV1WebsitesWebsiteResource>**](HostingV1WebsitesWebsiteResource.md) | Array of [`Hosting.V1.Websites.WebsiteResource`](#model/hostingv1websiteswebsiteresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HostingListWebsitesV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HostingListWebsitesV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
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)
|