Good Morning
I am trying to do a hopefully simple thing: using scripts placed in PowerShell Universal inside API-s.
-
I created this simple script as an example:
-
then created this simple API:
If I understand universal-docs/cmdlets/Get-PSUScript.txt at master · ironmansoftware/universal-docs · GitHub correctly (glancing over the fact that it mentions Get-UAScript), this should return the script in question. However it does not, invoking it from Test tab leads to
[10/29/2024 9:04:06 AM] [Information] [Api-21] Status: 400 Content-Type: application/json Length: 137
[10/29/2024 9:04:06 AM] [Error] [Api-21] Specify a computer name or use the Connect-PSUServer command.
[10/29/2024 9:04:06 AM] [Information] [Api-21] GET /test/getpsuscript fe80::2c02:3c61:ed5a:f90d%4
(If I add the ComputerName parameters, it starts asking for API keys, which I am not sure why would I need to put into an API-s code, and if I add that in still fails…)
What am I missing please?