hostinger-api-sdk 0.0.9 → 0.0.10
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 +1777 -215
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1097 -164
- package/dist/api.js +1170 -37
- 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 +1097 -164
- package/dist/esm/api.js +1155 -31
- 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 +54 -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 +26 -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/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
- package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
- package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
- package/docs/CommonSchemaErrorResponseSchema.md +22 -0
- package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +22 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +24 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +22 -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/VPSActionsApi.md +121 -0
- package/docs/VPSBackupsApi.md +178 -0
- package/docs/VPSDataCentersApi.md +54 -0
- package/docs/VPSFirewallApi.md +577 -0
- package/docs/VPSGetActionListV1200Response.md +22 -0
- package/docs/VPSGetBackupListV1200Response.md +22 -0
- package/docs/VPSGetFirewallListV1200Response.md +22 -0
- package/docs/VPSGetPostInstallScriptListV1200Response.md +22 -0
- package/docs/VPSGetPublicKeyListV1200Response.md +22 -0
- package/docs/VPSMalwareScannerApi.md +172 -0
- package/docs/VPSOSTemplatesApi.md +108 -0
- package/docs/VPSPTRRecordsApi.md +115 -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/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/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +22 -0
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecreateRequest.md +24 -0
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +22 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
- package/docs/VPSVirtualMachineApi.md +796 -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
|
+
|[**getFirewallListV1**](#getfirewalllistv1) | **GET** /api/vps/v1/firewall | Get firewall list|
|
|
14
|
+
|[**getFirewallV1**](#getfirewallv1) | **GET** /api/vps/v1/firewall/{firewallId} | Get firewall|
|
|
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
|
+
This endpoint activates a firewall for a specified virtual machine. Only one firewall can be active for a virtual machine at a time.
|
|
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 | - |
|
|
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
|
+
This endpoint creates new firewall rule from 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 loose sync with the firewall and will have to be synced again manually.
|
|
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 | - |
|
|
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
|
+
This endpoint creates a new firewall.
|
|
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 | - |
|
|
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
|
+
This endpoint deactivates a firewall for a specified virtual machine.
|
|
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 | - |
|
|
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
|
+
This endpoint deletes a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will loose sync with the firewall and will have to be synced again manually.
|
|
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 | - |
|
|
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
|
+
This endpoint deletes a specified firewall. Any virtual machine that has this firewall activated will automatically have it deactivated.
|
|
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 | - |
|
|
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
|
+
# **getFirewallListV1**
|
|
355
|
+
> VPSGetFirewallListV1200Response getFirewallListV1()
|
|
356
|
+
|
|
357
|
+
This endpoint retrieves a list of all firewalls available.
|
|
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 page: number; //Page number (optional) (default to undefined)
|
|
371
|
+
|
|
372
|
+
const { status, data } = await apiInstance.getFirewallListV1(
|
|
373
|
+
page
|
|
374
|
+
);
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Parameters
|
|
378
|
+
|
|
379
|
+
|Name | Type | Description | Notes|
|
|
380
|
+
|------------- | ------------- | ------------- | -------------|
|
|
381
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### Return type
|
|
385
|
+
|
|
386
|
+
**VPSGetFirewallListV1200Response**
|
|
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 | - |
|
|
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
|
+
# **getFirewallV1**
|
|
408
|
+
> VPSV1FirewallFirewallResource getFirewallV1()
|
|
409
|
+
|
|
410
|
+
This endpoint retrieves firewall by its ID and rules associated with it.
|
|
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 firewallId: number; //Firewall ID (default to undefined)
|
|
424
|
+
|
|
425
|
+
const { status, data } = await apiInstance.getFirewallV1(
|
|
426
|
+
firewallId
|
|
427
|
+
);
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
### Parameters
|
|
431
|
+
|
|
432
|
+
|Name | Type | Description | Notes|
|
|
433
|
+
|------------- | ------------- | ------------- | -------------|
|
|
434
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### Return type
|
|
438
|
+
|
|
439
|
+
**VPSV1FirewallFirewallResource**
|
|
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 | - |
|
|
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
|
+
This endpoint syncs a firewall for a specified virtual machine. Firewall can loose sync with virtual machine if the firewall has new rules added, removed or updated.
|
|
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 | - |
|
|
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
|
+
This endpoint updates a specific firewall rule from a specified firewall. Any virtual machine that has this firewall activated will loose sync with the firewall and will have to be synced again manually.
|
|
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 | - |
|
|
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
|
+
# VPSGetActionListV1200Response
|
|
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 { VPSGetActionListV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetActionListV1200Response = {
|
|
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
|
+
# VPSGetBackupListV1200Response
|
|
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 { VPSGetBackupListV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetBackupListV1200Response = {
|
|
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
|
+
# VPSGetPostInstallScriptListV1200Response
|
|
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 { VPSGetPostInstallScriptListV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetPostInstallScriptListV1200Response = {
|
|
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
|
+
# VPSGetPublicKeyListV1200Response
|
|
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 { VPSGetPublicKeyListV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSGetPublicKeyListV1200Response = {
|
|
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)
|