hostinger-api-sdk 0.0.12 → 0.0.15
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/ISSUE_TEMPLATE/bug_report.md +36 -0
- package/README.md +2 -2
- package/api.ts +2820 -1228
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +2050 -1042
- package/dist/api.js +2107 -1004
- 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 +2050 -1042
- package/dist/esm/api.js +2092 -997
- 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/BillingCatalogApi.md +64 -0
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingPaymentMethodsApi.md +162 -0
- package/docs/BillingSubscriptionsApi.md +113 -0
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
- package/docs/BillingV1CatalogCatalogItemResource.md +28 -0
- package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
- package/docs/BillingV1OrderOrderResource.md +36 -0
- package/docs/BillingV1OrderStoreRequest.md +24 -0
- package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
- package/docs/BillingV1OrderVirtualMachineOrderResource.md +22 -0
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
- package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
- package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
- package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
- package/docs/CommonSuccessEmptyResource.md +20 -0
- package/docs/DNSSnapshotApi.md +175 -0
- package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
- package/docs/DNSV1ZoneDestroyRequest.md +20 -0
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
- package/docs/DNSV1ZoneNameRecordResource.md +22 -0
- package/docs/DNSV1ZoneRecordResource.md +26 -0
- package/docs/DNSV1ZoneResetRequest.md +24 -0
- package/docs/DNSV1ZoneUpdateRequest.md +22 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
- package/docs/DNSZoneApi.md +297 -0
- package/docs/DomainsAvailabilityApi.md +63 -0
- package/docs/DomainsForwardingApi.md +171 -0
- package/docs/DomainsPortfolioApi.md +439 -0
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
- package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
- package/docs/DomainsV1DomainDomainResource.md +30 -0
- package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
- package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
- package/docs/DomainsV1WHOISProfileResource.md +34 -0
- package/docs/DomainsV1WHOISStoreRequest.md +28 -0
- package/docs/DomainsWHOISApi.md +279 -0
- package/docs/InlineObject.md +22 -0
- package/docs/InlineObject1.md +22 -0
- package/docs/InlineObject2.md +24 -0
- package/docs/InlineObject2Errors.md +23 -0
- package/docs/ReachContactsApi.md +224 -0
- package/docs/ReachListContactsV1200Response.md +22 -0
- package/docs/ReachV1ContactsContactResource.md +34 -0
- package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
- package/docs/ReachV1ContactsStoreRequest.md +28 -0
- package/docs/VPSActionsApi.md +121 -0
- package/docs/VPSBackupsApi.md +121 -0
- package/docs/VPSDataCentersApi.md +54 -0
- package/docs/VPSDockerManagerApi.md +585 -0
- package/docs/VPSFirewallApi.md +577 -0
- package/docs/VPSGetActionsV1200Response.md +22 -0
- package/docs/VPSGetBackupsV1200Response.md +22 -0
- package/docs/VPSGetFirewallListV1200Response.md +22 -0
- package/docs/VPSGetPostInstallScriptsV1200Response.md +22 -0
- package/docs/VPSGetPublicKeysV1200Response.md +22 -0
- package/docs/VPSMalwareScannerApi.md +172 -0
- package/docs/VPSOSTemplatesApi.md +108 -0
- package/docs/VPSPTRRecordsApi.md +126 -0
- package/docs/VPSPostInstallScriptsApi.md +284 -0
- package/docs/VPSPublicKeysApi.md +230 -0
- package/docs/VPSRecoveryApi.md +120 -0
- package/docs/VPSSnapshotsApi.md +223 -0
- package/docs/VPSV1ActionActionResource.md +28 -0
- package/docs/VPSV1BackupBackupResource.md +28 -0
- package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
- package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
- package/docs/VPSV1DockerManagerContainerResource.md +36 -0
- package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
- package/docs/VPSV1DockerManagerContentResource.md +22 -0
- package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
- package/docs/VPSV1DockerManagerLogsResource.md +22 -0
- package/docs/VPSV1DockerManagerProjectResource.md +28 -0
- package/docs/VPSV1FirewallFirewallResource.md +30 -0
- package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
- package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
- package/docs/VPSV1FirewallStoreRequest.md +20 -0
- package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
- package/docs/VPSV1MalwareMetricsResource.md +30 -0
- package/docs/VPSV1MetricsMetricsCollection.md +30 -0
- package/docs/VPSV1MetricsMetricsResource.md +22 -0
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
- package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
- package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
- package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
- package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +26 -0
- package/docs/VPSV1TemplateTemplateResource.md +26 -0
- package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +24 -0
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineMetricGetRequest.md +22 -0
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +24 -0
- package/docs/VPSV1VirtualMachinePTRStoreRequest.md +20 -0
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachinePurchaseRequest.md +26 -0
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecreateRequest.md +26 -0
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +23 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +54 -0
- package/docs/VPSVirtualMachineApi.md +852 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# DNSZoneApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteDNSRecordsV1**](#deletednsrecordsv1) | **DELETE** /api/dns/v1/zones/{domain} | Delete DNS records|
|
|
8
|
+
|[**getDNSRecordsV1**](#getdnsrecordsv1) | **GET** /api/dns/v1/zones/{domain} | Get DNS records|
|
|
9
|
+
|[**resetDNSRecordsV1**](#resetdnsrecordsv1) | **POST** /api/dns/v1/zones/{domain}/reset | Reset DNS records|
|
|
10
|
+
|[**updateDNSRecordsV1**](#updatednsrecordsv1) | **PUT** /api/dns/v1/zones/{domain} | Update DNS records|
|
|
11
|
+
|[**validateDNSRecordsV1**](#validatednsrecordsv1) | **POST** /api/dns/v1/zones/{domain}/validate | Validate DNS records|
|
|
12
|
+
|
|
13
|
+
# **deleteDNSRecordsV1**
|
|
14
|
+
> CommonSuccessEmptyResource deleteDNSRecordsV1(dNSV1ZoneDestroyRequest)
|
|
15
|
+
|
|
16
|
+
Delete DNS records for the selected domain. To filter which records to delete, add the `name` of the record and `type` to the filter. Multiple filters can be provided with single request. If you have multiple records with the same name and type, and you want to delete only part of them, refer to the `Update zone records` endpoint. Use this endpoint to remove specific DNS records from domains.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
DNSZoneApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
DNSV1ZoneDestroyRequest
|
|
25
|
+
} from 'hostinger-api-sdk';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new DNSZoneApi(configuration);
|
|
29
|
+
|
|
30
|
+
let domain: string; //Domain name (default to undefined)
|
|
31
|
+
let dNSV1ZoneDestroyRequest: DNSV1ZoneDestroyRequest; //
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.deleteDNSRecordsV1(
|
|
34
|
+
domain,
|
|
35
|
+
dNSV1ZoneDestroyRequest
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **dNSV1ZoneDestroyRequest** | **DNSV1ZoneDestroyRequest**| | |
|
|
44
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**CommonSuccessEmptyResource**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[apiToken](../README.md#apiToken)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | Success response | - |
|
|
65
|
+
|**422** | Validation error response | - |
|
|
66
|
+
|**401** | Unauthenticated response | - |
|
|
67
|
+
|**500** | Error response | - |
|
|
68
|
+
|
|
69
|
+
[[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)
|
|
70
|
+
|
|
71
|
+
# **getDNSRecordsV1**
|
|
72
|
+
> Array<DNSV1ZoneRecordResource> getDNSRecordsV1()
|
|
73
|
+
|
|
74
|
+
Retrieve DNS zone records for a specific domain. Use this endpoint to view current DNS configuration for domain management.
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
DNSZoneApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from 'hostinger-api-sdk';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new DNSZoneApi(configuration);
|
|
86
|
+
|
|
87
|
+
let domain: string; //Domain name (default to undefined)
|
|
88
|
+
|
|
89
|
+
const { status, data } = await apiInstance.getDNSRecordsV1(
|
|
90
|
+
domain
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
**Array<DNSV1ZoneRecordResource>**
|
|
104
|
+
|
|
105
|
+
### Authorization
|
|
106
|
+
|
|
107
|
+
[apiToken](../README.md#apiToken)
|
|
108
|
+
|
|
109
|
+
### HTTP request headers
|
|
110
|
+
|
|
111
|
+
- **Content-Type**: Not defined
|
|
112
|
+
- **Accept**: application/json
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### HTTP response details
|
|
116
|
+
| Status code | Description | Response headers |
|
|
117
|
+
|-------------|-------------|------------------|
|
|
118
|
+
|**200** | Success 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
|
+
|
|
124
|
+
# **resetDNSRecordsV1**
|
|
125
|
+
> CommonSuccessEmptyResource resetDNSRecordsV1(dNSV1ZoneResetRequest)
|
|
126
|
+
|
|
127
|
+
Reset DNS zone to the default records. Use this endpoint to restore domain DNS to original configuration.
|
|
128
|
+
|
|
129
|
+
### Example
|
|
130
|
+
|
|
131
|
+
```typescript
|
|
132
|
+
import {
|
|
133
|
+
DNSZoneApi,
|
|
134
|
+
Configuration,
|
|
135
|
+
DNSV1ZoneResetRequest
|
|
136
|
+
} from 'hostinger-api-sdk';
|
|
137
|
+
|
|
138
|
+
const configuration = new Configuration();
|
|
139
|
+
const apiInstance = new DNSZoneApi(configuration);
|
|
140
|
+
|
|
141
|
+
let domain: string; //Domain name (default to undefined)
|
|
142
|
+
let dNSV1ZoneResetRequest: DNSV1ZoneResetRequest; //
|
|
143
|
+
|
|
144
|
+
const { status, data } = await apiInstance.resetDNSRecordsV1(
|
|
145
|
+
domain,
|
|
146
|
+
dNSV1ZoneResetRequest
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **dNSV1ZoneResetRequest** | **DNSV1ZoneResetRequest**| | |
|
|
155
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### Return type
|
|
159
|
+
|
|
160
|
+
**CommonSuccessEmptyResource**
|
|
161
|
+
|
|
162
|
+
### Authorization
|
|
163
|
+
|
|
164
|
+
[apiToken](../README.md#apiToken)
|
|
165
|
+
|
|
166
|
+
### HTTP request headers
|
|
167
|
+
|
|
168
|
+
- **Content-Type**: application/json
|
|
169
|
+
- **Accept**: application/json
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### HTTP response details
|
|
173
|
+
| Status code | Description | Response headers |
|
|
174
|
+
|-------------|-------------|------------------|
|
|
175
|
+
|**200** | Success response | - |
|
|
176
|
+
|**422** | Validation error response | - |
|
|
177
|
+
|**401** | Unauthenticated response | - |
|
|
178
|
+
|**500** | Error response | - |
|
|
179
|
+
|
|
180
|
+
[[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)
|
|
181
|
+
|
|
182
|
+
# **updateDNSRecordsV1**
|
|
183
|
+
> CommonSuccessEmptyResource updateDNSRecordsV1(dNSV1ZoneUpdateRequest)
|
|
184
|
+
|
|
185
|
+
Update DNS records for the selected domain. Using `overwrite = true` will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added. Use this endpoint to modify domain DNS configuration.
|
|
186
|
+
|
|
187
|
+
### Example
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
import {
|
|
191
|
+
DNSZoneApi,
|
|
192
|
+
Configuration,
|
|
193
|
+
DNSV1ZoneUpdateRequest
|
|
194
|
+
} from 'hostinger-api-sdk';
|
|
195
|
+
|
|
196
|
+
const configuration = new Configuration();
|
|
197
|
+
const apiInstance = new DNSZoneApi(configuration);
|
|
198
|
+
|
|
199
|
+
let domain: string; //Domain name (default to undefined)
|
|
200
|
+
let dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest; //
|
|
201
|
+
|
|
202
|
+
const { status, data } = await apiInstance.updateDNSRecordsV1(
|
|
203
|
+
domain,
|
|
204
|
+
dNSV1ZoneUpdateRequest
|
|
205
|
+
);
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Parameters
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **dNSV1ZoneUpdateRequest** | **DNSV1ZoneUpdateRequest**| | |
|
|
213
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Return type
|
|
217
|
+
|
|
218
|
+
**CommonSuccessEmptyResource**
|
|
219
|
+
|
|
220
|
+
### Authorization
|
|
221
|
+
|
|
222
|
+
[apiToken](../README.md#apiToken)
|
|
223
|
+
|
|
224
|
+
### HTTP request headers
|
|
225
|
+
|
|
226
|
+
- **Content-Type**: application/json
|
|
227
|
+
- **Accept**: application/json
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### HTTP response details
|
|
231
|
+
| Status code | Description | Response headers |
|
|
232
|
+
|-------------|-------------|------------------|
|
|
233
|
+
|**200** | Success response | - |
|
|
234
|
+
|**422** | Validation error response | - |
|
|
235
|
+
|**401** | Unauthenticated response | - |
|
|
236
|
+
|**500** | Error response | - |
|
|
237
|
+
|
|
238
|
+
[[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)
|
|
239
|
+
|
|
240
|
+
# **validateDNSRecordsV1**
|
|
241
|
+
> CommonSuccessEmptyResource validateDNSRecordsV1(dNSV1ZoneUpdateRequest)
|
|
242
|
+
|
|
243
|
+
Validate DNS records prior to update for the selected domain. If the validation is successful, the response will contain `200 Success` code. If there is validation error, the response will fail with `422 Validation error` code. Use this endpoint to verify DNS record validity before applying changes.
|
|
244
|
+
|
|
245
|
+
### Example
|
|
246
|
+
|
|
247
|
+
```typescript
|
|
248
|
+
import {
|
|
249
|
+
DNSZoneApi,
|
|
250
|
+
Configuration,
|
|
251
|
+
DNSV1ZoneUpdateRequest
|
|
252
|
+
} from 'hostinger-api-sdk';
|
|
253
|
+
|
|
254
|
+
const configuration = new Configuration();
|
|
255
|
+
const apiInstance = new DNSZoneApi(configuration);
|
|
256
|
+
|
|
257
|
+
let domain: string; //Domain name (default to undefined)
|
|
258
|
+
let dNSV1ZoneUpdateRequest: DNSV1ZoneUpdateRequest; //
|
|
259
|
+
|
|
260
|
+
const { status, data } = await apiInstance.validateDNSRecordsV1(
|
|
261
|
+
domain,
|
|
262
|
+
dNSV1ZoneUpdateRequest
|
|
263
|
+
);
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Parameters
|
|
267
|
+
|
|
268
|
+
|Name | Type | Description | Notes|
|
|
269
|
+
|------------- | ------------- | ------------- | -------------|
|
|
270
|
+
| **dNSV1ZoneUpdateRequest** | **DNSV1ZoneUpdateRequest**| | |
|
|
271
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Return type
|
|
275
|
+
|
|
276
|
+
**CommonSuccessEmptyResource**
|
|
277
|
+
|
|
278
|
+
### Authorization
|
|
279
|
+
|
|
280
|
+
[apiToken](../README.md#apiToken)
|
|
281
|
+
|
|
282
|
+
### HTTP request headers
|
|
283
|
+
|
|
284
|
+
- **Content-Type**: application/json
|
|
285
|
+
- **Accept**: application/json
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
| Status code | Description | Response headers |
|
|
290
|
+
|-------------|-------------|------------------|
|
|
291
|
+
|**200** | Success response | - |
|
|
292
|
+
|**422** | Validation error response | - |
|
|
293
|
+
|**401** | Unauthenticated response | - |
|
|
294
|
+
|**500** | Error response | - |
|
|
295
|
+
|
|
296
|
+
[[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)
|
|
297
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# DomainsAvailabilityApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**checkDomainAvailabilityV1**](#checkdomainavailabilityv1) | **POST** /api/domains/v1/availability | Check domain availability|
|
|
8
|
+
|
|
9
|
+
# **checkDomainAvailabilityV1**
|
|
10
|
+
> Array<DomainsV1AvailabilityAvailabilityResource> checkDomainAvailabilityV1(domainsV1AvailabilityAvailabilityRequest)
|
|
11
|
+
|
|
12
|
+
Check availability of domain names across multiple TLDs. Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set `with_alternatives` to `true`. TLDs should be provided without leading dot (e.g. `com`, `net`, `org`). Endpoint has rate limit of 10 requests per minute. Use this endpoint to verify domain availability before purchase.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
DomainsAvailabilityApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
DomainsV1AvailabilityAvailabilityRequest
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new DomainsAvailabilityApi(configuration);
|
|
25
|
+
|
|
26
|
+
let domainsV1AvailabilityAvailabilityRequest: DomainsV1AvailabilityAvailabilityRequest; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.checkDomainAvailabilityV1(
|
|
29
|
+
domainsV1AvailabilityAvailabilityRequest
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **domainsV1AvailabilityAvailabilityRequest** | **DomainsV1AvailabilityAvailabilityRequest**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**Array<DomainsV1AvailabilityAvailabilityResource>**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[apiToken](../README.md#apiToken)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Success response | - |
|
|
58
|
+
|**422** | Validation error response | - |
|
|
59
|
+
|**401** | Unauthenticated response | - |
|
|
60
|
+
|**500** | Error response | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# DomainsForwardingApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createDomainForwardingV1**](#createdomainforwardingv1) | **POST** /api/domains/v1/forwarding | Create domain forwarding|
|
|
8
|
+
|[**deleteDomainForwardingV1**](#deletedomainforwardingv1) | **DELETE** /api/domains/v1/forwarding/{domain} | Delete domain forwarding|
|
|
9
|
+
|[**getDomainForwardingV1**](#getdomainforwardingv1) | **GET** /api/domains/v1/forwarding/{domain} | Get domain forwarding|
|
|
10
|
+
|
|
11
|
+
# **createDomainForwardingV1**
|
|
12
|
+
> DomainsV1ForwardingForwardingResource createDomainForwardingV1(domainsV1ForwardingStoreRequest)
|
|
13
|
+
|
|
14
|
+
Create domain forwarding configuration. Use this endpoint to set up domain redirects to other URLs.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
DomainsForwardingApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
DomainsV1ForwardingStoreRequest
|
|
23
|
+
} from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new DomainsForwardingApi(configuration);
|
|
27
|
+
|
|
28
|
+
let domainsV1ForwardingStoreRequest: DomainsV1ForwardingStoreRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createDomainForwardingV1(
|
|
31
|
+
domainsV1ForwardingStoreRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **domainsV1ForwardingStoreRequest** | **DomainsV1ForwardingStoreRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**DomainsV1ForwardingForwardingResource**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[apiToken](../README.md#apiToken)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | Success response | - |
|
|
60
|
+
|**422** | Validation error 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
|
+
# **deleteDomainForwardingV1**
|
|
67
|
+
> CommonSuccessEmptyResource deleteDomainForwardingV1()
|
|
68
|
+
|
|
69
|
+
Delete domain forwarding data. Use this endpoint to remove redirect configuration from domains.
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
DomainsForwardingApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'hostinger-api-sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new DomainsForwardingApi(configuration);
|
|
81
|
+
|
|
82
|
+
let domain: string; //Domain name (default to undefined)
|
|
83
|
+
|
|
84
|
+
const { status, data } = await apiInstance.deleteDomainForwardingV1(
|
|
85
|
+
domain
|
|
86
|
+
);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
|Name | Type | Description | Notes|
|
|
92
|
+
|------------- | ------------- | ------------- | -------------|
|
|
93
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Return type
|
|
97
|
+
|
|
98
|
+
**CommonSuccessEmptyResource**
|
|
99
|
+
|
|
100
|
+
### Authorization
|
|
101
|
+
|
|
102
|
+
[apiToken](../README.md#apiToken)
|
|
103
|
+
|
|
104
|
+
### HTTP request headers
|
|
105
|
+
|
|
106
|
+
- **Content-Type**: Not defined
|
|
107
|
+
- **Accept**: application/json
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### HTTP response details
|
|
111
|
+
| Status code | Description | Response headers |
|
|
112
|
+
|-------------|-------------|------------------|
|
|
113
|
+
|**200** | Success response | - |
|
|
114
|
+
|**401** | Unauthenticated response | - |
|
|
115
|
+
|**500** | Error response | - |
|
|
116
|
+
|
|
117
|
+
[[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)
|
|
118
|
+
|
|
119
|
+
# **getDomainForwardingV1**
|
|
120
|
+
> DomainsV1ForwardingForwardingResource getDomainForwardingV1()
|
|
121
|
+
|
|
122
|
+
Retrieve domain forwarding data. Use this endpoint to view current redirect configuration for domains.
|
|
123
|
+
|
|
124
|
+
### Example
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import {
|
|
128
|
+
DomainsForwardingApi,
|
|
129
|
+
Configuration
|
|
130
|
+
} from 'hostinger-api-sdk';
|
|
131
|
+
|
|
132
|
+
const configuration = new Configuration();
|
|
133
|
+
const apiInstance = new DomainsForwardingApi(configuration);
|
|
134
|
+
|
|
135
|
+
let domain: string; //Domain name (default to undefined)
|
|
136
|
+
|
|
137
|
+
const { status, data } = await apiInstance.getDomainForwardingV1(
|
|
138
|
+
domain
|
|
139
|
+
);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
|Name | Type | Description | Notes|
|
|
145
|
+
|------------- | ------------- | ------------- | -------------|
|
|
146
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**DomainsV1ForwardingForwardingResource**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[apiToken](../README.md#apiToken)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
| Status code | Description | Response headers |
|
|
165
|
+
|-------------|-------------|------------------|
|
|
166
|
+
|**200** | Success response | - |
|
|
167
|
+
|**401** | Unauthenticated response | - |
|
|
168
|
+
|**500** | Error response | - |
|
|
169
|
+
|
|
170
|
+
[[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)
|
|
171
|
+
|