Authentication - Login
Authentifizieren Sie die Benutzeranmeldung und rufen Sie Benutzerdetails ab.
POST http://<Servername>/OperationsManager/authenticate
Anforderungstext
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Typ | Beschreibung |
---|---|---|
credentials |
string |
Anmeldeinformationen in der Form (AuthenticationMode:domain\username:password), die in base64 codiert ist. |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
Ok.Anmeldung erfolgreich. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
string |
Der Benutzer verfügt nicht über ausreichende Berechtigungen zum Ausführen des Vorgangs. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Beispiele
GetLogin
Beispielanforderung
POST http://<Servername>/OperationsManager/authenticate
[
"TmV0d29yazphYmNcYWRtaW51c2VyOlBXRDEyMw=="
]
Beispiel für eine Antwort
{
"name": "contoso\\adminuser",
"expiryTime": "2022-06-21T01:59:01.3448758Z",
"role": "Administrator"
}
Definitionen
UserIdentity
Name | Typ | Beschreibung |
---|---|---|
expiryTime |
string |
Ablauf: Zeit der Sitzung |
name |
string |
Nutzername |
role |
string |
Benutzerrolle |