Get Login Token
GET /login
Get login token to use in subsequent api calls
Query Parameters
| service | Optional query parameter, to specify a URL to redirect to on successful
authentication |
| namespace | |
Required Roles
This call has no restrictions.
Response Body
Response
Examples
Request
GET https://192.168.0.0:4443/login?using-cookies=true HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<loggedIn>
<user>root</user>
</loggedIn>
Request
GET https://192.168.0.0:4443/login.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"user" : "root"
}
Request
curl -H $token -H "Content-Type: application/xml" -X GET https://$nodeIp:4443/login?using-cookies=true
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<loggedIn>
<user>root</user>
</loggedIn>