POST Sessions
Signs into Operations for Logs with the given credentials, creates and returns a new session.
Show optional properties
{
"username": "string",
"password": "string",
"provider": "string"
}
{
"username": "johndoe",
"password": "password",
"provider": "Local"
}
username
password
provider
Successfully signed into Operations for Logs.
{
"userId": "cc251b9f-b4d0-437d-86de-8ac560d45e55",
"sessionId": "80Lmue52xwIgDiQMu7as9jLdLFFs+Hn3HI2WP0fx6kH0ApL",
"ttl": 1800
}
Could not sign in with the given credentials.
{
"errorMessage": "Invalid credentials or account is locked.",
"errorCode": "FIELD_ERROR"
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
Operations for Logs did not have its initial configuration set up yet. See /deployment/new.
{
"errorMessage": "LI server should be bootstrapped to process this API call"
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"password:"string","provider:"string","username:"string"}' https://{api_host}/api/v1/sessions