RestAPI - To generate Auth Token

asked 2020-11-26 07:09:45 -0600

Jinesh gravatar image


I am trying to use the restAPI to get the status of the pipelines(/rest/v1/pipelines/status), but i am not able to get the X-SS-User-Auth-Token to authenticate.

I understood that we need to use the below options to get the session id:

curl -X POST -d '{"userName":"DPMUserID", "password": "DPMUserPassword"}' --header "Content-Type:application/json" --header "X-Requested-By:SDC" -c cookie.txt

I am using LDAP authentication, so I have only the userId for logging in. Can you help me on how to use the above curl command with just the username.

edit retag flag offensive close merge delete