HI,
I am trying to verify if a application definition already exists using
CA WORKLOAD AUTOMATION de WEBCLIENT rest api. This seems to work intermittently but most executions slows down and eventually starts giving me 500 internal server error. Please let me know if I am missing something here. I am using Powershell to call the rest api.
Here is the code I am trying -
$testAplication = Invoke-RestMethod -Uri "https://<servername>:8443/de/api/v1/applicationDefinitions?query=name=='$ApplicationName'" -Method Get -Headers $Headers
$TestAplication
Even when I plainly calls-
Invoke-RestMethod -Uri "https://cawebstgvh01:8443/de/api/v1/applicationDefinitions" -Method Get -Headers $Headers
It works sometime but on most occasion I get -
Invoke-RestMethod : The remote server returned an error: (500) Internal Server Error.Let me know if I am doing something wrong here.
------------------------------
Abhishek
------------------------------