hostinger-api-sdk 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +2333 -1289
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1701 -1059
- package/dist/api.js +1739 -976
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +1701 -1059
- package/dist/esm/api.js +1728 -969
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BillingCatalogApi.md +64 -0
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingPaymentMethodsApi.md +162 -0
- package/docs/BillingSubscriptionsApi.md +113 -0
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
- package/docs/BillingV1CatalogCatalogItemResource.md +28 -0
- package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
- package/docs/BillingV1OrderOrderResource.md +36 -0
- package/docs/BillingV1OrderStoreRequest.md +24 -0
- package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
- package/docs/BillingV1OrderVirtualMachineOrderResource.md +22 -0
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
- package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
- package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
- package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
- package/docs/CommonSuccessEmptyResource.md +20 -0
- package/docs/DNSSnapshotApi.md +175 -0
- package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
- package/docs/DNSV1ZoneDestroyRequest.md +20 -0
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
- package/docs/DNSV1ZoneNameRecordResource.md +22 -0
- package/docs/DNSV1ZoneRecordResource.md +26 -0
- package/docs/DNSV1ZoneResetRequest.md +24 -0
- package/docs/DNSV1ZoneUpdateRequest.md +22 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
- package/docs/DNSZoneApi.md +297 -0
- package/docs/DomainsAvailabilityApi.md +63 -0
- package/docs/DomainsForwardingApi.md +171 -0
- package/docs/DomainsPortfolioApi.md +439 -0
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
- package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
- package/docs/DomainsV1DomainDomainResource.md +30 -0
- package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
- package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
- package/docs/DomainsV1WHOISProfileResource.md +34 -0
- package/docs/DomainsV1WHOISStoreRequest.md +28 -0
- package/docs/DomainsWHOISApi.md +279 -0
- package/docs/InlineObject.md +22 -0
- package/docs/InlineObject1.md +22 -0
- package/docs/InlineObject2.md +24 -0
- package/docs/InlineObject2Errors.md +23 -0
- package/docs/VPSActionsApi.md +121 -0
- package/docs/VPSBackupsApi.md +121 -0
- package/docs/VPSDataCentersApi.md +54 -0
- package/docs/VPSDockerManagerApi.md +585 -0
- package/docs/VPSFirewallApi.md +577 -0
- package/docs/VPSGetActionsV1200Response.md +22 -0
- package/docs/VPSGetBackupsV1200Response.md +22 -0
- package/docs/VPSGetFirewallListV1200Response.md +22 -0
- package/docs/VPSGetPostInstallScriptsV1200Response.md +22 -0
- package/docs/VPSGetPublicKeysV1200Response.md +22 -0
- package/docs/VPSMalwareScannerApi.md +172 -0
- package/docs/VPSOSTemplatesApi.md +108 -0
- package/docs/VPSPTRRecordsApi.md +126 -0
- package/docs/VPSPostInstallScriptsApi.md +284 -0
- package/docs/VPSPublicKeysApi.md +230 -0
- package/docs/VPSRecoveryApi.md +120 -0
- package/docs/VPSSnapshotsApi.md +223 -0
- package/docs/VPSV1ActionActionResource.md +28 -0
- package/docs/VPSV1BackupBackupResource.md +24 -0
- package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
- package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
- package/docs/VPSV1DockerManagerContainerResource.md +34 -0
- package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
- package/docs/VPSV1DockerManagerContentResource.md +20 -0
- package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
- package/docs/VPSV1DockerManagerLogsResource.md +22 -0
- package/docs/VPSV1DockerManagerProjectResource.md +26 -0
- package/docs/VPSV1FirewallFirewallResource.md +30 -0
- package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
- package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
- package/docs/VPSV1FirewallStoreRequest.md +20 -0
- package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
- package/docs/VPSV1MalwareMetricsResource.md +30 -0
- package/docs/VPSV1MetricsMetricsCollection.md +30 -0
- package/docs/VPSV1MetricsMetricsResource.md +22 -0
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
- package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
- package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
- package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
- package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
- package/docs/VPSV1TemplateTemplateResource.md +26 -0
- package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +22 -0
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineMetricGetRequest.md +22 -0
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +24 -0
- package/docs/VPSV1VirtualMachinePTRStoreRequest.md +20 -0
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachinePurchaseRequest.md +26 -0
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecreateRequest.md +26 -0
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +23 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
- package/docs/VPSVirtualMachineApi.md +852 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
# VPSFirewallApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**activateFirewallV1**](#activatefirewallv1) | **POST** /api/vps/v1/firewall/{firewallId}/activate/{virtualMachineId} | Activate firewall|
|
|
8
|
+
|[**createFirewallRuleV1**](#createfirewallrulev1) | **POST** /api/vps/v1/firewall/{firewallId}/rules | Create firewall rule|
|
|
9
|
+
|[**createNewFirewallV1**](#createnewfirewallv1) | **POST** /api/vps/v1/firewall | Create new firewall|
|
|
10
|
+
|[**deactivateFirewallV1**](#deactivatefirewallv1) | **POST** /api/vps/v1/firewall/{firewallId}/deactivate/{virtualMachineId} | Deactivate firewall|
|
|
11
|
+
|[**deleteFirewallRuleV1**](#deletefirewallrulev1) | **DELETE** /api/vps/v1/firewall/{firewallId}/rules/{ruleId} | Delete firewall rule|
|
|
12
|
+
|[**deleteFirewallV1**](#deletefirewallv1) | **DELETE** /api/vps/v1/firewall/{firewallId} | Delete firewall|
|
|
13
|
+
|[**getFirewallDetailsV1**](#getfirewalldetailsv1) | **GET** /api/vps/v1/firewall/{firewallId} | Get firewall details|
|
|
14
|
+
|[**getFirewallListV1**](#getfirewalllistv1) | **GET** /api/vps/v1/firewall | Get firewall list|
|
|
15
|
+
|[**syncFirewallV1**](#syncfirewallv1) | **POST** /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId} | Sync firewall|
|
|
16
|
+
|[**updateFirewallRuleV1**](#updatefirewallrulev1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules/{ruleId} | Update firewall rule|
|
|
17
|
+
|
|
18
|
+
# **activateFirewallV1**
|
|
19
|
+
> VPSV1ActionActionResource activateFirewallV1()
|
|
20
|
+
|
|
21
|
+
Activate a firewall for a specified virtual machine. Only one firewall can be active for a virtual machine at a time. Use this endpoint to apply firewall rules to VPS instances.
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import {
|
|
27
|
+
VPSFirewallApi,
|
|
28
|
+
Configuration
|
|
29
|
+
} from 'hostinger-api-sdk';
|
|
30
|
+
|
|
31
|
+
const configuration = new Configuration();
|
|
32
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
33
|
+
|
|
34
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
35
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
36
|
+
|
|
37
|
+
const { status, data } = await apiInstance.activateFirewallV1(
|
|
38
|
+
firewallId,
|
|
39
|
+
virtualMachineId
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
|Name | Type | Description | Notes|
|
|
46
|
+
|------------- | ------------- | ------------- | -------------|
|
|
47
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
48
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**VPSV1ActionActionResource**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[apiToken](../README.md#apiToken)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: Not defined
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### HTTP response details
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
|**200** | Success response | - |
|
|
69
|
+
|**422** | Validation error response | - |
|
|
70
|
+
|**401** | Unauthenticated response | - |
|
|
71
|
+
|**500** | Error response | - |
|
|
72
|
+
|
|
73
|
+
[[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)
|
|
74
|
+
|
|
75
|
+
# **createFirewallRuleV1**
|
|
76
|
+
> VPSV1FirewallFirewallRuleResource createFirewallRuleV1(vPSV1FirewallRulesStoreRequest)
|
|
77
|
+
|
|
78
|
+
Create new firewall rule for a specified firewall. By default, the firewall drops all incoming traffic, which means you must add accept rules for all ports you want to use. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to add new security rules to firewalls.
|
|
79
|
+
|
|
80
|
+
### Example
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import {
|
|
84
|
+
VPSFirewallApi,
|
|
85
|
+
Configuration,
|
|
86
|
+
VPSV1FirewallRulesStoreRequest
|
|
87
|
+
} from 'hostinger-api-sdk';
|
|
88
|
+
|
|
89
|
+
const configuration = new Configuration();
|
|
90
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
91
|
+
|
|
92
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
93
|
+
let vPSV1FirewallRulesStoreRequest: VPSV1FirewallRulesStoreRequest; //
|
|
94
|
+
|
|
95
|
+
const { status, data } = await apiInstance.createFirewallRuleV1(
|
|
96
|
+
firewallId,
|
|
97
|
+
vPSV1FirewallRulesStoreRequest
|
|
98
|
+
);
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Parameters
|
|
102
|
+
|
|
103
|
+
|Name | Type | Description | Notes|
|
|
104
|
+
|------------- | ------------- | ------------- | -------------|
|
|
105
|
+
| **vPSV1FirewallRulesStoreRequest** | **VPSV1FirewallRulesStoreRequest**| | |
|
|
106
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Return type
|
|
110
|
+
|
|
111
|
+
**VPSV1FirewallFirewallRuleResource**
|
|
112
|
+
|
|
113
|
+
### Authorization
|
|
114
|
+
|
|
115
|
+
[apiToken](../README.md#apiToken)
|
|
116
|
+
|
|
117
|
+
### HTTP request headers
|
|
118
|
+
|
|
119
|
+
- **Content-Type**: application/json
|
|
120
|
+
- **Accept**: application/json
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### HTTP response details
|
|
124
|
+
| Status code | Description | Response headers |
|
|
125
|
+
|-------------|-------------|------------------|
|
|
126
|
+
|**200** | Success response | - |
|
|
127
|
+
|**422** | Validation error response | - |
|
|
128
|
+
|**401** | Unauthenticated response | - |
|
|
129
|
+
|**500** | Error response | - |
|
|
130
|
+
|
|
131
|
+
[[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)
|
|
132
|
+
|
|
133
|
+
# **createNewFirewallV1**
|
|
134
|
+
> VPSV1FirewallFirewallResource createNewFirewallV1(vPSV1FirewallStoreRequest)
|
|
135
|
+
|
|
136
|
+
Create a new firewall. Use this endpoint to set up new firewall configurations for VPS security.
|
|
137
|
+
|
|
138
|
+
### Example
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
import {
|
|
142
|
+
VPSFirewallApi,
|
|
143
|
+
Configuration,
|
|
144
|
+
VPSV1FirewallStoreRequest
|
|
145
|
+
} from 'hostinger-api-sdk';
|
|
146
|
+
|
|
147
|
+
const configuration = new Configuration();
|
|
148
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
149
|
+
|
|
150
|
+
let vPSV1FirewallStoreRequest: VPSV1FirewallStoreRequest; //
|
|
151
|
+
|
|
152
|
+
const { status, data } = await apiInstance.createNewFirewallV1(
|
|
153
|
+
vPSV1FirewallStoreRequest
|
|
154
|
+
);
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Parameters
|
|
158
|
+
|
|
159
|
+
|Name | Type | Description | Notes|
|
|
160
|
+
|------------- | ------------- | ------------- | -------------|
|
|
161
|
+
| **vPSV1FirewallStoreRequest** | **VPSV1FirewallStoreRequest**| | |
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Return type
|
|
165
|
+
|
|
166
|
+
**VPSV1FirewallFirewallResource**
|
|
167
|
+
|
|
168
|
+
### Authorization
|
|
169
|
+
|
|
170
|
+
[apiToken](../README.md#apiToken)
|
|
171
|
+
|
|
172
|
+
### HTTP request headers
|
|
173
|
+
|
|
174
|
+
- **Content-Type**: application/json
|
|
175
|
+
- **Accept**: application/json
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### HTTP response details
|
|
179
|
+
| Status code | Description | Response headers |
|
|
180
|
+
|-------------|-------------|------------------|
|
|
181
|
+
|**200** | Success response | - |
|
|
182
|
+
|**422** | Validation error response | - |
|
|
183
|
+
|**401** | Unauthenticated response | - |
|
|
184
|
+
|**500** | Error response | - |
|
|
185
|
+
|
|
186
|
+
[[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)
|
|
187
|
+
|
|
188
|
+
# **deactivateFirewallV1**
|
|
189
|
+
> VPSV1ActionActionResource deactivateFirewallV1()
|
|
190
|
+
|
|
191
|
+
Deactivate a firewall for a specified virtual machine. Use this endpoint to remove firewall protection from VPS instances.
|
|
192
|
+
|
|
193
|
+
### Example
|
|
194
|
+
|
|
195
|
+
```typescript
|
|
196
|
+
import {
|
|
197
|
+
VPSFirewallApi,
|
|
198
|
+
Configuration
|
|
199
|
+
} from 'hostinger-api-sdk';
|
|
200
|
+
|
|
201
|
+
const configuration = new Configuration();
|
|
202
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
203
|
+
|
|
204
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
205
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
206
|
+
|
|
207
|
+
const { status, data } = await apiInstance.deactivateFirewallV1(
|
|
208
|
+
firewallId,
|
|
209
|
+
virtualMachineId
|
|
210
|
+
);
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Parameters
|
|
214
|
+
|
|
215
|
+
|Name | Type | Description | Notes|
|
|
216
|
+
|------------- | ------------- | ------------- | -------------|
|
|
217
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
218
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### Return type
|
|
222
|
+
|
|
223
|
+
**VPSV1ActionActionResource**
|
|
224
|
+
|
|
225
|
+
### Authorization
|
|
226
|
+
|
|
227
|
+
[apiToken](../README.md#apiToken)
|
|
228
|
+
|
|
229
|
+
### HTTP request headers
|
|
230
|
+
|
|
231
|
+
- **Content-Type**: Not defined
|
|
232
|
+
- **Accept**: application/json
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### HTTP response details
|
|
236
|
+
| Status code | Description | Response headers |
|
|
237
|
+
|-------------|-------------|------------------|
|
|
238
|
+
|**200** | Success response | - |
|
|
239
|
+
|**422** | Validation error response | - |
|
|
240
|
+
|**401** | Unauthenticated response | - |
|
|
241
|
+
|**500** | Error response | - |
|
|
242
|
+
|
|
243
|
+
[[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)
|
|
244
|
+
|
|
245
|
+
# **deleteFirewallRuleV1**
|
|
246
|
+
> CommonSuccessEmptyResource deleteFirewallRuleV1()
|
|
247
|
+
|
|
248
|
+
Delete a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to remove specific firewall rules.
|
|
249
|
+
|
|
250
|
+
### Example
|
|
251
|
+
|
|
252
|
+
```typescript
|
|
253
|
+
import {
|
|
254
|
+
VPSFirewallApi,
|
|
255
|
+
Configuration
|
|
256
|
+
} from 'hostinger-api-sdk';
|
|
257
|
+
|
|
258
|
+
const configuration = new Configuration();
|
|
259
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
260
|
+
|
|
261
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
262
|
+
let ruleId: number; //Firewall Rule ID (default to undefined)
|
|
263
|
+
|
|
264
|
+
const { status, data } = await apiInstance.deleteFirewallRuleV1(
|
|
265
|
+
firewallId,
|
|
266
|
+
ruleId
|
|
267
|
+
);
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Parameters
|
|
271
|
+
|
|
272
|
+
|Name | Type | Description | Notes|
|
|
273
|
+
|------------- | ------------- | ------------- | -------------|
|
|
274
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
275
|
+
| **ruleId** | [**number**] | Firewall Rule ID | defaults to undefined|
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### Return type
|
|
279
|
+
|
|
280
|
+
**CommonSuccessEmptyResource**
|
|
281
|
+
|
|
282
|
+
### Authorization
|
|
283
|
+
|
|
284
|
+
[apiToken](../README.md#apiToken)
|
|
285
|
+
|
|
286
|
+
### HTTP request headers
|
|
287
|
+
|
|
288
|
+
- **Content-Type**: Not defined
|
|
289
|
+
- **Accept**: application/json
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### HTTP response details
|
|
293
|
+
| Status code | Description | Response headers |
|
|
294
|
+
|-------------|-------------|------------------|
|
|
295
|
+
|**200** | Success empty response | - |
|
|
296
|
+
|**401** | Unauthenticated response | - |
|
|
297
|
+
|**500** | Error response | - |
|
|
298
|
+
|
|
299
|
+
[[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)
|
|
300
|
+
|
|
301
|
+
# **deleteFirewallV1**
|
|
302
|
+
> CommonSuccessEmptyResource deleteFirewallV1()
|
|
303
|
+
|
|
304
|
+
Delete a specified firewall. Any virtual machine that has this firewall activated will automatically have it deactivated. Use this endpoint to remove unused firewall configurations.
|
|
305
|
+
|
|
306
|
+
### Example
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
import {
|
|
310
|
+
VPSFirewallApi,
|
|
311
|
+
Configuration
|
|
312
|
+
} from 'hostinger-api-sdk';
|
|
313
|
+
|
|
314
|
+
const configuration = new Configuration();
|
|
315
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
316
|
+
|
|
317
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
318
|
+
|
|
319
|
+
const { status, data } = await apiInstance.deleteFirewallV1(
|
|
320
|
+
firewallId
|
|
321
|
+
);
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### Parameters
|
|
325
|
+
|
|
326
|
+
|Name | Type | Description | Notes|
|
|
327
|
+
|------------- | ------------- | ------------- | -------------|
|
|
328
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
### Return type
|
|
332
|
+
|
|
333
|
+
**CommonSuccessEmptyResource**
|
|
334
|
+
|
|
335
|
+
### Authorization
|
|
336
|
+
|
|
337
|
+
[apiToken](../README.md#apiToken)
|
|
338
|
+
|
|
339
|
+
### HTTP request headers
|
|
340
|
+
|
|
341
|
+
- **Content-Type**: Not defined
|
|
342
|
+
- **Accept**: application/json
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
### HTTP response details
|
|
346
|
+
| Status code | Description | Response headers |
|
|
347
|
+
|-------------|-------------|------------------|
|
|
348
|
+
|**200** | Success empty response | - |
|
|
349
|
+
|**401** | Unauthenticated response | - |
|
|
350
|
+
|**500** | Error response | - |
|
|
351
|
+
|
|
352
|
+
[[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)
|
|
353
|
+
|
|
354
|
+
# **getFirewallDetailsV1**
|
|
355
|
+
> VPSV1FirewallFirewallResource getFirewallDetailsV1()
|
|
356
|
+
|
|
357
|
+
Retrieve firewall by its ID and rules associated with it. Use this endpoint to view specific firewall configuration and rules.
|
|
358
|
+
|
|
359
|
+
### Example
|
|
360
|
+
|
|
361
|
+
```typescript
|
|
362
|
+
import {
|
|
363
|
+
VPSFirewallApi,
|
|
364
|
+
Configuration
|
|
365
|
+
} from 'hostinger-api-sdk';
|
|
366
|
+
|
|
367
|
+
const configuration = new Configuration();
|
|
368
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
369
|
+
|
|
370
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
371
|
+
|
|
372
|
+
const { status, data } = await apiInstance.getFirewallDetailsV1(
|
|
373
|
+
firewallId
|
|
374
|
+
);
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Parameters
|
|
378
|
+
|
|
379
|
+
|Name | Type | Description | Notes|
|
|
380
|
+
|------------- | ------------- | ------------- | -------------|
|
|
381
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### Return type
|
|
385
|
+
|
|
386
|
+
**VPSV1FirewallFirewallResource**
|
|
387
|
+
|
|
388
|
+
### Authorization
|
|
389
|
+
|
|
390
|
+
[apiToken](../README.md#apiToken)
|
|
391
|
+
|
|
392
|
+
### HTTP request headers
|
|
393
|
+
|
|
394
|
+
- **Content-Type**: Not defined
|
|
395
|
+
- **Accept**: application/json
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
### HTTP response details
|
|
399
|
+
| Status code | Description | Response headers |
|
|
400
|
+
|-------------|-------------|------------------|
|
|
401
|
+
|**200** | Success response | - |
|
|
402
|
+
|**401** | Unauthenticated response | - |
|
|
403
|
+
|**500** | Error response | - |
|
|
404
|
+
|
|
405
|
+
[[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)
|
|
406
|
+
|
|
407
|
+
# **getFirewallListV1**
|
|
408
|
+
> VPSGetFirewallListV1200Response getFirewallListV1()
|
|
409
|
+
|
|
410
|
+
Retrieve all available firewalls. Use this endpoint to view existing firewall configurations.
|
|
411
|
+
|
|
412
|
+
### Example
|
|
413
|
+
|
|
414
|
+
```typescript
|
|
415
|
+
import {
|
|
416
|
+
VPSFirewallApi,
|
|
417
|
+
Configuration
|
|
418
|
+
} from 'hostinger-api-sdk';
|
|
419
|
+
|
|
420
|
+
const configuration = new Configuration();
|
|
421
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
422
|
+
|
|
423
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
424
|
+
|
|
425
|
+
const { status, data } = await apiInstance.getFirewallListV1(
|
|
426
|
+
page
|
|
427
|
+
);
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
### Parameters
|
|
431
|
+
|
|
432
|
+
|Name | Type | Description | Notes|
|
|
433
|
+
|------------- | ------------- | ------------- | -------------|
|
|
434
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### Return type
|
|
438
|
+
|
|
439
|
+
**VPSGetFirewallListV1200Response**
|
|
440
|
+
|
|
441
|
+
### Authorization
|
|
442
|
+
|
|
443
|
+
[apiToken](../README.md#apiToken)
|
|
444
|
+
|
|
445
|
+
### HTTP request headers
|
|
446
|
+
|
|
447
|
+
- **Content-Type**: Not defined
|
|
448
|
+
- **Accept**: application/json
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
### HTTP response details
|
|
452
|
+
| Status code | Description | Response headers |
|
|
453
|
+
|-------------|-------------|------------------|
|
|
454
|
+
|**200** | Success response | - |
|
|
455
|
+
|**401** | Unauthenticated response | - |
|
|
456
|
+
|**500** | Error response | - |
|
|
457
|
+
|
|
458
|
+
[[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)
|
|
459
|
+
|
|
460
|
+
# **syncFirewallV1**
|
|
461
|
+
> VPSV1ActionActionResource syncFirewallV1()
|
|
462
|
+
|
|
463
|
+
Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
464
|
+
|
|
465
|
+
### Example
|
|
466
|
+
|
|
467
|
+
```typescript
|
|
468
|
+
import {
|
|
469
|
+
VPSFirewallApi,
|
|
470
|
+
Configuration
|
|
471
|
+
} from 'hostinger-api-sdk';
|
|
472
|
+
|
|
473
|
+
const configuration = new Configuration();
|
|
474
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
475
|
+
|
|
476
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
477
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
478
|
+
|
|
479
|
+
const { status, data } = await apiInstance.syncFirewallV1(
|
|
480
|
+
firewallId,
|
|
481
|
+
virtualMachineId
|
|
482
|
+
);
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### Parameters
|
|
486
|
+
|
|
487
|
+
|Name | Type | Description | Notes|
|
|
488
|
+
|------------- | ------------- | ------------- | -------------|
|
|
489
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
490
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
### Return type
|
|
494
|
+
|
|
495
|
+
**VPSV1ActionActionResource**
|
|
496
|
+
|
|
497
|
+
### Authorization
|
|
498
|
+
|
|
499
|
+
[apiToken](../README.md#apiToken)
|
|
500
|
+
|
|
501
|
+
### HTTP request headers
|
|
502
|
+
|
|
503
|
+
- **Content-Type**: Not defined
|
|
504
|
+
- **Accept**: application/json
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
### HTTP response details
|
|
508
|
+
| Status code | Description | Response headers |
|
|
509
|
+
|-------------|-------------|------------------|
|
|
510
|
+
|**200** | Success response | - |
|
|
511
|
+
|**422** | Validation error response | - |
|
|
512
|
+
|**401** | Unauthenticated response | - |
|
|
513
|
+
|**500** | Error response | - |
|
|
514
|
+
|
|
515
|
+
[[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)
|
|
516
|
+
|
|
517
|
+
# **updateFirewallRuleV1**
|
|
518
|
+
> VPSV1FirewallFirewallRuleResource updateFirewallRuleV1(vPSV1FirewallRulesStoreRequest)
|
|
519
|
+
|
|
520
|
+
Update a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually. Use this endpoint to modify existing firewall rules.
|
|
521
|
+
|
|
522
|
+
### Example
|
|
523
|
+
|
|
524
|
+
```typescript
|
|
525
|
+
import {
|
|
526
|
+
VPSFirewallApi,
|
|
527
|
+
Configuration,
|
|
528
|
+
VPSV1FirewallRulesStoreRequest
|
|
529
|
+
} from 'hostinger-api-sdk';
|
|
530
|
+
|
|
531
|
+
const configuration = new Configuration();
|
|
532
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
533
|
+
|
|
534
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
535
|
+
let ruleId: number; //Firewall Rule ID (default to undefined)
|
|
536
|
+
let vPSV1FirewallRulesStoreRequest: VPSV1FirewallRulesStoreRequest; //
|
|
537
|
+
|
|
538
|
+
const { status, data } = await apiInstance.updateFirewallRuleV1(
|
|
539
|
+
firewallId,
|
|
540
|
+
ruleId,
|
|
541
|
+
vPSV1FirewallRulesStoreRequest
|
|
542
|
+
);
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### Parameters
|
|
546
|
+
|
|
547
|
+
|Name | Type | Description | Notes|
|
|
548
|
+
|------------- | ------------- | ------------- | -------------|
|
|
549
|
+
| **vPSV1FirewallRulesStoreRequest** | **VPSV1FirewallRulesStoreRequest**| | |
|
|
550
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
551
|
+
| **ruleId** | [**number**] | Firewall Rule ID | defaults to undefined|
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
### Return type
|
|
555
|
+
|
|
556
|
+
**VPSV1FirewallFirewallRuleResource**
|
|
557
|
+
|
|
558
|
+
### Authorization
|
|
559
|
+
|
|
560
|
+
[apiToken](../README.md#apiToken)
|
|
561
|
+
|
|
562
|
+
### HTTP request headers
|
|
563
|
+
|
|
564
|
+
- **Content-Type**: application/json
|
|
565
|
+
- **Accept**: application/json
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
### HTTP response details
|
|
569
|
+
| Status code | Description | Response headers |
|
|
570
|
+
|-------------|-------------|------------------|
|
|
571
|
+
|**200** | Success response | - |
|
|
572
|
+
|**422** | Validation error response | - |
|
|
573
|
+
|**401** | Unauthenticated response | - |
|
|
574
|
+
|**500** | Error response | - |
|
|
575
|
+
|
|
576
|
+
[[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)
|
|
577
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VPSGetActionsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<VPSV1ActionActionResource>**](VPSV1ActionActionResource.md) | Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSGetActionsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetActionsV1200Response = {
|
|
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,22 @@
|
|
|
1
|
+
# VPSGetBackupsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<VPSV1BackupBackupResource>**](VPSV1BackupBackupResource.md) | Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSGetBackupsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetBackupsV1200Response = {
|
|
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,22 @@
|
|
|
1
|
+
# VPSGetFirewallListV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<VPSV1FirewallFirewallResource>**](VPSV1FirewallFirewallResource.md) | Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSGetFirewallListV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetFirewallListV1200Response = {
|
|
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,22 @@
|
|
|
1
|
+
# VPSGetPostInstallScriptsV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<VPSV1PostInstallScriptPostInstallScriptResource>**](VPSV1PostInstallScriptPostInstallScriptResource.md) | Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSGetPostInstallScriptsV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetPostInstallScriptsV1200Response = {
|
|
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,22 @@
|
|
|
1
|
+
# VPSGetPublicKeysV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<VPSV1PublicKeyPublicKeyResource>**](VPSV1PublicKeyPublicKeyResource.md) | Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSGetPublicKeysV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetPublicKeysV1200Response = {
|
|
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)
|