hostinger-api-sdk 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +386 -148
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +319 -143
- package/dist/api.js +139 -41
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +319 -143
- package/dist/esm/api.js +136 -38
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingCatalogApi.md +0 -54
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingPaymentMethodsApi.md +0 -162
- package/docs/BillingSubscriptionsApi.md +0 -113
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +0 -32
- package/docs/BillingV1CatalogCatalogItemResource.md +0 -26
- package/docs/BillingV1OrderOrderBillingAddressResource.md +0 -40
- package/docs/BillingV1OrderOrderResource.md +0 -36
- package/docs/BillingV1OrderStoreRequest.md +0 -24
- package/docs/BillingV1OrderStoreRequestItemsInner.md +0 -22
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +0 -36
- package/docs/BillingV1SubscriptionCancelRequest.md +0 -22
- package/docs/BillingV1SubscriptionSubscriptionResource.md +0 -42
- package/docs/CommonSchemaErrorResponseSchema.md +0 -22
- package/docs/CommonSchemaPaginationMetaSchema.md +0 -24
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +0 -22
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +0 -24
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +0 -22
- package/docs/CommonSuccessEmptyResource.md +0 -20
- package/docs/DNSSnapshotApi.md +0 -175
- package/docs/DNSV1SnapshotSnapshotResource.md +0 -24
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +0 -26
- package/docs/DNSV1ZoneDestroyRequest.md +0 -20
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +0 -22
- package/docs/DNSV1ZoneNameRecordResource.md +0 -22
- package/docs/DNSV1ZoneRecordResource.md +0 -26
- package/docs/DNSV1ZoneResetRequest.md +0 -24
- package/docs/DNSV1ZoneUpdateRequest.md +0 -22
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +0 -26
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +0 -20
- package/docs/DNSZoneApi.md +0 -297
- package/docs/DomainsAvailabilityApi.md +0 -63
- package/docs/DomainsForwardingApi.md +0 -171
- package/docs/DomainsPortfolioApi.md +0 -439
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +0 -24
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +0 -26
- package/docs/DomainsV1DomainDomainExtendedResource.md +0 -48
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +0 -27
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +0 -23
- package/docs/DomainsV1DomainDomainResource.md +0 -30
- package/docs/DomainsV1ForwardingForwardingResource.md +0 -28
- package/docs/DomainsV1ForwardingStoreRequest.md +0 -24
- package/docs/DomainsV1PortfolioPurchaseRequest.md +0 -30
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +0 -27
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +0 -26
- package/docs/DomainsV1WHOISProfileResource.md +0 -34
- package/docs/DomainsV1WHOISStoreRequest.md +0 -28
- package/docs/DomainsWHOISApi.md +0 -279
- package/docs/VPSActionsApi.md +0 -121
- package/docs/VPSBackupsApi.md +0 -178
- package/docs/VPSDataCentersApi.md +0 -54
- package/docs/VPSFirewallApi.md +0 -577
- package/docs/VPSGetActionListV1200Response.md +0 -22
- package/docs/VPSGetBackupListV1200Response.md +0 -22
- package/docs/VPSGetFirewallListV1200Response.md +0 -22
- package/docs/VPSGetPostInstallScriptListV1200Response.md +0 -22
- package/docs/VPSGetPublicKeyListV1200Response.md +0 -22
- package/docs/VPSMalwareScannerApi.md +0 -172
- package/docs/VPSOSTemplatesApi.md +0 -108
- package/docs/VPSPTRRecordsApi.md +0 -115
- package/docs/VPSPostInstallScriptsApi.md +0 -284
- package/docs/VPSPublicKeysApi.md +0 -230
- package/docs/VPSRecoveryApi.md +0 -120
- package/docs/VPSSnapshotsApi.md +0 -223
- package/docs/VPSV1ActionActionResource.md +0 -28
- package/docs/VPSV1BackupBackupResource.md +0 -24
- package/docs/VPSV1DataCenterDataCenterResource.md +0 -28
- package/docs/VPSV1FirewallFirewallResource.md +0 -30
- package/docs/VPSV1FirewallFirewallRuleResource.md +0 -30
- package/docs/VPSV1FirewallRulesStoreRequest.md +0 -26
- package/docs/VPSV1FirewallStoreRequest.md +0 -20
- package/docs/VPSV1IPAddressIPAddressResource.md +0 -24
- package/docs/VPSV1MalwareMetricsResource.md +0 -30
- package/docs/VPSV1MetricsMetricsCollection.md +0 -30
- package/docs/VPSV1MetricsMetricsResource.md +0 -22
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +0 -28
- package/docs/VPSV1PostInstallScriptStoreRequest.md +0 -22
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
- package/docs/VPSV1PublicKeyPublicKeyResource.md +0 -24
- package/docs/VPSV1PublicKeyStoreRequest.md +0 -22
- package/docs/VPSV1SnapshotSnapshotResource.md +0 -24
- package/docs/VPSV1TemplateTemplateResource.md +0 -26
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +0 -22
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecreateRequest.md +0 -24
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineSetupRequest.md +0 -38
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +0 -22
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +0 -52
- package/docs/VPSVirtualMachineApi.md +0 -796
package/docs/VPSPublicKeysApi.md
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
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
|
-
|[**createNewPublicKeyV1**](#createnewpublickeyv1) | **POST** /api/vps/v1/public-keys | Create new public key|
|
|
9
|
-
|[**deleteAPublicKeyV1**](#deleteapublickeyv1) | **DELETE** /api/vps/v1/public-keys/{publicKeyId} | Delete a public key|
|
|
10
|
-
|[**getPublicKeyListV1**](#getpublickeylistv1) | **GET** /api/vps/v1/public-keys | Get public key list|
|
|
11
|
-
|
|
12
|
-
# **attachPublicKeyV1**
|
|
13
|
-
> VPSV1ActionActionResource attachPublicKeyV1(vPSV1PublicKeyAttachRequest)
|
|
14
|
-
|
|
15
|
-
This endpoint attaches an existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine.
|
|
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 | - |
|
|
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
|
-
# **createNewPublicKeyV1**
|
|
71
|
-
> VPSV1PublicKeyPublicKeyResource createNewPublicKeyV1(vPSV1PublicKeyStoreRequest)
|
|
72
|
-
|
|
73
|
-
This endpoint allows you to add a new public key to your account, which can then be attached to virtual machine instances for secure access.
|
|
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.createNewPublicKeyV1(
|
|
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 | - |
|
|
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
|
-
# **deleteAPublicKeyV1**
|
|
126
|
-
> CommonSuccessEmptyResource deleteAPublicKeyV1()
|
|
127
|
-
|
|
128
|
-
This endpoint deletes a public key from your account. **Deleting public key from account does not remove it from virtual machine**
|
|
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.deleteAPublicKeyV1(
|
|
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 | - |
|
|
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
|
-
# **getPublicKeyListV1**
|
|
179
|
-
> VPSGetPublicKeyListV1200Response getPublicKeyListV1()
|
|
180
|
-
|
|
181
|
-
This endpoint retrieves a list of public keys associated with your account.
|
|
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.getPublicKeyListV1(
|
|
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
|
-
**VPSGetPublicKeyListV1200Response**
|
|
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 | - |
|
|
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
|
-
|
package/docs/VPSRecoveryApi.md
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
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
|
-
This endpoint initiates the 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.
|
|
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 | - |
|
|
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
|
-
This endpoint stops the recovery mode for a specified virtual machine. If virtual machine is not in recovery mode, this operation will fail.
|
|
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 | - |
|
|
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
|
-
|
package/docs/VPSSnapshotsApi.md
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
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
|
-
This endpoint creates 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!**
|
|
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 | - |
|
|
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
|
-
This endpoint deletes a snapshot of a specified virtual machine.
|
|
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 | - |
|
|
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
|
-
This endpoint retrieves a snapshot for a specified virtual machine.
|
|
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 | - |
|
|
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
|
-
This endpoint restores 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.
|
|
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 | - |
|
|
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
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
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)
|
|
@@ -1,24 +0,0 @@
|
|
|
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)
|
|
@@ -1,28 +0,0 @@
|
|
|
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)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# VPSV1FirewallFirewallResource
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **number** | Firewall ID | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | Firewall name | [optional] [default to undefined]
|
|
10
|
-
**is_synced** | **boolean** | Is current firewall synced with VPS | [optional] [default to undefined]
|
|
11
|
-
**rules** | [**Array<VPSV1FirewallFirewallRuleResource>**](VPSV1FirewallFirewallRuleResource.md) | Array of [`VPS.V1.Firewall.FirewallRuleResource`](#model/vpsv1firewallfirewallruleresource) | [optional] [default to undefined]
|
|
12
|
-
**created_at** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**updated_at** | **string** | | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { VPSV1FirewallFirewallResource } from 'hostinger-api-sdk';
|
|
19
|
-
|
|
20
|
-
const instance: VPSV1FirewallFirewallResource = {
|
|
21
|
-
id,
|
|
22
|
-
name,
|
|
23
|
-
is_synced,
|
|
24
|
-
rules,
|
|
25
|
-
created_at,
|
|
26
|
-
updated_at,
|
|
27
|
-
};
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|