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.
Files changed (138) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  2. package/README.md +2 -2
  3. package/api.ts +2820 -1228
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +2050 -1042
  8. package/dist/api.js +2107 -1004
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +2050 -1042
  16. package/dist/esm/api.js +2092 -997
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BillingCatalogApi.md +64 -0
  28. package/docs/BillingOrdersApi.md +63 -0
  29. package/docs/BillingPaymentMethodsApi.md +162 -0
  30. package/docs/BillingSubscriptionsApi.md +113 -0
  31. package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
  32. package/docs/BillingV1CatalogCatalogItemResource.md +28 -0
  33. package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
  34. package/docs/BillingV1OrderOrderResource.md +36 -0
  35. package/docs/BillingV1OrderStoreRequest.md +24 -0
  36. package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
  37. package/docs/BillingV1OrderVirtualMachineOrderResource.md +22 -0
  38. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
  39. package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
  40. package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
  41. package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
  42. package/docs/CommonSuccessEmptyResource.md +20 -0
  43. package/docs/DNSSnapshotApi.md +175 -0
  44. package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
  45. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
  46. package/docs/DNSV1ZoneDestroyRequest.md +20 -0
  47. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
  48. package/docs/DNSV1ZoneNameRecordResource.md +22 -0
  49. package/docs/DNSV1ZoneRecordResource.md +26 -0
  50. package/docs/DNSV1ZoneResetRequest.md +24 -0
  51. package/docs/DNSV1ZoneUpdateRequest.md +22 -0
  52. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
  53. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
  54. package/docs/DNSZoneApi.md +297 -0
  55. package/docs/DomainsAvailabilityApi.md +63 -0
  56. package/docs/DomainsForwardingApi.md +171 -0
  57. package/docs/DomainsPortfolioApi.md +439 -0
  58. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
  59. package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
  60. package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
  61. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
  62. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
  63. package/docs/DomainsV1DomainDomainResource.md +30 -0
  64. package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
  65. package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
  66. package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
  67. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
  68. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
  69. package/docs/DomainsV1WHOISProfileResource.md +34 -0
  70. package/docs/DomainsV1WHOISStoreRequest.md +28 -0
  71. package/docs/DomainsWHOISApi.md +279 -0
  72. package/docs/InlineObject.md +22 -0
  73. package/docs/InlineObject1.md +22 -0
  74. package/docs/InlineObject2.md +24 -0
  75. package/docs/InlineObject2Errors.md +23 -0
  76. package/docs/ReachContactsApi.md +224 -0
  77. package/docs/ReachListContactsV1200Response.md +22 -0
  78. package/docs/ReachV1ContactsContactResource.md +34 -0
  79. package/docs/ReachV1ContactsGroupsContactGroupResource.md +22 -0
  80. package/docs/ReachV1ContactsStoreRequest.md +28 -0
  81. package/docs/VPSActionsApi.md +121 -0
  82. package/docs/VPSBackupsApi.md +121 -0
  83. package/docs/VPSDataCentersApi.md +54 -0
  84. package/docs/VPSDockerManagerApi.md +585 -0
  85. package/docs/VPSFirewallApi.md +577 -0
  86. package/docs/VPSGetActionsV1200Response.md +22 -0
  87. package/docs/VPSGetBackupsV1200Response.md +22 -0
  88. package/docs/VPSGetFirewallListV1200Response.md +22 -0
  89. package/docs/VPSGetPostInstallScriptsV1200Response.md +22 -0
  90. package/docs/VPSGetPublicKeysV1200Response.md +22 -0
  91. package/docs/VPSMalwareScannerApi.md +172 -0
  92. package/docs/VPSOSTemplatesApi.md +108 -0
  93. package/docs/VPSPTRRecordsApi.md +126 -0
  94. package/docs/VPSPostInstallScriptsApi.md +284 -0
  95. package/docs/VPSPublicKeysApi.md +230 -0
  96. package/docs/VPSRecoveryApi.md +120 -0
  97. package/docs/VPSSnapshotsApi.md +223 -0
  98. package/docs/VPSV1ActionActionResource.md +28 -0
  99. package/docs/VPSV1BackupBackupResource.md +28 -0
  100. package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
  101. package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
  102. package/docs/VPSV1DockerManagerContainerResource.md +36 -0
  103. package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
  104. package/docs/VPSV1DockerManagerContentResource.md +22 -0
  105. package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
  106. package/docs/VPSV1DockerManagerLogsResource.md +22 -0
  107. package/docs/VPSV1DockerManagerProjectResource.md +28 -0
  108. package/docs/VPSV1FirewallFirewallResource.md +30 -0
  109. package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
  110. package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
  111. package/docs/VPSV1FirewallStoreRequest.md +20 -0
  112. package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
  113. package/docs/VPSV1MalwareMetricsResource.md +30 -0
  114. package/docs/VPSV1MetricsMetricsCollection.md +30 -0
  115. package/docs/VPSV1MetricsMetricsResource.md +22 -0
  116. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
  117. package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
  118. package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
  119. package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
  120. package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
  121. package/docs/VPSV1SnapshotSnapshotResource.md +26 -0
  122. package/docs/VPSV1TemplateTemplateResource.md +26 -0
  123. package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +24 -0
  124. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
  125. package/docs/VPSV1VirtualMachineMetricGetRequest.md +22 -0
  126. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +24 -0
  127. package/docs/VPSV1VirtualMachinePTRStoreRequest.md +20 -0
  128. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
  129. package/docs/VPSV1VirtualMachinePurchaseRequest.md +26 -0
  130. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
  131. package/docs/VPSV1VirtualMachineRecreateRequest.md +26 -0
  132. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
  133. package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
  134. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +23 -0
  135. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +54 -0
  136. package/docs/VPSVirtualMachineApi.md +852 -0
  137. package/index.ts +1 -1
  138. package/package.json +1 -1
