Matt, I did added as you showed above, also I throw the user name in script and confirmed it can get right user name also. I think the issue may be in header. can you give me a command where i can simply replace the put comamnd you ahev with my user name and password for testing purpose and see if it can work, then I can confirm it must be something with the creadentials.
What is your scancreen/insight version? Newer versions of OCI is not doesn't allow secure connection using the default security protocol of powershell ( ssl, tls ). So before doing Invoke-RestMethod add the below line:
Thanks Matt, I was able to resolve all issues and was able to use this.
one problem I found is when the workflow does not find the internal volume it is not failing. it give information messages that its not able to find mathcing volume but the workflow it self is not failing.