The following command works in Ubuntu box:
curl -X GET "https://panorama.domain.com/api/?key=LUFRPTxxxxx&type=commit&action=partial&cmd=<commit><partial><admin><member>USERNAME</member></admin></partial></commit>
but it doesn't in the same box under powershell as:
Invoke-RestMethod -Method GET -Uri 'https://panorama.domain.com/api/?key=LUFRPTxxx&type=commit&action=partial&cmd=<commit><partial><admin><member>USERNAME</member></admin></partial></commit>' -Verbose:$true
I get:
VERBOSE: GET with 0-byte payload
VERBOSE: received 97-byte response of content type application/xml
Invoke-RestMethod: Invalid Credential
What am i doing wrong here? Do i have to split everything after api
?