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,439 @@
|
|
|
1
|
+
# DomainsPortfolioApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**disableDomainLockV1**](#disabledomainlockv1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock|
|
|
8
|
+
|[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
|
|
9
|
+
|[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
|
|
10
|
+
|[**enablePrivacyProtectionV1**](#enableprivacyprotectionv1) | **PUT** /api/domains/v1/portfolio/{domain}/privacy-protection | Enable privacy protection|
|
|
11
|
+
|[**getDomainDetailsV1**](#getdomaindetailsv1) | **GET** /api/domains/v1/portfolio/{domain} | Get domain details|
|
|
12
|
+
|[**getDomainListV1**](#getdomainlistv1) | **GET** /api/domains/v1/portfolio | Get domain list|
|
|
13
|
+
|[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
|
|
14
|
+
|[**updateDomainNameserversV1**](#updatedomainnameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update domain nameservers|
|
|
15
|
+
|
|
16
|
+
# **disableDomainLockV1**
|
|
17
|
+
> CommonSuccessEmptyResource disableDomainLockV1()
|
|
18
|
+
|
|
19
|
+
Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import {
|
|
25
|
+
DomainsPortfolioApi,
|
|
26
|
+
Configuration
|
|
27
|
+
} from 'hostinger-api-sdk';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
31
|
+
|
|
32
|
+
let domain: string; //Domain name (default to undefined)
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.disableDomainLockV1(
|
|
35
|
+
domain
|
|
36
|
+
);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
|Name | Type | Description | Notes|
|
|
42
|
+
|------------- | ------------- | ------------- | -------------|
|
|
43
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**CommonSuccessEmptyResource**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiToken](../README.md#apiToken)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: Not defined
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Success empty response | - |
|
|
64
|
+
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**500** | Error response | - |
|
|
66
|
+
|
|
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
|
+
|
|
69
|
+
# **disablePrivacyProtectionV1**
|
|
70
|
+
> CommonSuccessEmptyResource disablePrivacyProtectionV1()
|
|
71
|
+
|
|
72
|
+
Disable privacy protection for the domain. When privacy protection is disabled, domain owner\'s personal information is visible in public WHOIS database. Use this endpoint to make domain owner\'s information publicly visible.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
DomainsPortfolioApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from 'hostinger-api-sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
84
|
+
|
|
85
|
+
let domain: string; //Domain name (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.disablePrivacyProtectionV1(
|
|
88
|
+
domain
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**CommonSuccessEmptyResource**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[apiToken](../README.md#apiToken)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: Not defined
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | Success empty response | - |
|
|
117
|
+
|**401** | Unauthenticated response | - |
|
|
118
|
+
|**500** | Error response | - |
|
|
119
|
+
|
|
120
|
+
[[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)
|
|
121
|
+
|
|
122
|
+
# **enableDomainLockV1**
|
|
123
|
+
> CommonSuccessEmptyResource enableDomainLockV1()
|
|
124
|
+
|
|
125
|
+
Enable domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock. Use this endpoint to secure domains against unauthorized transfers.
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import {
|
|
131
|
+
DomainsPortfolioApi,
|
|
132
|
+
Configuration
|
|
133
|
+
} from 'hostinger-api-sdk';
|
|
134
|
+
|
|
135
|
+
const configuration = new Configuration();
|
|
136
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
137
|
+
|
|
138
|
+
let domain: string; //Domain name (default to undefined)
|
|
139
|
+
|
|
140
|
+
const { status, data } = await apiInstance.enableDomainLockV1(
|
|
141
|
+
domain
|
|
142
|
+
);
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
|Name | Type | Description | Notes|
|
|
148
|
+
|------------- | ------------- | ------------- | -------------|
|
|
149
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Return type
|
|
153
|
+
|
|
154
|
+
**CommonSuccessEmptyResource**
|
|
155
|
+
|
|
156
|
+
### Authorization
|
|
157
|
+
|
|
158
|
+
[apiToken](../README.md#apiToken)
|
|
159
|
+
|
|
160
|
+
### HTTP request headers
|
|
161
|
+
|
|
162
|
+
- **Content-Type**: Not defined
|
|
163
|
+
- **Accept**: application/json
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### HTTP response details
|
|
167
|
+
| Status code | Description | Response headers |
|
|
168
|
+
|-------------|-------------|------------------|
|
|
169
|
+
|**200** | Success empty response | - |
|
|
170
|
+
|**401** | Unauthenticated response | - |
|
|
171
|
+
|**500** | Error response | - |
|
|
172
|
+
|
|
173
|
+
[[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)
|
|
174
|
+
|
|
175
|
+
# **enablePrivacyProtectionV1**
|
|
176
|
+
> CommonSuccessEmptyResource enablePrivacyProtectionV1()
|
|
177
|
+
|
|
178
|
+
Enable privacy protection for the domain. When privacy protection is enabled, domain owner\'s personal information is hidden from public WHOIS database. Use this endpoint to protect domain owner\'s personal information from public view.
|
|
179
|
+
|
|
180
|
+
### Example
|
|
181
|
+
|
|
182
|
+
```typescript
|
|
183
|
+
import {
|
|
184
|
+
DomainsPortfolioApi,
|
|
185
|
+
Configuration
|
|
186
|
+
} from 'hostinger-api-sdk';
|
|
187
|
+
|
|
188
|
+
const configuration = new Configuration();
|
|
189
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
190
|
+
|
|
191
|
+
let domain: string; //Domain name (default to undefined)
|
|
192
|
+
|
|
193
|
+
const { status, data } = await apiInstance.enablePrivacyProtectionV1(
|
|
194
|
+
domain
|
|
195
|
+
);
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### Parameters
|
|
199
|
+
|
|
200
|
+
|Name | Type | Description | Notes|
|
|
201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
202
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Return type
|
|
206
|
+
|
|
207
|
+
**CommonSuccessEmptyResource**
|
|
208
|
+
|
|
209
|
+
### Authorization
|
|
210
|
+
|
|
211
|
+
[apiToken](../README.md#apiToken)
|
|
212
|
+
|
|
213
|
+
### HTTP request headers
|
|
214
|
+
|
|
215
|
+
- **Content-Type**: Not defined
|
|
216
|
+
- **Accept**: application/json
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
### HTTP response details
|
|
220
|
+
| Status code | Description | Response headers |
|
|
221
|
+
|-------------|-------------|------------------|
|
|
222
|
+
|**200** | Success empty response | - |
|
|
223
|
+
|**401** | Unauthenticated response | - |
|
|
224
|
+
|**500** | Error response | - |
|
|
225
|
+
|
|
226
|
+
[[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)
|
|
227
|
+
|
|
228
|
+
# **getDomainDetailsV1**
|
|
229
|
+
> DomainsV1DomainDomainExtendedResource getDomainDetailsV1()
|
|
230
|
+
|
|
231
|
+
Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
|
|
232
|
+
|
|
233
|
+
### Example
|
|
234
|
+
|
|
235
|
+
```typescript
|
|
236
|
+
import {
|
|
237
|
+
DomainsPortfolioApi,
|
|
238
|
+
Configuration
|
|
239
|
+
} from 'hostinger-api-sdk';
|
|
240
|
+
|
|
241
|
+
const configuration = new Configuration();
|
|
242
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
243
|
+
|
|
244
|
+
let domain: string; //Domain name (default to undefined)
|
|
245
|
+
|
|
246
|
+
const { status, data } = await apiInstance.getDomainDetailsV1(
|
|
247
|
+
domain
|
|
248
|
+
);
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Parameters
|
|
252
|
+
|
|
253
|
+
|Name | Type | Description | Notes|
|
|
254
|
+
|------------- | ------------- | ------------- | -------------|
|
|
255
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
### Return type
|
|
259
|
+
|
|
260
|
+
**DomainsV1DomainDomainExtendedResource**
|
|
261
|
+
|
|
262
|
+
### Authorization
|
|
263
|
+
|
|
264
|
+
[apiToken](../README.md#apiToken)
|
|
265
|
+
|
|
266
|
+
### HTTP request headers
|
|
267
|
+
|
|
268
|
+
- **Content-Type**: Not defined
|
|
269
|
+
- **Accept**: application/json
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
### HTTP response details
|
|
273
|
+
| Status code | Description | Response headers |
|
|
274
|
+
|-------------|-------------|------------------|
|
|
275
|
+
|**200** | Success response | - |
|
|
276
|
+
|**401** | Unauthenticated response | - |
|
|
277
|
+
|**500** | Error response | - |
|
|
278
|
+
|
|
279
|
+
[[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)
|
|
280
|
+
|
|
281
|
+
# **getDomainListV1**
|
|
282
|
+
> Array<DomainsV1DomainDomainResource> getDomainListV1()
|
|
283
|
+
|
|
284
|
+
Retrieve all domains associated with your account. Use this endpoint to view user\'s domain portfolio.
|
|
285
|
+
|
|
286
|
+
### Example
|
|
287
|
+
|
|
288
|
+
```typescript
|
|
289
|
+
import {
|
|
290
|
+
DomainsPortfolioApi,
|
|
291
|
+
Configuration
|
|
292
|
+
} from 'hostinger-api-sdk';
|
|
293
|
+
|
|
294
|
+
const configuration = new Configuration();
|
|
295
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
296
|
+
|
|
297
|
+
const { status, data } = await apiInstance.getDomainListV1();
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
### Parameters
|
|
301
|
+
This endpoint does not have any parameters.
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Return type
|
|
305
|
+
|
|
306
|
+
**Array<DomainsV1DomainDomainResource>**
|
|
307
|
+
|
|
308
|
+
### Authorization
|
|
309
|
+
|
|
310
|
+
[apiToken](../README.md#apiToken)
|
|
311
|
+
|
|
312
|
+
### HTTP request headers
|
|
313
|
+
|
|
314
|
+
- **Content-Type**: Not defined
|
|
315
|
+
- **Accept**: application/json
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
### HTTP response details
|
|
319
|
+
| Status code | Description | Response headers |
|
|
320
|
+
|-------------|-------------|------------------|
|
|
321
|
+
|**200** | Success response | - |
|
|
322
|
+
|**401** | Unauthenticated response | - |
|
|
323
|
+
|**500** | Error response | - |
|
|
324
|
+
|
|
325
|
+
[[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)
|
|
326
|
+
|
|
327
|
+
# **purchaseNewDomainV1**
|
|
328
|
+
> BillingV1OrderOrderResource purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest)
|
|
329
|
+
|
|
330
|
+
Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
|
|
331
|
+
|
|
332
|
+
### Example
|
|
333
|
+
|
|
334
|
+
```typescript
|
|
335
|
+
import {
|
|
336
|
+
DomainsPortfolioApi,
|
|
337
|
+
Configuration,
|
|
338
|
+
DomainsV1PortfolioPurchaseRequest
|
|
339
|
+
} from 'hostinger-api-sdk';
|
|
340
|
+
|
|
341
|
+
const configuration = new Configuration();
|
|
342
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
343
|
+
|
|
344
|
+
let domainsV1PortfolioPurchaseRequest: DomainsV1PortfolioPurchaseRequest; //
|
|
345
|
+
|
|
346
|
+
const { status, data } = await apiInstance.purchaseNewDomainV1(
|
|
347
|
+
domainsV1PortfolioPurchaseRequest
|
|
348
|
+
);
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Parameters
|
|
352
|
+
|
|
353
|
+
|Name | Type | Description | Notes|
|
|
354
|
+
|------------- | ------------- | ------------- | -------------|
|
|
355
|
+
| **domainsV1PortfolioPurchaseRequest** | **DomainsV1PortfolioPurchaseRequest**| | |
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
### Return type
|
|
359
|
+
|
|
360
|
+
**BillingV1OrderOrderResource**
|
|
361
|
+
|
|
362
|
+
### Authorization
|
|
363
|
+
|
|
364
|
+
[apiToken](../README.md#apiToken)
|
|
365
|
+
|
|
366
|
+
### HTTP request headers
|
|
367
|
+
|
|
368
|
+
- **Content-Type**: application/json
|
|
369
|
+
- **Accept**: application/json
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### HTTP response details
|
|
373
|
+
| Status code | Description | Response headers |
|
|
374
|
+
|-------------|-------------|------------------|
|
|
375
|
+
|**200** | Success response | - |
|
|
376
|
+
|**422** | Validation error response | - |
|
|
377
|
+
|**401** | Unauthenticated response | - |
|
|
378
|
+
|**500** | Error response | - |
|
|
379
|
+
|
|
380
|
+
[[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)
|
|
381
|
+
|
|
382
|
+
# **updateDomainNameserversV1**
|
|
383
|
+
> CommonSuccessEmptyResource updateDomainNameserversV1(domainsV1PortfolioUpdateNameserversRequest)
|
|
384
|
+
|
|
385
|
+
Set nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable. Use this endpoint to configure custom DNS hosting for domains.
|
|
386
|
+
|
|
387
|
+
### Example
|
|
388
|
+
|
|
389
|
+
```typescript
|
|
390
|
+
import {
|
|
391
|
+
DomainsPortfolioApi,
|
|
392
|
+
Configuration,
|
|
393
|
+
DomainsV1PortfolioUpdateNameserversRequest
|
|
394
|
+
} from 'hostinger-api-sdk';
|
|
395
|
+
|
|
396
|
+
const configuration = new Configuration();
|
|
397
|
+
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
398
|
+
|
|
399
|
+
let domain: string; //Domain name (default to undefined)
|
|
400
|
+
let domainsV1PortfolioUpdateNameserversRequest: DomainsV1PortfolioUpdateNameserversRequest; //
|
|
401
|
+
|
|
402
|
+
const { status, data } = await apiInstance.updateDomainNameserversV1(
|
|
403
|
+
domain,
|
|
404
|
+
domainsV1PortfolioUpdateNameserversRequest
|
|
405
|
+
);
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
### Parameters
|
|
409
|
+
|
|
410
|
+
|Name | Type | Description | Notes|
|
|
411
|
+
|------------- | ------------- | ------------- | -------------|
|
|
412
|
+
| **domainsV1PortfolioUpdateNameserversRequest** | **DomainsV1PortfolioUpdateNameserversRequest**| | |
|
|
413
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
### Return type
|
|
417
|
+
|
|
418
|
+
**CommonSuccessEmptyResource**
|
|
419
|
+
|
|
420
|
+
### Authorization
|
|
421
|
+
|
|
422
|
+
[apiToken](../README.md#apiToken)
|
|
423
|
+
|
|
424
|
+
### HTTP request headers
|
|
425
|
+
|
|
426
|
+
- **Content-Type**: application/json
|
|
427
|
+
- **Accept**: application/json
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
### HTTP response details
|
|
431
|
+
| Status code | Description | Response headers |
|
|
432
|
+
|-------------|-------------|------------------|
|
|
433
|
+
|**200** | Success empty response | - |
|
|
434
|
+
|**422** | Validation error response | - |
|
|
435
|
+
|**401** | Unauthenticated response | - |
|
|
436
|
+
|**500** | Error response | - |
|
|
437
|
+
|
|
438
|
+
[[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)
|
|
439
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DomainsV1AvailabilityAvailabilityRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name (without TLD) | [default to undefined]
|
|
9
|
+
**tlds** | **Array<string>** | TLDs list | [default to undefined]
|
|
10
|
+
**with_alternatives** | **boolean** | Should response include alternatives | [optional] [default to false]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainsV1AvailabilityAvailabilityRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainsV1AvailabilityAvailabilityRequest = {
|
|
18
|
+
domain,
|
|
19
|
+
tlds,
|
|
20
|
+
with_alternatives,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# DomainsV1AvailabilityAvailabilityResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name, `null` when not claimed free domain | [optional] [default to undefined]
|
|
9
|
+
**is_available** | **boolean** | `true` if domain is available for registration | [optional] [default to undefined]
|
|
10
|
+
**is_alternative** | **boolean** | `true` if domain is provided as an alternative | [optional] [default to undefined]
|
|
11
|
+
**restriction** | **string** | Special rules and/or restrictions applied for registering TLD | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DomainsV1AvailabilityAvailabilityResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DomainsV1AvailabilityAvailabilityResource = {
|
|
19
|
+
domain,
|
|
20
|
+
is_available,
|
|
21
|
+
is_alternative,
|
|
22
|
+
restriction,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# DomainsV1DomainDomainExtendedResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Status of the domain | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**is_privacy_protection_allowed** | **boolean** | Is privacy protection allowed for the domain | [optional] [default to undefined]
|
|
12
|
+
**is_privacy_protected** | **boolean** | Is privacy protection enabled for the domain | [optional] [default to undefined]
|
|
13
|
+
**is_lockable** | **boolean** | Is domain allowed to be locked | [optional] [default to undefined]
|
|
14
|
+
**is_locked** | **boolean** | Is domain locked | [optional] [default to undefined]
|
|
15
|
+
**name_servers** | [**DomainsV1DomainDomainExtendedResourceNameServers**](DomainsV1DomainDomainExtendedResourceNameServers.md) | | [optional] [default to undefined]
|
|
16
|
+
**child_name_servers** | **Array<Array<string>>** | Child name servers | [optional] [default to undefined]
|
|
17
|
+
**domain_contacts** | [**DomainsV1DomainDomainExtendedResourceDomainContacts**](DomainsV1DomainDomainExtendedResourceDomainContacts.md) | | [optional] [default to undefined]
|
|
18
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**_60_days_lock_expires_at** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**registered_at** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { DomainsV1DomainDomainExtendedResource } from 'hostinger-api-sdk';
|
|
28
|
+
|
|
29
|
+
const instance: DomainsV1DomainDomainExtendedResource = {
|
|
30
|
+
domain,
|
|
31
|
+
status,
|
|
32
|
+
message,
|
|
33
|
+
is_privacy_protection_allowed,
|
|
34
|
+
is_privacy_protected,
|
|
35
|
+
is_lockable,
|
|
36
|
+
is_locked,
|
|
37
|
+
name_servers,
|
|
38
|
+
child_name_servers,
|
|
39
|
+
domain_contacts,
|
|
40
|
+
created_at,
|
|
41
|
+
updated_at,
|
|
42
|
+
_60_days_lock_expires_at,
|
|
43
|
+
registered_at,
|
|
44
|
+
expires_at,
|
|
45
|
+
};
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[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,27 @@
|
|
|
1
|
+
# DomainsV1DomainDomainExtendedResourceDomainContacts
|
|
2
|
+
|
|
3
|
+
WHOIS profiles
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**admin_id** | **number** | Admin WHOIS profile ID | [optional] [default to undefined]
|
|
10
|
+
**owner_id** | **number** | Owner WHOIS profile ID | [optional] [default to undefined]
|
|
11
|
+
**billing_id** | **number** | Billing WHOIS profile ID | [optional] [default to undefined]
|
|
12
|
+
**tech_id** | **number** | Technician WHOIS profile ID | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { DomainsV1DomainDomainExtendedResourceDomainContacts } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: DomainsV1DomainDomainExtendedResourceDomainContacts = {
|
|
20
|
+
admin_id,
|
|
21
|
+
owner_id,
|
|
22
|
+
billing_id,
|
|
23
|
+
tech_id,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[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,23 @@
|
|
|
1
|
+
# DomainsV1DomainDomainExtendedResourceNameServers
|
|
2
|
+
|
|
3
|
+
Name servers
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**ns1** | **string** | Name server 1 | [optional] [default to undefined]
|
|
10
|
+
**ns2** | **string** | Name server 2 | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainsV1DomainDomainExtendedResourceNameServers } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainsV1DomainDomainExtendedResourceNameServers = {
|
|
18
|
+
ns1,
|
|
19
|
+
ns2,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[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,30 @@
|
|
|
1
|
+
# DomainsV1DomainDomainResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Domain ID | [optional] [default to undefined]
|
|
9
|
+
**domain** | **string** | Domain name, `null` when not claimed free domain | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { DomainsV1DomainDomainResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: DomainsV1DomainDomainResource = {
|
|
21
|
+
id,
|
|
22
|
+
domain,
|
|
23
|
+
type,
|
|
24
|
+
status,
|
|
25
|
+
created_at,
|
|
26
|
+
expires_at,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# DomainsV1ForwardingForwardingResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [optional] [default to undefined]
|
|
9
|
+
**redirect_type** | **string** | Redirect type | [optional] [default to undefined]
|
|
10
|
+
**redirect_url** | **string** | URL domain is forwarded to | [optional] [default to undefined]
|
|
11
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { DomainsV1ForwardingForwardingResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: DomainsV1ForwardingForwardingResource = {
|
|
20
|
+
domain,
|
|
21
|
+
redirect_type,
|
|
22
|
+
redirect_url,
|
|
23
|
+
created_at,
|
|
24
|
+
updated_at,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DomainsV1ForwardingStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [default to undefined]
|
|
9
|
+
**redirect_type** | **string** | Redirect type | [default to undefined]
|
|
10
|
+
**redirect_url** | **string** | URL to forward domain to | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainsV1ForwardingStoreRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainsV1ForwardingStoreRequest = {
|
|
18
|
+
domain,
|
|
19
|
+
redirect_type,
|
|
20
|
+
redirect_url,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|