@hostinger/sdk 1.47.1 → 1.49.0
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 +877 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +550 -5
- package/dist/api.js +665 -15
- 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 +550 -5
- package/dist/esm/api.js +655 -5
- 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/HostingNodeJSApi.md +367 -0
- package/docs/HostingV1NodeJsBuildAnalysisResource.md +22 -0
- package/docs/HostingV1NodeJsLogEntryResource.md +24 -0
- package/docs/HostingV1NodeJsRuntimeLogsResource.md +26 -0
- package/docs/HostingV1NodeJsStoredBuildSettingsResource.md +32 -0
- package/docs/HostingV1NodeJsUpdateBuildSettingsRequest.md +32 -0
- package/docs/VPSFirewallApi.md +56 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/VPSFirewallApi.md
CHANGED
|
@@ -13,6 +13,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
13
13
|
|[**getFirewallDetailsV1**](#getfirewalldetailsv1) | **GET** /api/vps/v1/firewall/{firewallId} | Get firewall details|
|
|
14
14
|
|[**getFirewallListV1**](#getfirewalllistv1) | **GET** /api/vps/v1/firewall | Get firewall list|
|
|
15
15
|
|[**replaceAllFirewallRulesInGroupV1**](#replaceallfirewallrulesingroupv1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules | Replace all firewall rules in group|
|
|
16
|
+
|[**syncFirewallToAllAssignedVMsV1**](#syncfirewalltoallassignedvmsv1) | **POST** /api/vps/v1/firewall/{firewallId}/sync | Sync firewall to all assigned VMs|
|
|
16
17
|
|[**syncFirewallV1**](#syncfirewallv1) | **POST** /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId} | Sync firewall|
|
|
17
18
|
|[**updateFirewallRuleV1**](#updatefirewallrulev1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules/{ruleId} | Update firewall rule|
|
|
18
19
|
|
|
@@ -516,10 +517,64 @@ const { status, data } = await apiInstance.replaceAllFirewallRulesInGroupV1(
|
|
|
516
517
|
|
|
517
518
|
[[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)
|
|
518
519
|
|
|
520
|
+
# **syncFirewallToAllAssignedVMsV1**
|
|
521
|
+
> CommonSuccessEmptyResource syncFirewallToAllAssignedVMsV1()
|
|
522
|
+
|
|
523
|
+
Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
|
|
524
|
+
|
|
525
|
+
### Example
|
|
526
|
+
|
|
527
|
+
```typescript
|
|
528
|
+
import {
|
|
529
|
+
VPSFirewallApi,
|
|
530
|
+
Configuration
|
|
531
|
+
} from '@hostinger/sdk';
|
|
532
|
+
|
|
533
|
+
const configuration = new Configuration();
|
|
534
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
535
|
+
|
|
536
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
537
|
+
|
|
538
|
+
const { status, data } = await apiInstance.syncFirewallToAllAssignedVMsV1(
|
|
539
|
+
firewallId
|
|
540
|
+
);
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
### Parameters
|
|
544
|
+
|
|
545
|
+
|Name | Type | Description | Notes|
|
|
546
|
+
|------------- | ------------- | ------------- | -------------|
|
|
547
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
### Return type
|
|
551
|
+
|
|
552
|
+
**CommonSuccessEmptyResource**
|
|
553
|
+
|
|
554
|
+
### Authorization
|
|
555
|
+
|
|
556
|
+
[apiToken](../README.md#apiToken)
|
|
557
|
+
|
|
558
|
+
### HTTP request headers
|
|
559
|
+
|
|
560
|
+
- **Content-Type**: Not defined
|
|
561
|
+
- **Accept**: application/json
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
### HTTP response details
|
|
565
|
+
| Status code | Description | Response headers |
|
|
566
|
+
|-------------|-------------|------------------|
|
|
567
|
+
|**200** | Success empty response | - |
|
|
568
|
+
|**422** | Validation error response | - |
|
|
569
|
+
|**401** | Unauthenticated response | - |
|
|
570
|
+
|**500** | Error response | - |
|
|
571
|
+
|
|
572
|
+
[[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)
|
|
573
|
+
|
|
519
574
|
# **syncFirewallV1**
|
|
520
575
|
> VPSV1ActionActionResource syncFirewallV1()
|
|
521
576
|
|
|
522
|
-
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.
|
|
577
|
+
Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
|
|
523
578
|
|
|
524
579
|
### Example
|
|
525
580
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.49.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|