@sinhaa
thanks for your input . Now I understand .
but I am getting an error when I tried to connect to WFA using REST ..
I can access the WFA GUI using https , but will trying with REST its give error.
any idea what is this and how can I solve it ?
below is the code I am using and WFA is running on 4.2 .
# WFA server and credential
$WFAserver = "https://WFAserver/rest"
$username = "admin";
$password = "*********";
# the name of the workflow/filters
$workflowToExecute = "Find_cluster_by_ipspace"
$credential = New-Object System.Management.Automation.PSCredential ($username, (ConvertTo-SecureString $password -AsPlainText -Force))
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
# first let's get the execution URL
[xml]$workflowXML = Invoke-RestMethod -Method Get -Credential $credential -Uri "$WFAserver/filters" -body @{ name = $workflowToExecute; }
Error what I am getting is :- -----
Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel.
At line:1 char:21
+ [xml]$workflowXML = Invoke-RestMethod -Method Get -Credential $credential -Uri " ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand