There is a href in /securechangeworkflow/api/securechange/tickets/$ticket_id/steps for calling the topology map. Consider this script, supposed the previous script has passed the request successfully, that script passed the ticket id to this script.
Category: Powershell
[powershell]Send access request to Tufin SecureChange using REST API
Previously I had a code in powershell, however this update supports ip address range format. accepted source and destination addresses formats are: 1. hostname 2. host ip address 3. subnet in cidr notation 4. ip address range, from first ip to last ip.
[powershell]Sending access request to Tufin SecureChange REST API.
On previous post I have a code that use a text block to contain all the XML tags of a body, this method proved to be unsustainable, for some reasons variables cannot be parsed into the @" "@ block correctly. So I used another method. Create the base XML, then read this base XML and … Continue reading [powershell]Sending access request to Tufin SecureChange REST API.
[powershell]Check valid ip address, subnet or ip address range.
Here's a code to check valid ip address (host address), subnet and ip address range in powershell. Sample code, sample code can be made as a function to return boolean values when testing an input:
[powershell]Creating access request on Tufin using REST API
This script uses a user filled in excel sheet (xlsx), the sheet contains 3 columns, source, destination and service. Since Tufin SecureChange cannot do remove or deny, asking user to choose remove or deny is meaningless. the below script has tested working, but a lot of exception handling and error handling has not been in … Continue reading [powershell]Creating access request on Tufin using REST API
[powershell]Qutting com-object
I was trying to test a powershell script to read information from an excel file, I searched through the internet and found that using com object to open an excel workbook, however the close workbook and quit excel does not actually work, the excel application is still in the processes. I search through the internet … Continue reading [powershell]Qutting com-object
[powershell]To exclude device from Tufin SecureChange
A real life usage of the device exclusion api.
[powershell]Unable to establish tls session
If you encounter a code that throws an error saying unable to establish tls session with the target server, most likely tls version is lesser than version 1.2 and your server only accepts 1.2
[powershell]Encrypt password file
A real life example for encrypting password as an encrypted file and reuse whenever you need it. this example is demonstrated for packaging http header for calling rest api.
[powershell]Rest method exception
A brief usage of using powershell's invoke-restmethod exception