- Community Home
- >
- Networking
- >
- Switching and Routing
- >
- Aruba & ProVision-based
- >
- REST call fails from powershell on 2920 (J9729A) b...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2020 12:56 AM
12-31-2020 12:56 AM
I'm doing some REST calls on our HPE Aruba switches but I run into a weird error. I've setup calls to our 3810M switches (KB_16_10_0011) and they work fine. On our 2920 switches (WB_16_10_0010) I can only call the REST api's from Postman but all calls from powershell fail. On the 3810M's I can both call from Postman and powershell, both http and ssl.
Here is what happens in Postman on de 2920 (I can't upload pictures):
POST: http://192.168.141.250/rest/v7/login-sessions
BODY: {"userName":"Admin", "password":"###########"}
RESULT:
This all works fine, I get a session ID.
In Postman I can click on code and I can generate a powershell script:
At line:1 char:1
+ Invoke-RestMethod 'https://192.168.141.250/rest/v7/login-sessions'
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2020 03:06 AM