From 9ec9b155caa9858008efbbe0189133f83dfa90c6 Mon Sep 17 00:00:00 2001 From: Meteo Date: Wed, 7 Jan 2026 23:20:48 +0100 Subject: [PATCH] Modified the Inserve source page so it shows all the Sync actions. --- .../system/sources/pageSourceInserve.php | 158 ++++++++++++------ 1 file changed, 111 insertions(+), 47 deletions(-) diff --git a/pub/bin/pages/system/sources/pageSourceInserve.php b/pub/bin/pages/system/sources/pageSourceInserve.php index 2c942ea..3564cc1 100644 --- a/pub/bin/pages/system/sources/pageSourceInserve.php +++ b/pub/bin/pages/system/sources/pageSourceInserve.php @@ -43,55 +43,119 @@ array_push($GLOBALS['breadCrumbArray'], array('display' => 'Inserve', 'href' => # Start page output $pageNavbar->outPutNavbar(); ?> -
-
-
-
-
-
-

Inserve settings

-

- Enter the necessary API details to set up and configure your connection to the Inserve API. This allows Sentri to communicate with Inserve and retrieve the data it needs.

-
-
-
- - - -
- -
- -
- -
-
- -
- -
- -
-
-
- -
+
+
+
+
+
+

Inserve settings

+

+ Enter the necessary API details to set up and configure your connection to the Inserve API. This allows Sentri to communicate with Inserve and retrieve the data it needs.

+
+ +
+ + + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
-
\ No newline at end of file +
+ + +
+
+
+
+
+

Inserve actions

+
+
+ checkPermissions('customer-companies', 'RW', true)) { ?> +
+
+
+
Sync companies from Inserve to Sentri.
+
+ +

This API call retrieves all companies from Inserve and creates or updates them in Sentri.

+ +
+
+
+
+ + + checkPermissions('servers', 'RW', true)) { ?> +
+
+
+
Sync cloud distributor companies
+
+ +

This API call synchronizes active companies in Sentri with the corresponding cloud distributor companies in Inserve. These cloud distributor companies are required to associate Sentri server licenses with companies in Inserve.

+ +
+
+
+
+ + + checkPermissions('servers', 'RW', true)) { ?> +
+
+
+
Sync servers licenses
+
+ +

This API call first executes the sync-cloud-distributor action and then synchronizes all servers in an active, deleted, or trial state with Inserve licenses. It creates or updates server licenses in Inserve if they do not exist or if the license quantities differ from those in Sentri.

+ +
+
+
+
+ +
+
+
+
+
\ No newline at end of file