I'm trying to connect to an Aruba 6300 switch using the REST API. It works fine with this CURL command :
Code: Select all
curl -k -X POST -c c:\auth_cookie -H "Content-Type: multipart/form-data" "https://192.168.1.254/rest/v10.11/login" -F "username=admin" -F "password=123456"Code: Select all
Invoke-RestMethod "https://192.168.1.254/rest/v10.11/login" -SkipCertificateCheck -Method Post -Body @{username = "admin"; password = "123456"}Here is the doc : https://www.arubanetworks.com/techdocs/ ... v10-0x.pdf
Could you help me?
Thanks for you time

