Hello Parvez,
which "key" did you change ? There are two types of keys:
System Key > only for some internal processes, this key might (?) need an engine restart.
Algorithm Security Key > every algorithm instance has a key that can be changed via API, this does clearly not need an engine restart.
BR .. Tino
------------------------------
Tino Pironti
Masking SME
Technical Manager
Delphix
------------------------------
Original Message:
Sent: 01-26-2023 10:29:08 PM
From: Parvez Ahmad
Subject: restart masking engine using API
Dear Mouhssine,
Thanks a ton for your help and reply, let me test this at customer end and get back to you.
Regards
Parvez AP
------------------------------
Parvez Ahmad
Consultant
BTP-Icon PTE Ltd.
Original Message:
Sent: 01-26-2023 11:26:03 AM
From: Mouhssine Saidi
Subject: restart masking engine using API
Hi Ahmed,
I did anticipate and providing you with a script automating (reboot of the engine, stop masking app, start masking app)
You can the script passing the action to take as a parameter like reboot in this example
reboot_engine.sh reboot
Best,
#!/bin/bash## sample script to start or stop a VDB.## set this to the FQDN or IP address of the Delphix EngineDE="192.168.203.3"# set this to the Delphix admin user nameDELPHIX_ADMIN="sysadmin"# set this to the password for the Delphix admin userDELPHIX_PASS="delphix"# set this to the object reference for the VDB#auth(){## create our sessioncurl -s -X POST -k --data @- http://${DE}/resources/json/delphix/session \ -c ~/cookies.txt -H "Content-Type: application/json" <<EOF{ "type": "APISession", "version": { "type": "APIVersion", "major": 1, "minor": 4, "micro": 3 }}EOFecho## authenticate to the DEcurl -s -X POST -k --data @- http://${DE}/resources/json/delphix/login \ -b ~/cookies.txt -c ~/cookies.txt -H "Content-Type: application/json" <<EOF{ "type": "LoginRequest", "username": "${DELPHIX_ADMIN}", "password": "${DELPHIX_PASS}"}EOFecho}reboot(){## reboot enginecurl -s -X POST -k --data @- http://${DE}/resources/json/delphix/system/reboot \ -b ~/cookies.txt -H "Content-Type: application/json" <<EOF{}EOFecho}stop_masking(){curl -s -X POST -k --data @- http://${DE}/resources/json/delphix/system/stopMasking \ -b ~/cookies.txt -H "Content-Type: application/json" <<EOF{}EOFecho}start_masking(){curl -s -X POST -k --data @- http://${DE}/resources/json/delphix/system/startMasking \ -b ~/cookies.txt -H "Content-Type: application/json" <<EOF{}EOFecho}case $1 in reboot) echo "Reboot the engine ${DE}" auth reboot ;; start) echo "Start masking stack on ${DE}" auth start_masking #break ;; stop) echo "Stop masking stack on ${DE}" auth stop_masking #break ;; *) echo "Usage: $0 <reboot | start | stop>" exit 1 ;; esac
------------------------------
Mouhssine Saidi
Technical Services
Delphix
Original Message:
Sent: 01-26-2023 12:07:42 AM
From: Parvez Ahmad
Subject: restart masking engine using API
Hi Experts,
I need help in understanding on how to START/STOP masking engine after masking key is changed using API client. any help is much appreciated.
------------------------------
Parvez Ahmad
Consultant
BTP-Icon PTE Ltd.
------------------------------