[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-rest-api
Login
DescriptionLogs in and returns the session ID. In the subsequent requests, include the ‘x-dr-session’ header with the value of the returned session ID.
Request
Operation doesn't accept any path, query or header parameters.
URL
https://{api_host}//session
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
SessionIdData
of type application/json
Successfully authenticated. The session ID is returned in the response body. In the subsequent requests, include the ‘x-dr-session’ header with the value of the returned session ID.
{
"session_id": "string"
}
string
session_id
Optional
Errors
ResponseError
400
Bad request - the server could not understand the request due to invalid syntax or invalid request body content
ResponseError
500
Internal server error - unexpected condition prevents fulfilling the request
Code Samples
cURL Command
curl -X POST https://{api_host}/session
[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-rest-api