hostinger-api-sdk 0.0.11 → 0.0.13
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 +2333 -1289
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1701 -1059
- package/dist/api.js +1739 -976
- 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 +1701 -1059
- package/dist/esm/api.js +1728 -969
- 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/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 +24 -0
- package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
- package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
- package/docs/VPSV1DockerManagerContainerResource.md +34 -0
- package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
- package/docs/VPSV1DockerManagerContentResource.md +20 -0
- package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
- package/docs/VPSV1DockerManagerLogsResource.md +22 -0
- package/docs/VPSV1DockerManagerProjectResource.md +26 -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 +24 -0
- package/docs/VPSV1TemplateTemplateResource.md +26 -0
- package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +22 -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 +52 -0
- package/docs/VPSVirtualMachineApi.md +852 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# DomainsV1PortfolioPurchaseRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Domain name | [default to undefined]
|
|
9
|
+
**item_id** | **string** | Catalog price item ID | [default to undefined]
|
|
10
|
+
**payment_method_id** | **number** | Payment method ID, default will be used if not provided | [optional] [default to undefined]
|
|
11
|
+
**domain_contacts** | [**DomainsV1PortfolioPurchaseRequestDomainContacts**](DomainsV1PortfolioPurchaseRequestDomainContacts.md) | | [optional] [default to undefined]
|
|
12
|
+
**additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
|
|
13
|
+
**coupons** | **Array<any>** | Discount coupon codes | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { DomainsV1PortfolioPurchaseRequest } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: DomainsV1PortfolioPurchaseRequest = {
|
|
21
|
+
domain,
|
|
22
|
+
item_id,
|
|
23
|
+
payment_method_id,
|
|
24
|
+
domain_contacts,
|
|
25
|
+
additional_details,
|
|
26
|
+
coupons,
|
|
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,27 @@
|
|
|
1
|
+
# DomainsV1PortfolioPurchaseRequestDomainContacts
|
|
2
|
+
|
|
3
|
+
Domain contact information
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**owner_id** | **number** | Owner contact WHOIS record ID | [optional] [default to undefined]
|
|
10
|
+
**admin_id** | **number** | Administrative contact WHOIS record ID | [optional] [default to undefined]
|
|
11
|
+
**billing_id** | **number** | Billing contact WHOIS record ID | [optional] [default to undefined]
|
|
12
|
+
**tech_id** | **number** | Technical contact WHOIS record ID | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { DomainsV1PortfolioPurchaseRequestDomainContacts } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: DomainsV1PortfolioPurchaseRequestDomainContacts = {
|
|
20
|
+
owner_id,
|
|
21
|
+
admin_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,26 @@
|
|
|
1
|
+
# DomainsV1PortfolioUpdateNameserversRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**ns1** | **string** | First name server | [default to undefined]
|
|
9
|
+
**ns2** | **string** | Second name server | [default to undefined]
|
|
10
|
+
**ns3** | **string** | Third name server | [optional] [default to undefined]
|
|
11
|
+
**ns4** | **string** | Fourth name server | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DomainsV1PortfolioUpdateNameserversRequest } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DomainsV1PortfolioUpdateNameserversRequest = {
|
|
19
|
+
ns1,
|
|
20
|
+
ns2,
|
|
21
|
+
ns3,
|
|
22
|
+
ns4,
|
|
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,34 @@
|
|
|
1
|
+
# DomainsV1WHOISProfileResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | WHOIS Profile ID | [optional] [default to undefined]
|
|
9
|
+
**tld** | **string** | TLD to which contact profile can be applied to | [optional] [default to undefined]
|
|
10
|
+
**country** | **string** | ISO 3166 2-letter country code | [optional] [default to undefined]
|
|
11
|
+
**entity_type** | **string** | WHOIS profile entity type | [optional] [default to undefined]
|
|
12
|
+
**whois_details** | **object** | WHOIS profile details | [optional] [default to undefined]
|
|
13
|
+
**tld_details** | **object** | TLD details | [optional] [default to undefined]
|
|
14
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { DomainsV1WHOISProfileResource } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: DomainsV1WHOISProfileResource = {
|
|
23
|
+
id,
|
|
24
|
+
tld,
|
|
25
|
+
country,
|
|
26
|
+
entity_type,
|
|
27
|
+
whois_details,
|
|
28
|
+
tld_details,
|
|
29
|
+
created_at,
|
|
30
|
+
updated_at,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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
|
+
# DomainsV1WHOISStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**tld** | **string** | TLD of the domain (without leading dot) | [default to undefined]
|
|
9
|
+
**country** | **string** | ISO 3166 2-letter country code | [default to undefined]
|
|
10
|
+
**entity_type** | **string** | Legal entity type | [default to undefined]
|
|
11
|
+
**tld_details** | **object** | TLD details | [optional] [default to undefined]
|
|
12
|
+
**whois_details** | **object** | WHOIS details | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { DomainsV1WHOISStoreRequest } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: DomainsV1WHOISStoreRequest = {
|
|
20
|
+
tld,
|
|
21
|
+
country,
|
|
22
|
+
entity_type,
|
|
23
|
+
tld_details,
|
|
24
|
+
whois_details,
|
|
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,279 @@
|
|
|
1
|
+
# DomainsWHOISApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createWHOISProfileV1**](#createwhoisprofilev1) | **POST** /api/domains/v1/whois | Create WHOIS profile|
|
|
8
|
+
|[**deleteWHOISProfileV1**](#deletewhoisprofilev1) | **DELETE** /api/domains/v1/whois/{whoisId} | Delete WHOIS profile|
|
|
9
|
+
|[**getWHOISProfileListV1**](#getwhoisprofilelistv1) | **GET** /api/domains/v1/whois | Get WHOIS profile list|
|
|
10
|
+
|[**getWHOISProfileUsageV1**](#getwhoisprofileusagev1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage|
|
|
11
|
+
|[**getWHOISProfileV1**](#getwhoisprofilev1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile|
|
|
12
|
+
|
|
13
|
+
# **createWHOISProfileV1**
|
|
14
|
+
> DomainsV1WHOISProfileResource createWHOISProfileV1(domainsV1WHOISStoreRequest)
|
|
15
|
+
|
|
16
|
+
Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
DomainsWHOISApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
DomainsV1WHOISStoreRequest
|
|
25
|
+
} from 'hostinger-api-sdk';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new DomainsWHOISApi(configuration);
|
|
29
|
+
|
|
30
|
+
let domainsV1WHOISStoreRequest: DomainsV1WHOISStoreRequest; //
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.createWHOISProfileV1(
|
|
33
|
+
domainsV1WHOISStoreRequest
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **domainsV1WHOISStoreRequest** | **DomainsV1WHOISStoreRequest**| | |
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**DomainsV1WHOISProfileResource**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[apiToken](../README.md#apiToken)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Success response | - |
|
|
62
|
+
|**422** | Validation error response | - |
|
|
63
|
+
|**401** | Unauthenticated response | - |
|
|
64
|
+
|**500** | Error response | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **deleteWHOISProfileV1**
|
|
69
|
+
> CommonSuccessEmptyResource deleteWHOISProfileV1()
|
|
70
|
+
|
|
71
|
+
Delete WHOIS contact profile. Use this endpoint to remove unused contact profiles from account.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
DomainsWHOISApi,
|
|
78
|
+
Configuration
|
|
79
|
+
} from 'hostinger-api-sdk';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new DomainsWHOISApi(configuration);
|
|
83
|
+
|
|
84
|
+
let whoisId: number; //WHOIS ID (default to undefined)
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.deleteWHOISProfileV1(
|
|
87
|
+
whoisId
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **whoisId** | [**number**] | WHOIS ID | defaults to undefined|
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Return type
|
|
99
|
+
|
|
100
|
+
**CommonSuccessEmptyResource**
|
|
101
|
+
|
|
102
|
+
### Authorization
|
|
103
|
+
|
|
104
|
+
[apiToken](../README.md#apiToken)
|
|
105
|
+
|
|
106
|
+
### HTTP request headers
|
|
107
|
+
|
|
108
|
+
- **Content-Type**: Not defined
|
|
109
|
+
- **Accept**: application/json
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### HTTP response details
|
|
113
|
+
| Status code | Description | Response headers |
|
|
114
|
+
|-------------|-------------|------------------|
|
|
115
|
+
|**200** | Success response | - |
|
|
116
|
+
|**401** | Unauthenticated response | - |
|
|
117
|
+
|**500** | Error response | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
|
121
|
+
# **getWHOISProfileListV1**
|
|
122
|
+
> Array<DomainsV1WHOISProfileResource> getWHOISProfileListV1()
|
|
123
|
+
|
|
124
|
+
Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
DomainsWHOISApi,
|
|
131
|
+
Configuration
|
|
132
|
+
} from 'hostinger-api-sdk';
|
|
133
|
+
|
|
134
|
+
const configuration = new Configuration();
|
|
135
|
+
const apiInstance = new DomainsWHOISApi(configuration);
|
|
136
|
+
|
|
137
|
+
let tld: string; //Filter by TLD (without leading dot) (optional) (default to undefined)
|
|
138
|
+
|
|
139
|
+
const { status, data } = await apiInstance.getWHOISProfileListV1(
|
|
140
|
+
tld
|
|
141
|
+
);
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
|Name | Type | Description | Notes|
|
|
147
|
+
|------------- | ------------- | ------------- | -------------|
|
|
148
|
+
| **tld** | [**string**] | Filter by TLD (without leading dot) | (optional) defaults to undefined|
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
**Array<DomainsV1WHOISProfileResource>**
|
|
154
|
+
|
|
155
|
+
### Authorization
|
|
156
|
+
|
|
157
|
+
[apiToken](../README.md#apiToken)
|
|
158
|
+
|
|
159
|
+
### HTTP request headers
|
|
160
|
+
|
|
161
|
+
- **Content-Type**: Not defined
|
|
162
|
+
- **Accept**: application/json
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### HTTP response details
|
|
166
|
+
| Status code | Description | Response headers |
|
|
167
|
+
|-------------|-------------|------------------|
|
|
168
|
+
|**200** | Success response | - |
|
|
169
|
+
|**401** | Unauthenticated response | - |
|
|
170
|
+
|**500** | Error response | - |
|
|
171
|
+
|
|
172
|
+
[[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)
|
|
173
|
+
|
|
174
|
+
# **getWHOISProfileUsageV1**
|
|
175
|
+
> Array<string> getWHOISProfileUsageV1()
|
|
176
|
+
|
|
177
|
+
Retrieve domain list where provided WHOIS contact profile is used. Use this endpoint to view which domains use specific contact profiles.
|
|
178
|
+
|
|
179
|
+
### Example
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
import {
|
|
183
|
+
DomainsWHOISApi,
|
|
184
|
+
Configuration
|
|
185
|
+
} from 'hostinger-api-sdk';
|
|
186
|
+
|
|
187
|
+
const configuration = new Configuration();
|
|
188
|
+
const apiInstance = new DomainsWHOISApi(configuration);
|
|
189
|
+
|
|
190
|
+
let whoisId: number; //WHOIS ID (default to undefined)
|
|
191
|
+
|
|
192
|
+
const { status, data } = await apiInstance.getWHOISProfileUsageV1(
|
|
193
|
+
whoisId
|
|
194
|
+
);
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Parameters
|
|
198
|
+
|
|
199
|
+
|Name | Type | Description | Notes|
|
|
200
|
+
|------------- | ------------- | ------------- | -------------|
|
|
201
|
+
| **whoisId** | [**number**] | WHOIS ID | defaults to undefined|
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Return type
|
|
205
|
+
|
|
206
|
+
**Array<string>**
|
|
207
|
+
|
|
208
|
+
### Authorization
|
|
209
|
+
|
|
210
|
+
[apiToken](../README.md#apiToken)
|
|
211
|
+
|
|
212
|
+
### HTTP request headers
|
|
213
|
+
|
|
214
|
+
- **Content-Type**: Not defined
|
|
215
|
+
- **Accept**: application/json
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### HTTP response details
|
|
219
|
+
| Status code | Description | Response headers |
|
|
220
|
+
|-------------|-------------|------------------|
|
|
221
|
+
|**200** | Success response | - |
|
|
222
|
+
|**401** | Unauthenticated response | - |
|
|
223
|
+
|**500** | Error response | - |
|
|
224
|
+
|
|
225
|
+
[[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)
|
|
226
|
+
|
|
227
|
+
# **getWHOISProfileV1**
|
|
228
|
+
> DomainsV1WHOISProfileResource getWHOISProfileV1()
|
|
229
|
+
|
|
230
|
+
Retrieve a WHOIS contact profile. Use this endpoint to view domain registration contact information.
|
|
231
|
+
|
|
232
|
+
### Example
|
|
233
|
+
|
|
234
|
+
```typescript
|
|
235
|
+
import {
|
|
236
|
+
DomainsWHOISApi,
|
|
237
|
+
Configuration
|
|
238
|
+
} from 'hostinger-api-sdk';
|
|
239
|
+
|
|
240
|
+
const configuration = new Configuration();
|
|
241
|
+
const apiInstance = new DomainsWHOISApi(configuration);
|
|
242
|
+
|
|
243
|
+
let whoisId: number; //WHOIS ID (default to undefined)
|
|
244
|
+
|
|
245
|
+
const { status, data } = await apiInstance.getWHOISProfileV1(
|
|
246
|
+
whoisId
|
|
247
|
+
);
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Parameters
|
|
251
|
+
|
|
252
|
+
|Name | Type | Description | Notes|
|
|
253
|
+
|------------- | ------------- | ------------- | -------------|
|
|
254
|
+
| **whoisId** | [**number**] | WHOIS ID | defaults to undefined|
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Return type
|
|
258
|
+
|
|
259
|
+
**DomainsV1WHOISProfileResource**
|
|
260
|
+
|
|
261
|
+
### Authorization
|
|
262
|
+
|
|
263
|
+
[apiToken](../README.md#apiToken)
|
|
264
|
+
|
|
265
|
+
### HTTP request headers
|
|
266
|
+
|
|
267
|
+
- **Content-Type**: Not defined
|
|
268
|
+
- **Accept**: application/json
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### HTTP response details
|
|
272
|
+
| Status code | Description | Response headers |
|
|
273
|
+
|-------------|-------------|------------------|
|
|
274
|
+
|**200** | Success response | - |
|
|
275
|
+
|**401** | Unauthenticated response | - |
|
|
276
|
+
|**500** | Error response | - |
|
|
277
|
+
|
|
278
|
+
[[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)
|
|
279
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# InlineObject
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message of the error | [optional] [default to undefined]
|
|
9
|
+
**correlation_id** | **string** | Request correlation ID | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { InlineObject } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: InlineObject = {
|
|
17
|
+
message,
|
|
18
|
+
correlation_id,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# InlineObject1
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message of the error | [optional] [default to undefined]
|
|
9
|
+
**correlation_id** | **string** | Request correlation ID | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { InlineObject1 } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: InlineObject1 = {
|
|
17
|
+
message,
|
|
18
|
+
correlation_id,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# InlineObject2
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Validation error message | [optional] [default to undefined]
|
|
9
|
+
**errors** | [**InlineObject2Errors**](InlineObject2Errors.md) | | [optional] [default to undefined]
|
|
10
|
+
**correlation_id** | **string** | Request correlation ID | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { InlineObject2 } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: InlineObject2 = {
|
|
18
|
+
message,
|
|
19
|
+
errors,
|
|
20
|
+
correlation_id,
|
|
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,23 @@
|
|
|
1
|
+
# InlineObject2Errors
|
|
2
|
+
|
|
3
|
+
Object of detailed errors for each field
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**field_1** | **Array<any>** | | [optional] [default to undefined]
|
|
10
|
+
**field_2** | **Array<any>** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { InlineObject2Errors } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: InlineObject2Errors = {
|
|
18
|
+
field_1,
|
|
19
|
+
field_2,
|
|
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,121 @@
|
|
|
1
|
+
# VPSActionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getActionDetailsV1**](#getactiondetailsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/actions/{actionId} | Get action details|
|
|
8
|
+
|[**getActionsV1**](#getactionsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/actions | Get actions|
|
|
9
|
+
|
|
10
|
+
# **getActionDetailsV1**
|
|
11
|
+
> VPSV1ActionActionResource getActionDetailsV1()
|
|
12
|
+
|
|
13
|
+
Retrieve detailed information about a specific action performed on a specified virtual machine. Use this endpoint to monitor specific VPS operation status and details.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
VPSActionsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new VPSActionsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
27
|
+
let actionId: number; //Action ID (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.getActionDetailsV1(
|
|
30
|
+
virtualMachineId,
|
|
31
|
+
actionId
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
40
|
+
| **actionId** | [**number**] | Action ID | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**VPSV1ActionActionResource**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[apiToken](../README.md#apiToken)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Success 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
|
+
# **getActionsV1**
|
|
67
|
+
> VPSGetActionsV1200Response getActionsV1()
|
|
68
|
+
|
|
69
|
+
Retrieve actions performed on a specified virtual machine. Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status. Use this endpoint to view VPS operation history and troubleshoot issues.
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
VPSActionsApi,
|
|
76
|
+
Configuration
|
|
77
|
+
} from 'hostinger-api-sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new VPSActionsApi(configuration);
|
|
81
|
+
|
|
82
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
83
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.getActionsV1(
|
|
86
|
+
virtualMachineId,
|
|
87
|
+
page
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
96
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**VPSGetActionsV1200Response**
|
|
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 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
|
+
|