Chỉnh sửa

Chia sẻ qua


Authentication - Login

Authenticate the user login and retrieves user details.

POST http://<Servername>/OperationsManager/authenticate

Request Body

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Type Description
credentials

string

Credentials in the form (AuthenticationMode:domain\username:password) encoded in base64.

Responses

Name Type Description
200 OK

UserIdentity

Ok.Sign on successful.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

403 Forbidden

string

The user does not have sufficient permission to perform the operation.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Examples

GetLogin

Sample request

POST http://<Servername>/OperationsManager/authenticate

[
  "TmV0d29yazphYmNcYWRtaW51c2VyOlBXRDEyMw=="
]

Sample response

{
  "name": "contoso\\adminuser",
  "expiryTime": "2022-06-21T01:59:01.3448758Z",
  "role": "Administrator"
}

Definitions

UserIdentity

Name Type Description
expiryTime

string

Expiry Time of session

name

string

UserName

role

string

User Role