hostinger-api-sdk 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +386 -148
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +319 -143
- package/dist/api.js +139 -41
- 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 +319 -143
- package/dist/esm/api.js +136 -38
- 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/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingCatalogApi.md +0 -54
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingPaymentMethodsApi.md +0 -162
- package/docs/BillingSubscriptionsApi.md +0 -113
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +0 -32
- package/docs/BillingV1CatalogCatalogItemResource.md +0 -26
- package/docs/BillingV1OrderOrderBillingAddressResource.md +0 -40
- package/docs/BillingV1OrderOrderResource.md +0 -36
- package/docs/BillingV1OrderStoreRequest.md +0 -24
- package/docs/BillingV1OrderStoreRequestItemsInner.md +0 -22
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +0 -36
- package/docs/BillingV1SubscriptionCancelRequest.md +0 -22
- package/docs/BillingV1SubscriptionSubscriptionResource.md +0 -42
- package/docs/CommonSchemaErrorResponseSchema.md +0 -22
- package/docs/CommonSchemaPaginationMetaSchema.md +0 -24
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +0 -22
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +0 -24
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +0 -22
- package/docs/CommonSuccessEmptyResource.md +0 -20
- package/docs/DNSSnapshotApi.md +0 -175
- package/docs/DNSV1SnapshotSnapshotResource.md +0 -24
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +0 -26
- package/docs/DNSV1ZoneDestroyRequest.md +0 -20
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +0 -22
- package/docs/DNSV1ZoneNameRecordResource.md +0 -22
- package/docs/DNSV1ZoneRecordResource.md +0 -26
- package/docs/DNSV1ZoneResetRequest.md +0 -24
- package/docs/DNSV1ZoneUpdateRequest.md +0 -22
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +0 -26
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +0 -20
- package/docs/DNSZoneApi.md +0 -297
- package/docs/DomainsAvailabilityApi.md +0 -63
- package/docs/DomainsForwardingApi.md +0 -171
- package/docs/DomainsPortfolioApi.md +0 -439
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +0 -24
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +0 -26
- package/docs/DomainsV1DomainDomainExtendedResource.md +0 -48
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +0 -27
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +0 -23
- package/docs/DomainsV1DomainDomainResource.md +0 -30
- package/docs/DomainsV1ForwardingForwardingResource.md +0 -28
- package/docs/DomainsV1ForwardingStoreRequest.md +0 -24
- package/docs/DomainsV1PortfolioPurchaseRequest.md +0 -30
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +0 -27
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +0 -26
- package/docs/DomainsV1WHOISProfileResource.md +0 -34
- package/docs/DomainsV1WHOISStoreRequest.md +0 -28
- package/docs/DomainsWHOISApi.md +0 -279
- package/docs/VPSActionsApi.md +0 -121
- package/docs/VPSBackupsApi.md +0 -178
- package/docs/VPSDataCentersApi.md +0 -54
- package/docs/VPSFirewallApi.md +0 -577
- package/docs/VPSGetActionListV1200Response.md +0 -22
- package/docs/VPSGetBackupListV1200Response.md +0 -22
- package/docs/VPSGetFirewallListV1200Response.md +0 -22
- package/docs/VPSGetPostInstallScriptListV1200Response.md +0 -22
- package/docs/VPSGetPublicKeyListV1200Response.md +0 -22
- package/docs/VPSMalwareScannerApi.md +0 -172
- package/docs/VPSOSTemplatesApi.md +0 -108
- package/docs/VPSPTRRecordsApi.md +0 -115
- package/docs/VPSPostInstallScriptsApi.md +0 -284
- package/docs/VPSPublicKeysApi.md +0 -230
- package/docs/VPSRecoveryApi.md +0 -120
- package/docs/VPSSnapshotsApi.md +0 -223
- package/docs/VPSV1ActionActionResource.md +0 -28
- package/docs/VPSV1BackupBackupResource.md +0 -24
- package/docs/VPSV1DataCenterDataCenterResource.md +0 -28
- package/docs/VPSV1FirewallFirewallResource.md +0 -30
- package/docs/VPSV1FirewallFirewallRuleResource.md +0 -30
- package/docs/VPSV1FirewallRulesStoreRequest.md +0 -26
- package/docs/VPSV1FirewallStoreRequest.md +0 -20
- package/docs/VPSV1IPAddressIPAddressResource.md +0 -24
- package/docs/VPSV1MalwareMetricsResource.md +0 -30
- package/docs/VPSV1MetricsMetricsCollection.md +0 -30
- package/docs/VPSV1MetricsMetricsResource.md +0 -22
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +0 -28
- package/docs/VPSV1PostInstallScriptStoreRequest.md +0 -22
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
- package/docs/VPSV1PublicKeyPublicKeyResource.md +0 -24
- package/docs/VPSV1PublicKeyStoreRequest.md +0 -22
- package/docs/VPSV1SnapshotSnapshotResource.md +0 -24
- package/docs/VPSV1TemplateTemplateResource.md +0 -26
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +0 -22
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecreateRequest.md +0 -24
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineSetupRequest.md +0 -38
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +0 -22
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +0 -52
- package/docs/VPSVirtualMachineApi.md +0 -796
|
@@ -1,439 +0,0 @@
|
|
|
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
|
-
|[**getDomainListV1**](#getdomainlistv1) | **GET** /api/domains/v1/portfolio | Get domain list|
|
|
12
|
-
|[**getDomainV1**](#getdomainv1) | **GET** /api/domains/v1/portfolio/{domain} | Get domain|
|
|
13
|
-
|[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
|
|
14
|
-
|[**updateNameserversV1**](#updatenameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update nameservers|
|
|
15
|
-
|
|
16
|
-
# **disableDomainLockV1**
|
|
17
|
-
> CommonSuccessEmptyResource disableDomainLockV1()
|
|
18
|
-
|
|
19
|
-
This endpoint disables domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar.
|
|
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 | - |
|
|
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
|
-
This endpoint disables privacy protection for the domain. When privacy protection is disabled, the domain owner\'s personal information is visible in the public WHOIS database.
|
|
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 | - |
|
|
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
|
-
This endpoint enables domain lock for the domain. When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.
|
|
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 | - |
|
|
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
|
-
This endpoint enables privacy protection for the domain. When privacy protection is enabled, the domain owner\'s personal information is hidden from the public WHOIS database.
|
|
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 | - |
|
|
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
|
-
# **getDomainListV1**
|
|
229
|
-
> Array<DomainsV1DomainDomainResource> getDomainListV1()
|
|
230
|
-
|
|
231
|
-
This endpoint retrieves a list of all domains associated with your account.
|
|
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
|
-
const { status, data } = await apiInstance.getDomainListV1();
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
### Parameters
|
|
248
|
-
This endpoint does not have any parameters.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
### Return type
|
|
252
|
-
|
|
253
|
-
**Array<DomainsV1DomainDomainResource>**
|
|
254
|
-
|
|
255
|
-
### Authorization
|
|
256
|
-
|
|
257
|
-
[apiToken](../README.md#apiToken)
|
|
258
|
-
|
|
259
|
-
### HTTP request headers
|
|
260
|
-
|
|
261
|
-
- **Content-Type**: Not defined
|
|
262
|
-
- **Accept**: application/json
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
### HTTP response details
|
|
266
|
-
| Status code | Description | Response headers |
|
|
267
|
-
|-------------|-------------|------------------|
|
|
268
|
-
|**200** | Success response | - |
|
|
269
|
-
|**401** | Unauthenticated | - |
|
|
270
|
-
|**500** | Error response | - |
|
|
271
|
-
|
|
272
|
-
[[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)
|
|
273
|
-
|
|
274
|
-
# **getDomainV1**
|
|
275
|
-
> DomainsV1DomainDomainExtendedResource getDomainV1()
|
|
276
|
-
|
|
277
|
-
This endpoint retrieves details for specified domain.
|
|
278
|
-
|
|
279
|
-
### Example
|
|
280
|
-
|
|
281
|
-
```typescript
|
|
282
|
-
import {
|
|
283
|
-
DomainsPortfolioApi,
|
|
284
|
-
Configuration
|
|
285
|
-
} from 'hostinger-api-sdk';
|
|
286
|
-
|
|
287
|
-
const configuration = new Configuration();
|
|
288
|
-
const apiInstance = new DomainsPortfolioApi(configuration);
|
|
289
|
-
|
|
290
|
-
let domain: string; //Domain name (default to undefined)
|
|
291
|
-
|
|
292
|
-
const { status, data } = await apiInstance.getDomainV1(
|
|
293
|
-
domain
|
|
294
|
-
);
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
### Parameters
|
|
298
|
-
|
|
299
|
-
|Name | Type | Description | Notes|
|
|
300
|
-
|------------- | ------------- | ------------- | -------------|
|
|
301
|
-
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
### Return type
|
|
305
|
-
|
|
306
|
-
**DomainsV1DomainDomainExtendedResource**
|
|
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 | - |
|
|
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
|
-
This endpoint purchases and registers new domain. If registration fails, login to hPanel and check the domain registration status. If no payment method is provided, default will be used. If no WHOIS information is provided, default for that TLD will be used. Before making request make sure that WHOIS information for TLD exists. Some TLDs require `additional_details` to be provided and will be validated before making purchase.
|
|
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 | - |
|
|
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
|
-
# **updateNameserversV1**
|
|
383
|
-
> CommonSuccessEmptyResource updateNameserversV1(domainsV1PortfolioUpdateNameserversRequest)
|
|
384
|
-
|
|
385
|
-
This endpoint sets the nameservers for a specified domain. Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.
|
|
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.updateNameserversV1(
|
|
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 | - |
|
|
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
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
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 to check (without trailing dot) | [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)
|
|
@@ -1,26 +0,0 @@
|
|
|
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)
|
|
@@ -1,48 +0,0 @@
|
|
|
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)
|
|
@@ -1,27 +0,0 @@
|
|
|
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)
|
|
@@ -1,23 +0,0 @@
|
|
|
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)
|
|
@@ -1,30 +0,0 @@
|
|
|
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)
|
|
@@ -1,28 +0,0 @@
|
|
|
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)
|
|
@@ -1,24 +0,0 @@
|
|
|
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)
|