EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-05 11:34 PM . Last Modified: 2024-04-03 12:05 AM
i do the following with postman:
POST https://myserver/api/v8.1/authentication
Headers: "Accept" "application/json"
"Content-Type" "application/json"
Then in postman i set "No Auth" because otherwise user and password are not sent as body of the post as per documentation
Body of the request is the user and password the same way they are sent in the restapi documentation with "try it"
I always get "invalid token" in the reply but as per the documentation this is the method to be used the first time to obtain the token.
Postman is also creating the curl code corresponding to the call :
curl -X POST \
https://10.206.203.2/api/v8.1/authentication \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: b427d487-89c5-4c5e-a3cc-d940b603a8a8' \
-H 'cache-control: no-cache' \
-d '{"password": "xxxx","username": "xxxx"}'
What am i doing wrong?
Is there any ready example in python to obtain the authentication token and in general to perform some requests?
Thanks a lot fo rthe kind reply
(CID:152076809)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-05 11:34 PM . Last Modified: 2024-04-03 12:05 AM
Hello , i solved the problem about authentication in postman.
But it would be nice to collect some restapi usage examples in java/python.....
(CID:152076864)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-05 11:34 PM . Last Modified: 2023-10-22 02:26 AM
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.