@@ -0,0 +1,224 @@
1
+ # ReachContactsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createANewContactV1**](#createanewcontactv1) | **POST** /api/reach/v1/contacts | Create a new contact|
8
+ |[**deleteAContactV1**](#deleteacontactv1) | **DELETE** /api/reach/v1/contacts/{uuid} | Delete a contact|
9
+ |[**listContactGroupsV1**](#listcontactgroupsv1) | **GET** /api/reach/v1/contacts/groups | List contact groups|
10
+ |[**listContactsV1**](#listcontactsv1) | **GET** /api/reach/v1/contacts | List contacts|
11
+
12
+ # **createANewContactV1**
13
+ > ReachV1ContactsContactResource createANewContactV1(reachV1ContactsStoreRequest)
14
+
15
+ Create a new contact in the email marketing system. This endpoint allows you to create a new contact with basic information like name, email, and surname. You can optionally assign the contact to specific groups and add notes. The contact will be automatically subscribed to email communications.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ReachContactsApi,
22
+ Configuration,
23
+ ReachV1ContactsStoreRequest
24
+ } from 'hostinger-api-sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new ReachContactsApi(configuration);
28
+
29
+ let reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest; //
30
+
31
+ const { status, data } = await apiInstance.createANewContactV1(
32
+ reachV1ContactsStoreRequest
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **reachV1ContactsStoreRequest** | **ReachV1ContactsStoreRequest**| | |
41
+
42
+
43
+ ### Return type
44
+
45
+ **ReachV1ContactsContactResource**
46
+
47
+ ### Authorization
48
+
49
+ [apiToken](../README.md#apiToken)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: application/json
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Success response | - |
61
+ |**422** | Validation error response | - |
62
+ |**401** | Unauthenticated response | - |
63
+ |**500** | Error response | - |
64
+
65
+ [[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)
66
+
67
+ # **deleteAContactV1**
68
+ > CommonSuccessEmptyResource deleteAContactV1()
69
+
70
+ Delete a contact with the specified UUID. This endpoint permanently removes a contact from the email marketing system.
71
+
72
+ ### Example
73
+
74
+ ```typescript
75
+ import {
76
+ ReachContactsApi,
77
+ Configuration
78
+ } from 'hostinger-api-sdk';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new ReachContactsApi(configuration);
82
+
83
+ let uuid: string; //UUID of the contact to delete (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.deleteAContactV1(
86
+ uuid
87
+ );
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ |Name | Type | Description | Notes|
93
+ |------------- | ------------- | ------------- | -------------|
94
+ | **uuid** | [**string**] | UUID of the contact to delete | defaults to undefined|
95
+
96
+
97
+ ### Return type
98
+
99
+ **CommonSuccessEmptyResource**
100
+
101
+ ### Authorization
102
+
103
+ [apiToken](../README.md#apiToken)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: Not defined
108
+ - **Accept**: application/json
109
+
110
+
111
+ ### HTTP response details
112
+ | Status code | Description | Response headers |
113
+ |-------------|-------------|------------------|
114
+ |**200** | Success response | - |
115
+ |**401** | Unauthenticated response | - |
116
+ |**500** | Error response | - |
117
+
118
+ [[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)
119
+
120
+ # **listContactGroupsV1**
121
+ > Array<ReachV1ContactsGroupsContactGroupResource> listContactGroupsV1()
122
+
123
+ Get a list of all contact groups. This endpoint returns a list of contact groups that can be used to organize contacts.
124
+
125
+ ### Example
126
+
127
+ ```typescript
128
+ import {
129
+ ReachContactsApi,
130
+ Configuration
131
+ } from 'hostinger-api-sdk';
132
+
133
+ const configuration = new Configuration();
134
+ const apiInstance = new ReachContactsApi(configuration);
135
+
136
+ const { status, data } = await apiInstance.listContactGroupsV1();
137
+ ```
138
+
139
+ ### Parameters
140
+ This endpoint does not have any parameters.
141
+
142
+
143
+ ### Return type
144
+
145
+ **Array<ReachV1ContactsGroupsContactGroupResource>**
146
+
147
+ ### Authorization
148
+
149
+ [apiToken](../README.md#apiToken)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
156
+
157
+ ### HTTP response details
158
+ | Status code | Description | Response headers |
159
+ |-------------|-------------|------------------|
160
+ |**200** | Success response | - |
161
+ |**401** | Unauthenticated response | - |
162
+ |**500** | Error response | - |
163
+
164
+ [[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)
165
+
166
+ # **listContactsV1**
167
+ > ReachListContactsV1200Response listContactsV1()
168
+
169
+ Get a list of contacts, optionally filtered by group and subscription status. This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.
170
+
171
+ ### Example
172
+
173
+ ```typescript
174
+ import {
175
+ ReachContactsApi,
176
+ Configuration
177
+ } from 'hostinger-api-sdk';
178
+
179
+ const configuration = new Configuration();
180
+ const apiInstance = new ReachContactsApi(configuration);
181
+
182
+ let groupUuid: string; //Filter contacts by group UUID (optional) (default to undefined)
183
+ let subscriptionStatus: 'subscribed' | 'unsubscribed'; //Filter contacts by subscription status (optional) (default to undefined)
184
+ let page: number; //Page number (optional) (default to undefined)
185
+
186
+ const { status, data } = await apiInstance.listContactsV1(
187
+ groupUuid,
188
+ subscriptionStatus,
189
+ page
190
+ );
191
+ ```
192
+
193
+ ### Parameters
194
+
195
+ |Name | Type | Description | Notes|
196
+ |------------- | ------------- | ------------- | -------------|
197
+ | **groupUuid** | [**string**] | Filter contacts by group UUID | (optional) defaults to undefined|
198
+ | **subscriptionStatus** | [**&#39;subscribed&#39; | &#39;unsubscribed&#39;**]**Array<&#39;subscribed&#39; &#124; &#39;unsubscribed&#39;>** | Filter contacts by subscription status | (optional) defaults to undefined|
199
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
200
+
201
+
202
+ ### Return type
203
+
204
+ **ReachListContactsV1200Response**
205
+
206
+ ### Authorization
207
+
208
+ [apiToken](../README.md#apiToken)
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: Not defined
213
+ - **Accept**: application/json
214
+
215
+
216
+ ### HTTP response details
217
+ | Status code | Description | Response headers |
218
+ |-------------|-------------|------------------|
219
+ |**200** | Success response | - |
220
+ |**401** | Unauthenticated response | - |
221
+ |**500** | Error response | - |
222
+
223
+ [[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)
224
+
@@ -0,0 +1,22 @@
1
+ # ReachListContactsV1200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array&lt;ReachV1ContactsContactResource&gt;**](ReachV1ContactsContactResource.md) | Array of [&#x60;Reach.V1.Contacts.ContactResource&#x60;](#model/reachv1contactscontactresource) | [optional] [default to undefined]
9
+ **meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachListContactsV1200Response } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachListContactsV1200Response = {
17
+ data,
18
+ meta,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,34 @@
1
+ # ReachV1ContactsContactResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **surname** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **subscription_status** | **string** | | [optional] [default to undefined]
13
+ **subscribed_at** | **string** | | [optional] [default to undefined]
14
+ **source** | **string** | | [optional] [default to undefined]
15
+ **note** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { ReachV1ContactsContactResource } from 'hostinger-api-sdk';
21
+
22
+ const instance: ReachV1ContactsContactResource = {
23
+ uuid,
24
+ name,
25
+ surname,
26
+ email,
27
+ subscription_status,
28
+ subscribed_at,
29
+ source,
30
+ note,
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,22 @@
1
+ # ReachV1ContactsGroupsContactGroupResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **uuid** | **string** | | [optional] [default to undefined]
9
+ **title** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1ContactsGroupsContactGroupResource } from 'hostinger-api-sdk';
15
+
16
+ const instance: ReachV1ContactsGroupsContactGroupResource = {
17
+ uuid,
18
+ title,
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,28 @@
1
+ # ReachV1ContactsStoreRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **email** | **string** | | [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **surname** | **string** | | [optional] [default to undefined]
11
+ **group_uuids** | **Array&lt;string&gt;** | | [optional] [default to undefined]
12
+ **note** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ReachV1ContactsStoreRequest } from 'hostinger-api-sdk';
18
+
19
+ const instance: ReachV1ContactsStoreRequest = {
20
+ email,
21
+ name,
22
+ surname,
23
+ group_uuids,
24
+ note,
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,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
+
@@ -0,0 +1,121 @@
1
+ # VPSBackupsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getBackupsV1**](#getbackupsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/backups | Get backups|
8
+ |[**restoreBackupV1**](#restorebackupv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore | Restore backup|
9
+
10
+ # **getBackupsV1**
11
+ > VPSGetBackupsV1200Response getBackupsV1()
12
+
13
+ Retrieve backups for a specified virtual machine. Use this endpoint to view available backup points for VPS data recovery.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ VPSBackupsApi,
20
+ Configuration
21
+ } from 'hostinger-api-sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new VPSBackupsApi(configuration);
25
+
26
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
27
+ let page: number; //Page number (optional) (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.getBackupsV1(
30
+ virtualMachineId,
31
+ page
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
40
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **VPSGetBackupsV1200Response**
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
+ # **restoreBackupV1**
67
+ > VPSV1ActionActionResource restoreBackupV1()
68
+
69
+ Restore a backup for a specified virtual machine. The system will then initiate the restore process, which may take some time depending on the size of the backup. **All data on the virtual machine will be overwritten with the data from the backup.** Use this endpoint to recover VPS data from backup points.
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ VPSBackupsApi,
76
+ Configuration
77
+ } from 'hostinger-api-sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new VPSBackupsApi(configuration);
81
+
82
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
83
+ let backupId: number; //Backup ID (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.restoreBackupV1(
86
+ virtualMachineId,
87
+ backupId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
96
+ | **backupId** | [**number**] | Backup ID | defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **VPSV1ActionActionResource**
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
+
@@ -0,0 +1,54 @@
1
+ # VPSDataCentersApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getDataCenterListV1**](#getdatacenterlistv1) | **GET** /api/vps/v1/data-centers | Get data center list|
8
+
9
+ # **getDataCenterListV1**
10
+ > Array<VPSV1DataCenterDataCenterResource> getDataCenterListV1()
11
+
12
+ Retrieve all available data centers. Use this endpoint to view location options before deploying VPS instances.
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ VPSDataCentersApi,
19
+ Configuration
20
+ } from 'hostinger-api-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new VPSDataCentersApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getDataCenterListV1();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<VPSV1DataCenterDataCenterResource>**
35
+
36
+ ### Authorization
37
+
38
+ [apiToken](../README.md#apiToken)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Success response | - |
50
+ |**401** | Unauthenticated response | - |
51
+ |**500** | Error response | - |
52
+
53
+ [[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)
54
+