@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.
@@ -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.47.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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/sdk",
3
- "version": "1.47.1",
3
+ "version": "1.49.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {