Using 188.8.131.52 against the code listed here:
I updated the version to version 4
$content_type = "application/vnd.netbackup+json;version=1.0"
$content_type = "application/vnd.netbackup+json;version=4.0"
The login works fine, but when i do the job listing, i am not seeing what i would expect. I dont see any attributes, what i do see is a list of numbers in $responce.content. But i cant see any other data being returned.
Has anyone else had experiance with pulling jobs from powershell?
So i think it narrows down to a RBAC problem.
I was using an AD user that i use for scripts that was a member of the group added to the default administrator group. Once i change the user to nbsecadmin which belongs to the same role, but it returns results.
Thoughts. I am also thinking i need to open a case for that problem, as it seems to be something in rbac not working.
Just thinking out loud here. Have you tried to just use something like Postman to remove the script from suspicion? I know one user works and the other doesn't in the script, but with Postman or Insomnia you can frequently get more information on the response and see what's going on better without having to trap or have logging logic. I haven't loked at this specific code snippet yet but you might see more from an IDE.