11-01-2023 07:48 AM
HI ,
I am trying to to get JSESSIONID i(authorization cookie) using CURL to access the API m using the below
curl -c - -X POST -k "https://sandbox-sdwan-2.cisco.com/" -H "Content-Type: application/json" -d '{
"j_username": "The username provided in the Sandbox guide ,
"j_password": "the password provided in the sandbox guide "
}' -c cookies.txt
getting this error
<div id="errorInfoText">
<span id="errorMessageBox" name="errorMessageBox" class="errorMessageBox"></span>
<span id="errorDetails" class="errorDetails">
<ul>
<li>If username and password are valid, user account is locked. Wait for some time and try again or contact Administrator</li>
<li>If username and password are valid, password has expired. Contact Administrator</li>
</ul>
</span>
please note that login is sucessful when trying to access the sandbox SD-WAN GUI using same credential
11-01-2023 09:55 AM - edited 11-01-2023 10:10 AM
@malrabas try this. The following example shows requests for obtaining a token:
~ via v3.11.(venv)
❯ curl --user devnetuser:RG\!_Yw919_83 https://sandbox-sdwan-2.cisco.com/dataservice/client/token --insecure
6E7B2862C8A0E8A88E213AB6136003D9E91285F6EEB1F46CEC2DD7E94C7F5856A6ADBF0076C0B634DF551315E0FFED4D292F
Also the Always On SD-WAN SBX is read only, and i think you can only perform GET requests. In your error you would also see - Access Forbidden for this user.
11-02-2023 10:24 PM
@bigevilbeard you rock!
11-02-2023 10:38 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide