Authentication - Login
Authentifiez la connexion de l’utilisateur et récupérez les détails de l’utilisateur.
POST http://<Servername>/OperationsManager/authenticate
Corps de la demande
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Nom | Type | Description |
---|---|---|
credentials |
string |
Les informations d’identification sous la forme (AuthenticationMode :domain\username :password) encodées en base64. |
Réponses
Nom | Type | Description |
---|---|---|
200 OK |
Ok.Connexion réussie. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
string |
L’utilisateur ne dispose pas des autorisations suffisantes pour effectuer l’opération. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Exemples
GetLogin
Exemple de requête
POST http://<Servername>/OperationsManager/authenticate
[
"TmV0d29yazphYmNcYWRtaW51c2VyOlBXRDEyMw=="
]
Exemple de réponse
{
"name": "contoso\\adminuser",
"expiryTime": "2022-06-21T01:59:01.3448758Z",
"role": "Administrator"
}
Définitions
UserIdentity
Nom | Type | Description |
---|---|---|
expiryTime |
string |
Heure d’expiration de la session |
name |
string |
Nom d’utilisateur |
role |
string |
Rôle d’utilisateur |