no active session when sending API request
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 08:34 AM
Hi,
according to documentation the logon require 2 request (which i am able to run successfully)
curl -k -X POST https://my-ip/wsg/api/public/v8_1/session --data '{"username":"admin","password":"password"}' -H 'Content-type: application/json'
this returns only version which has no use.
the 2nd request is the serviceticket -
curl -k -X POST https://my-ip/wsg/api/public/v8_1/serviceTicket --data '{"username":"admin","password":"password"}' -H 'Content-type: application/json' - this return a string
now the request i am trying to run is
according to documentation i need a session ID instead of the user password i dont seem to find session ID in the 2 request above, i tried using the service ticket instead of the session ID without success obviously,
any ideas how to get it done or what i am missing? thanks.
according to documentation the logon require 2 request (which i am able to run successfully)
curl -k -X POST https://my-ip/wsg/api/public/v8_1/session --data '{"username":"admin","password":"password"}' -H 'Content-type: application/json'
this returns only version which has no use.
the 2nd request is the serviceticket -
curl -k -X POST https://my-ip/wsg/api/public/v8_1/serviceTicket --data '{"username":"admin","password":"password"}' -H 'Content-type: application/json' - this return a string
now the request i am trying to run is
/v8_1/aps - to get the list of aps
according to documentation i need a session ID instead of the user password i dont seem to find session ID in the 2 request above, i tried using the service ticket instead of the session ID without success obviously,
any ideas how to get it done or what i am missing? thanks.
3 REPLIES 3

