hostinger-api-sdk 0.0.12 → 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.
Files changed (132) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2331 -1287
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +1698 -1056
  7. package/dist/api.js +1739 -976
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +1698 -1056
  15. package/dist/esm/api.js +1728 -969
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/BillingCatalogApi.md +64 -0
  27. package/docs/BillingOrdersApi.md +63 -0
  28. package/docs/BillingPaymentMethodsApi.md +162 -0
  29. package/docs/BillingSubscriptionsApi.md +113 -0
  30. package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
  31. package/docs/BillingV1CatalogCatalogItemResource.md +28 -0
  32. package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
  33. package/docs/BillingV1OrderOrderResource.md +36 -0
  34. package/docs/BillingV1OrderStoreRequest.md +24 -0
  35. package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
  36. package/docs/BillingV1OrderVirtualMachineOrderResource.md +22 -0
  37. package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
  38. package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
  39. package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
  40. package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
  41. package/docs/CommonSuccessEmptyResource.md +20 -0
  42. package/docs/DNSSnapshotApi.md +175 -0
  43. package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
  44. package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
  45. package/docs/DNSV1ZoneDestroyRequest.md +20 -0
  46. package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
  47. package/docs/DNSV1ZoneNameRecordResource.md +22 -0
  48. package/docs/DNSV1ZoneRecordResource.md +26 -0
  49. package/docs/DNSV1ZoneResetRequest.md +24 -0
  50. package/docs/DNSV1ZoneUpdateRequest.md +22 -0
  51. package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
  52. package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
  53. package/docs/DNSZoneApi.md +297 -0
  54. package/docs/DomainsAvailabilityApi.md +63 -0
  55. package/docs/DomainsForwardingApi.md +171 -0
  56. package/docs/DomainsPortfolioApi.md +439 -0
  57. package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
  58. package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
  59. package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
  60. package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
  61. package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
  62. package/docs/DomainsV1DomainDomainResource.md +30 -0
  63. package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
  64. package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
  65. package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
  66. package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
  67. package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
  68. package/docs/DomainsV1WHOISProfileResource.md +34 -0
  69. package/docs/DomainsV1WHOISStoreRequest.md +28 -0
  70. package/docs/DomainsWHOISApi.md +279 -0
  71. package/docs/InlineObject.md +22 -0
  72. package/docs/InlineObject1.md +22 -0
  73. package/docs/InlineObject2.md +24 -0
  74. package/docs/InlineObject2Errors.md +23 -0
  75. package/docs/VPSActionsApi.md +121 -0
  76. package/docs/VPSBackupsApi.md +121 -0
  77. package/docs/VPSDataCentersApi.md +54 -0
  78. package/docs/VPSDockerManagerApi.md +585 -0
  79. package/docs/VPSFirewallApi.md +577 -0
  80. package/docs/VPSGetActionsV1200Response.md +22 -0
  81. package/docs/VPSGetBackupsV1200Response.md +22 -0
  82. package/docs/VPSGetFirewallListV1200Response.md +22 -0
  83. package/docs/VPSGetPostInstallScriptsV1200Response.md +22 -0
  84. package/docs/VPSGetPublicKeysV1200Response.md +22 -0
  85. package/docs/VPSMalwareScannerApi.md +172 -0
  86. package/docs/VPSOSTemplatesApi.md +108 -0
  87. package/docs/VPSPTRRecordsApi.md +126 -0
  88. package/docs/VPSPostInstallScriptsApi.md +284 -0
  89. package/docs/VPSPublicKeysApi.md +230 -0
  90. package/docs/VPSRecoveryApi.md +120 -0
  91. package/docs/VPSSnapshotsApi.md +223 -0
  92. package/docs/VPSV1ActionActionResource.md +28 -0
  93. package/docs/VPSV1BackupBackupResource.md +24 -0
  94. package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
  95. package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
  96. package/docs/VPSV1DockerManagerContainerResource.md +34 -0
  97. package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
  98. package/docs/VPSV1DockerManagerContentResource.md +20 -0
  99. package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
  100. package/docs/VPSV1DockerManagerLogsResource.md +22 -0
  101. package/docs/VPSV1DockerManagerProjectResource.md +26 -0
  102. package/docs/VPSV1FirewallFirewallResource.md +30 -0
  103. package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
  104. package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
  105. package/docs/VPSV1FirewallStoreRequest.md +20 -0
  106. package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
  107. package/docs/VPSV1MalwareMetricsResource.md +30 -0
  108. package/docs/VPSV1MetricsMetricsCollection.md +30 -0
  109. package/docs/VPSV1MetricsMetricsResource.md +22 -0
  110. package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
  111. package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
  112. package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
  113. package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
  114. package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
  115. package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
  116. package/docs/VPSV1TemplateTemplateResource.md +26 -0
  117. package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +22 -0
  118. package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
  119. package/docs/VPSV1VirtualMachineMetricGetRequest.md +22 -0
  120. package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +24 -0
  121. package/docs/VPSV1VirtualMachinePTRStoreRequest.md +20 -0
  122. package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
  123. package/docs/VPSV1VirtualMachinePurchaseRequest.md +26 -0
  124. package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
  125. package/docs/VPSV1VirtualMachineRecreateRequest.md +26 -0
  126. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
  127. package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
  128. package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +23 -0
  129. package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
  130. package/docs/VPSVirtualMachineApi.md +852 -0
  131. package/index.ts +1 -1
  132. package/package.json +1 -1
