最終セッションのルール・データの取得
get
/customercare/v1/{customerId}/session
過去のセッションで特定のユーザーに対して実行されたすべてのルールを返します。トリガーされたルールの基本情報を提供し、完全な階層情報は提供しません。ルール実行データは非同期に永続化されているため、即時に使用できない場合があります。
リクエスト
パス・パラメータ
- customerId(required): string
ユーザーのuniqueUserIdです。詳細は、ユーザー・プリファレンスAPIを参照してください。
この操作にはリクエスト本文はありません。
先頭に戻るレスポンス
サポートされているメディア・タイプ
- application/xml
- application/json
200レスポンス
成功
ルート・スキーマ: RuleResponse
型:
ソースを表示
object
-
requestId: string
ロギング/トラッキングを目的としたリクエストID
-
runtimeData: object runtimeData
使用可能なその他のプロパティ: RuntimeDataListランタイムIDのランタイム・データ・リストへのマップ
-
statusResponse: object StatusResponse
APIコールのステータス情報
ネストされたスキーマ: StatusResponse
型:
object
APIコールのステータス情報
ソースを表示
-
responseCode: string
リクエストのステータス・コード
-
responseMessage: string
レスポンス・コードに関連するレスポンス・メッセージ(必要に応じて)。
-
sessionId: string
認証のセッションID。
-
status: boolean
認証更新リクエスト・ステータス
404レスポンス
顧客IDが見つかりません
例
次の例は、前のセッションでユーザーに対して実行されたすべてのルールを取得するサンプルのリクエストとレスポンスを示しています。
JSON形式で最終セッションのルール・データを取得するcURLコマンド
curl --location --request GET '<RISKCC>/risk-cc/customercare/v1/{customerId}/session' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'
JSON形式のサンプル・レスポンス
{ "requestId": "6f4372b9-187c-4a04-995e-f54bb46d2e56", "runtimeData": { "2": [ { "actionList": [ "Challenge", "ChallengeEmail" ], "alertList": [ { "id": 4, "level": "Medium", "message": "IP is not from a mobile connection and has not been used in thirty days and more than one user has logged in from it within twenty four hours.", "type": "Investigation" }, { "id": 10001, "level": "Low", "message": "Assertion Level is less than or equal to 50", "type": "Information" }, { "id": 10001, "level": "Low", "message": "Assertion Level is less than or equal to 50", "type": "Information" } ], "finalScore": 900, "ruleList": [ { "modelId": 6, "modelName": "OAAM Challenge Policy", "ruleId": 10001, "ruleName": "Assertion Level <=50" } ], "runtime": 2, "runtimeName": "postauth" } ] }, "statusResponse": { "responseCode": "0", "responseMessage": "", "status": true } }
XML形式で最終セッションのルール・データを取得するcURLコマンド
curl --location --request GET '<RISKCC>/risk-cc/customercare/v1/{customerId}/session' \ --header 'Content-Type: application/xml' \ --header 'Accept: application/xml' \ --header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'
XML形式のサンプル・レスポンス
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><RuleResponse> <requestId>6f4372b9-187c-4a04-995e-f54bb46d2e56</requestId> <runtimeData> <2> <actionList>Challenge</actionList> <actionList>ChallengeEmail</actionList> <alertList> <id>4</id> <level>Medium</level> <message>IP is not from a mobile connection and has not been used in thirty days and more than one user has logged in from it within twenty four hours.</message> <type>Investigation</type> </alertList> <alertList> <id>10001</id> <level>Low</level> <message>Assertion Level is less than or equal to 50</message> <type>Information</type> </alertList> <alertList> <id>10001</id> <level>Low</level> <message>Assertion Level is less than or equal to 50</message> <type>Information</type> </alertList> <finalScore>900</finalScore> <ruleList> <modelId>6</modelId> <modelName>OAAM Challenge Policy</modelName> <ruleId>10001</ruleId> <ruleName>Assertion Level <=50</ruleName> </ruleList> <runtime>2</runtime> <runtimeName>postauth</runtimeName> </2> </runtimeData> <statusResponse> <responseCode>0</responseCode> <responseMessage></responseMessage> <status>true</status> </statusResponse> </RuleResponse>