EcoStruxure IT forum
A support forum for Data Center Operation, Data Center Expert, and EcoStruxure IT product users to share knowledge on installation, configuration, and general product use.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-05 11:34 PM
This question was originally posted on DCIM Support by lorenzo ferigo on 2019-11-19
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
This answer was originally posted on DCIM Support by lorenzo ferigo on 2019-11-19
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
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 forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.