@@ -0,0 +1,230 @@
1
+ # VPSPublicKeysApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**attachPublicKeyV1**](#attachpublickeyv1) | **POST** /api/vps/v1/public-keys/attach/{virtualMachineId} | Attach public key|
8
+ |[**createPublicKeyV1**](#createpublickeyv1) | **POST** /api/vps/v1/public-keys | Create public key|
9
+ |[**deletePublicKeyV1**](#deletepublickeyv1) | **DELETE** /api/vps/v1/public-keys/{publicKeyId} | Delete public key|
10
+ |[**getPublicKeysV1**](#getpublickeysv1) | **GET** /api/vps/v1/public-keys | Get public keys|
11
+
12
+ # **attachPublicKeyV1**
13
+ > VPSV1ActionActionResource attachPublicKeyV1(vPSV1PublicKeyAttachRequest)
14
+
15
+ Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ VPSPublicKeysApi,
22
+ Configuration,
23
+ VPSV1PublicKeyAttachRequest
24
+ } from 'hostinger-api-sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new VPSPublicKeysApi(configuration);
28
+
29
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
30
+ let vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest; //
31
+
32
+ const { status, data } = await apiInstance.attachPublicKeyV1(
33
+ virtualMachineId,
34
+ vPSV1PublicKeyAttachRequest
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **vPSV1PublicKeyAttachRequest** | **VPSV1PublicKeyAttachRequest**| | |
43
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **VPSV1ActionActionResource**
49
+
50
+ ### Authorization
51
+
52
+ [apiToken](../README.md#apiToken)
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: application/json
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Success response | - |
64
+ |**422** | Validation error response | - |
65
+ |**401** | Unauthenticated response | - |
66
+ |**500** | Error response | - |
67
+
68
+ [[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)
69
+
70
+ # **createPublicKeyV1**
71
+ > VPSV1PublicKeyPublicKeyResource createPublicKeyV1(vPSV1PublicKeyStoreRequest)
72
+
73
+ Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
74
+
75
+ ### Example
76
+
77
+ ```typescript
78
+ import {
79
+ VPSPublicKeysApi,
80
+ Configuration,
81
+ VPSV1PublicKeyStoreRequest
82
+ } from 'hostinger-api-sdk';
83
+
84
+ const configuration = new Configuration();
85
+ const apiInstance = new VPSPublicKeysApi(configuration);
86
+
87
+ let vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest; //
88
+
89
+ const { status, data } = await apiInstance.createPublicKeyV1(
90
+ vPSV1PublicKeyStoreRequest
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **vPSV1PublicKeyStoreRequest** | **VPSV1PublicKeyStoreRequest**| | |
99
+
100
+
101
+ ### Return type
102
+
103
+ **VPSV1PublicKeyPublicKeyResource**
104
+
105
+ ### Authorization
106
+
107
+ [apiToken](../README.md#apiToken)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: application/json
112
+ - **Accept**: application/json
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**200** | Success response | - |
119
+ |**422** | Validation error response | - |
120
+ |**401** | Unauthenticated response | - |
121
+ |**500** | Error response | - |
122
+
123
+ [[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)
124
+
125
+ # **deletePublicKeyV1**
126
+ > CommonSuccessEmptyResource deletePublicKeyV1()
127
+
128
+ Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
129
+
130
+ ### Example
131
+
132
+ ```typescript
133
+ import {
134
+ VPSPublicKeysApi,
135
+ Configuration
136
+ } from 'hostinger-api-sdk';
137
+
138
+ const configuration = new Configuration();
139
+ const apiInstance = new VPSPublicKeysApi(configuration);
140
+
141
+ let publicKeyId: number; //Public Key ID (default to undefined)
142
+
143
+ const { status, data } = await apiInstance.deletePublicKeyV1(
144
+ publicKeyId
145
+ );
146
+ ```
147
+
148
+ ### Parameters
149
+
150
+ |Name | Type | Description | Notes|
151
+ |------------- | ------------- | ------------- | -------------|
152
+ | **publicKeyId** | [**number**] | Public Key ID | defaults to undefined|
153
+
154
+
155
+ ### Return type
156
+
157
+ **CommonSuccessEmptyResource**
158
+
159
+ ### Authorization
160
+
161
+ [apiToken](../README.md#apiToken)
162
+
163
+ ### HTTP request headers
164
+
165
+ - **Content-Type**: Not defined
166
+ - **Accept**: application/json
167
+
168
+
169
+ ### HTTP response details
170
+ | Status code | Description | Response headers |
171
+ |-------------|-------------|------------------|
172
+ |**200** | Success empty response | - |
173
+ |**401** | Unauthenticated response | - |
174
+ |**500** | Error response | - |
175
+
176
+ [[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)
177
+
178
+ # **getPublicKeysV1**
179
+ > VPSGetPublicKeysV1200Response getPublicKeysV1()
180
+
181
+ Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
182
+
183
+ ### Example
184
+
185
+ ```typescript
186
+ import {
187
+ VPSPublicKeysApi,
188
+ Configuration
189
+ } from 'hostinger-api-sdk';
190
+
191
+ const configuration = new Configuration();
192
+ const apiInstance = new VPSPublicKeysApi(configuration);
193
+
194
+ let page: number; //Page number (optional) (default to undefined)
195
+
196
+ const { status, data } = await apiInstance.getPublicKeysV1(
197
+ page
198
+ );
199
+ ```
200
+
201
+ ### Parameters
202
+
203
+ |Name | Type | Description | Notes|
204
+ |------------- | ------------- | ------------- | -------------|
205
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
206
+
207
+
208
+ ### Return type
209
+
210
+ **VPSGetPublicKeysV1200Response**
211
+
212
+ ### Authorization
213
+
214
+ [apiToken](../README.md#apiToken)
215
+
216
+ ### HTTP request headers
217
+
218
+ - **Content-Type**: Not defined
219
+ - **Accept**: application/json
220
+
221
+
222
+ ### HTTP response details
223
+ | Status code | Description | Response headers |
224
+ |-------------|-------------|------------------|
225
+ |**200** | Success response | - |
226
+ |**401** | Unauthenticated response | - |
227
+ |**500** | Error response | - |
228
+
229
+ [[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)
230
+
@@ -0,0 +1,120 @@
1
+ # VPSRecoveryApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**startRecoveryModeV1**](#startrecoverymodev1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/recovery | Start recovery mode|
8
+ |[**stopRecoveryModeV1**](#stoprecoverymodev1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/recovery | Stop recovery mode|
9
+
10
+ # **startRecoveryModeV1**
11
+ > VPSV1ActionActionResource startRecoveryModeV1(vPSV1VirtualMachineRecoveryStartRequest)
12
+
13
+ Initiate recovery mode for a specified virtual machine. Recovery mode is a special state that allows users to perform system rescue operations, such as repairing file systems, recovering data, or troubleshooting issues that prevent the virtual machine from booting normally. Virtual machine will boot recovery disk image and original disk image will be mounted in `/mnt` directory. Use this endpoint to enable system rescue operations on VPS instances.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ VPSRecoveryApi,
20
+ Configuration,
21
+ VPSV1VirtualMachineRecoveryStartRequest
22
+ } from 'hostinger-api-sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new VPSRecoveryApi(configuration);
26
+
27
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
28
+ let vPSV1VirtualMachineRecoveryStartRequest: VPSV1VirtualMachineRecoveryStartRequest; //
29
+
30
+ const { status, data } = await apiInstance.startRecoveryModeV1(
31
+ virtualMachineId,
32
+ vPSV1VirtualMachineRecoveryStartRequest
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **vPSV1VirtualMachineRecoveryStartRequest** | **VPSV1VirtualMachineRecoveryStartRequest**| | |
41
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **VPSV1ActionActionResource**
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
+ # **stopRecoveryModeV1**
69
+ > VPSV1ActionActionResource stopRecoveryModeV1()
70
+
71
+ Stop recovery mode for a specified virtual machine. If virtual machine is not in recovery mode, this operation will fail. Use this endpoint to exit system rescue mode and return VPS to normal operation.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ VPSRecoveryApi,
78
+ Configuration
79
+ } from 'hostinger-api-sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new VPSRecoveryApi(configuration);
83
+
84
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.stopRecoveryModeV1(
87
+ virtualMachineId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
96
+
97
+
98
+ ### Return type
99
+
100
+ **VPSV1ActionActionResource**
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
+
@@ -0,0 +1,223 @@
1
+ # VPSSnapshotsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createSnapshotV1**](#createsnapshotv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot | Create snapshot|
8
+ |[**deleteSnapshotV1**](#deletesnapshotv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot | Delete snapshot|
9
+ |[**getSnapshotV1**](#getsnapshotv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot | Get snapshot|
10
+ |[**restoreSnapshotV1**](#restoresnapshotv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/snapshot/restore | Restore snapshot|
11
+
12
+ # **createSnapshotV1**
13
+ > VPSV1ActionActionResource createSnapshotV1()
14
+
15
+ Create a snapshot of a specified virtual machine. A snapshot captures the state and data of the virtual machine at a specific point in time, allowing users to restore the virtual machine to that state if needed. This operation is useful for backup purposes, system recovery, and testing changes without affecting the current state of the virtual machine. **Creating new snapshot will overwrite the existing snapshot!** Use this endpoint to capture VPS state for backup and recovery purposes.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ VPSSnapshotsApi,
22
+ Configuration
23
+ } from 'hostinger-api-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new VPSSnapshotsApi(configuration);
27
+
28
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.createSnapshotV1(
31
+ virtualMachineId
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **VPSV1ActionActionResource**
45
+
46
+ ### Authorization
47
+
48
+ [apiToken](../README.md#apiToken)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Success response | - |
60
+ |**401** | Unauthenticated response | - |
61
+ |**500** | Error response | - |
62
+
63
+ [[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)
64
+
65
+ # **deleteSnapshotV1**
66
+ > VPSV1ActionActionResource deleteSnapshotV1()
67
+
68
+ Delete a snapshot of a specified virtual machine. Use this endpoint to remove VPS snapshots.
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ VPSSnapshotsApi,
75
+ Configuration
76
+ } from 'hostinger-api-sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new VPSSnapshotsApi(configuration);
80
+
81
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
82
+
83
+ const { status, data } = await apiInstance.deleteSnapshotV1(
84
+ virtualMachineId
85
+ );
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+ |Name | Type | Description | Notes|
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
93
+
94
+
95
+ ### Return type
96
+
97
+ **VPSV1ActionActionResource**
98
+
99
+ ### Authorization
100
+
101
+ [apiToken](../README.md#apiToken)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: Not defined
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | Success response | - |
113
+ |**401** | Unauthenticated response | - |
114
+ |**500** | Error response | - |
115
+
116
+ [[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)
117
+
118
+ # **getSnapshotV1**
119
+ > VPSV1SnapshotSnapshotResource getSnapshotV1()
120
+
121
+ Retrieve snapshot for a specified virtual machine. Use this endpoint to view current VPS snapshot information.
122
+
123
+ ### Example
124
+
125
+ ```typescript
126
+ import {
127
+ VPSSnapshotsApi,
128
+ Configuration
129
+ } from 'hostinger-api-sdk';
130
+
131
+ const configuration = new Configuration();
132
+ const apiInstance = new VPSSnapshotsApi(configuration);
133
+
134
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
135
+
136
+ const { status, data } = await apiInstance.getSnapshotV1(
137
+ virtualMachineId
138
+ );
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ |Name | Type | Description | Notes|
144
+ |------------- | ------------- | ------------- | -------------|
145
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
146
+
147
+
148
+ ### Return type
149
+
150
+ **VPSV1SnapshotSnapshotResource**
151
+
152
+ ### Authorization
153
+
154
+ [apiToken](../README.md#apiToken)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json
160
+
161
+
162
+ ### HTTP response details
163
+ | Status code | Description | Response headers |
164
+ |-------------|-------------|------------------|
165
+ |**200** | Success response | - |
166
+ |**401** | Unauthenticated response | - |
167
+ |**500** | Error response | - |
168
+
169
+ [[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)
170
+
171
+ # **restoreSnapshotV1**
172
+ > VPSV1ActionActionResource restoreSnapshotV1()
173
+
174
+ Restore a specified virtual machine to a previous state using a snapshot. Restoring from a snapshot allows users to revert the virtual machine to that state, which is useful for system recovery, undoing changes, or testing. Use this endpoint to revert VPS instances to previous saved states.
175
+
176
+ ### Example
177
+
178
+ ```typescript
179
+ import {
180
+ VPSSnapshotsApi,
181
+ Configuration
182
+ } from 'hostinger-api-sdk';
183
+
184
+ const configuration = new Configuration();
185
+ const apiInstance = new VPSSnapshotsApi(configuration);
186
+
187
+ let virtualMachineId: number; //Virtual Machine ID (default to undefined)
188
+
189
+ const { status, data } = await apiInstance.restoreSnapshotV1(
190
+ virtualMachineId
191
+ );
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ |Name | Type | Description | Notes|
197
+ |------------- | ------------- | ------------- | -------------|
198
+ | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
199
+
200
+
201
+ ### Return type
202
+
203
+ **VPSV1ActionActionResource**
204
+
205
+ ### Authorization
206
+
207
+ [apiToken](../README.md#apiToken)
208
+
209
+ ### HTTP request headers
210
+
211
+ - **Content-Type**: Not defined
212
+ - **Accept**: application/json
213
+
214
+
215
+ ### HTTP response details
216
+ | Status code | Description | Response headers |
217
+ |-------------|-------------|------------------|
218
+ |**200** | Success response | - |
219
+ |**401** | Unauthenticated response | - |
220
+ |**500** | Error response | - |
221
+
222
+ [[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)
223
+
@@ -0,0 +1,28 @@
1
+ # VPSV1ActionActionResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Action ID | [optional] [default to undefined]
9
+ **name** | **string** | Action name | [optional] [default to undefined]
10
+ **state** | **string** | Action state | [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 { VPSV1ActionActionResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: VPSV1ActionActionResource = {
20
+ id,
21
+ name,
22
+ state,
23
+ created_at,
24
+ updated_at,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # VPSV1BackupBackupResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Backup ID | [optional] [default to undefined]
9
+ **location** | **string** | Location of the backup | [optional] [default to undefined]
10
+ **created_at** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { VPSV1BackupBackupResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: VPSV1BackupBackupResource = {
18
+ id,
19
+ location,
20
+ created_at,
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,28 @@
1
+ # VPSV1DataCenterDataCenterResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Data center ID | [optional] [default to undefined]
9
+ **name** | **string** | Data center name | [optional] [default to undefined]
10
+ **location** | **string** | Data center location country (two letter code) | [optional] [default to undefined]
11
+ **city** | **string** | Data center location city | [optional] [default to undefined]
12
+ **continent** | **string** | Data center location continent | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { VPSV1DataCenterDataCenterResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: VPSV1DataCenterDataCenterResource = {
20
+ id,
21
+ name,
22
+ location,
23
+ city,
24
+ continent,
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,36 @@
1
+ # VPSV1DockerManagerContainerPortResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | Port mapping type - published (accessible from host), exposed (only internal), or range variants | [optional] [default to undefined]
9
+ **protocol** | **string** | Network protocol used for communication | [optional] [default to undefined]
10
+ **host_ip** | **string** | IP address on host where port is bound (null for exposed-only ports) | [optional] [default to undefined]
11
+ **host_port** | **number** | Port number on host machine (null for exposed-only or range ports) | [optional] [default to undefined]
12
+ **container_port** | **number** | Port number inside container (null for range ports) | [optional] [default to undefined]
13
+ **host_port_start** | **number** | Starting port number in host port range (null for single ports) | [optional] [default to undefined]
14
+ **host_port_end** | **number** | Ending port number in host port range (null for single ports) | [optional] [default to undefined]
15
+ **container_port_start** | **number** | Starting port number in container port range (null for single ports) | [optional] [default to undefined]
16
+ **container_port_end** | **number** | Ending port number in container port range (null for single ports) | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { VPSV1DockerManagerContainerPortResource } from 'hostinger-api-sdk';
22
+
23
+ const instance: VPSV1DockerManagerContainerPortResource = {
24
+ type,
25
+ protocol,
26
+ host_ip,
27
+ host_port,
28
+ container_port,
29
+ host_port_start,
30
+ host_port_end,
31
+ container_port_start,
32
+ container_port_end,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)