Authentication - Login
ユーザーログインを認証し、ユーザーの詳細を取得します。
POST http://<Servername>/OperationsManager/authenticate
要求本文
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名前 | 型 | 説明 |
---|---|---|
credentials |
string |
base64 でエンコードされた (AuthenticationMode:domain\username:password) 形式の資格情報。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
OK.サインオンに成功しました。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
string |
ユーザーには、操作を実行するための十分な権限がありません。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
例
GetLogin
要求のサンプル
POST http://<Servername>/OperationsManager/authenticate
[
"TmV0d29yazphYmNcYWRtaW51c2VyOlBXRDEyMw=="
]
応答のサンプル
{
"name": "contoso\\adminuser",
"expiryTime": "2022-06-21T01:59:01.3448758Z",
"role": "Administrator"
}
定義
UserIdentity
名前 | 型 | 説明 |
---|---|---|
expiryTime |
string |
セッションの有効期限 |
name |
string |
UserName |
role |
string |
ユーザーの役割 |