VPC環境で利用できます。
作成された例外ルールリストのうち、目的の項目を検索します。
リクエスト
リクエスト形式を説明します。リクエスト形式は次の通りです。
メソッド | URI |
---|---|
POST | /exception-rules |
リクエストヘッダ
Webshell Behavior Detector APIで共通して使用されるヘッダの詳細は、Webshell Behavior Detectorの共通ヘッダをご参照ください。
リクエストボディ
リクエストボディの説明は次の通りです。
フィールド | タイプ | 必須の有無 | 説明 |
---|---|---|---|
createdTimeFrom |
Integer | Optional | 例外ルール作成日時の検索開始日時(Timestamp) |
createdTimeTo |
Integer | Optional | 例外ルール作成日時の検索終了日時(Timestamp) |
deletedTimeFrom |
Integer | Optional | 例外ルール削除日時の検索開始日時(Timestamp) |
deletedTimeTo |
Integer | Optional | 例外ルール削除日時の検索終了日時(Timestamp) |
exceptTarget |
String | Optional | 例外対象のインスタンス ID |
exceptedRuleName |
String | Optional | 例外ルール名 |
executor |
String | Optional | プロセスの実行アカウント |
executorOfParent |
String | Optional | 親プロセスの実行アカウント |
pageIndex |
Integer | Required | ページ番号 |
pageSize |
Integer | Required | ページ表示数 |
processArg |
String | Optional | プロセス引数 |
processArgOfParent |
String | Optional | 親プロセス引数 |
processName |
String | Optional | プロセス名 |
processNameOfParent |
String | Optional | 親プロセス名 |
リクエスト例
リクエストのサンプルコードは次の通りです。
curl --location --request POST 'https://wbd.apigw.ntruss.com/api/v1/exception-rules' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'X-NCP-USE_PLATFORM_TYPE: VPC' \
--data '{
"createdTimeFrom": 1723006826000,
"createdTimeTo": 1723008146000,
"pageIndex": 0,
"pageSize": 1
}'
レスポンス
レスポンス形式を説明します。
レスポンスボディ
レスポンスボディの説明は次の通りです。
フィールド | タイプ | 必須の有無 | 説明 |
---|---|---|---|
success |
Boolean | - | リクエスト処理の有無 |
code |
Integer | - | レスポンスコード |
message |
String | - | レスポンスメッセージ |
result |
Object | - | レスポンス結果 |
content |
Array | - | 例外ルールリスト |
totalCount |
Integer | - | レスポンス結果数 |
pageSize |
Integer | - | ページ表示数 |
pageIndex |
Integer | - | ページ番号 |
totalPages |
Integer | - | ページの総数 |
content
content
の説明は次の通りです。
フィールド | タイプ | 必須の有無 | 説明 |
---|---|---|---|
disabled |
Boolean | - | 例外ルールは無効化かどうか
|
actionName |
String | - | サブアカウントのアクション名
|
permission |
Enum | - | サブアカウントの権限
|
exceptedRuleId |
String | - | 例外ルール ID |
exceptedRuleName |
String | - | 例外ルール名 |
exceptTargetType |
String | - | 例外対象のタイプ
|
exceptTarget |
String | - | 例外対象のインスタンス ID |
exceptTargetName |
String | - | 例外対象の名前 |
processName |
String | - | 比較対象のプロセス名 |
processNameCondition |
String | - | プロセス名の比較条件
|
processArg |
String | - | 比較対象のプロセス引数 |
processArgCondition |
String | - | プロセス引数の比較条件
|
executor |
String | - | 比較対象の実行アカウント |
executorCondition |
String | - | 実行アカウントの比較条件
|
processNameOfParent |
String | - | 比較対象の親プロセス名 |
processNameOfParentCondition |
String | - | 親プロセス名の比較条件
|
processArgOfParent |
String | - | 比較対象の親プロセス引数 |
processArgOfParentCondition |
String | - | 親プロセス引数の比較条件
|
executorOfParent |
String | - | 比較対象親プロセスの実行アカウント |
executorOfParentCondition |
String | - | 親プロセス実行アカウントの比較条件
|
createdTime |
Integer | - | 例外ルールの作成日時(Timestamp) |
deletedTime |
Integer | - | 例外ルールの削除日時(Timestamp) |
isDeleted |
Boolean | - | 例外ルールは削除されたかどうか
|
memo |
String | - | メモ |
memberNo |
Integer | - | VM使用会員番号 |
groupIsDeleted |
Boolean | - | サーバグループは削除されたかどうか
|
レスポンスステータスコード
Webshell Behavior Detector APIで共通して使用されるレスポンスステータスコードの詳細は、Webshell Behavior Detectorの共通レスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
{
"success": true,
"code": 0,
"message": "success",
"result": {
"content": [
{
"disabled": false,
"actionName": null,
"permission": null,
"exceptedRuleId": "2024080714082200000007",
"exceptedRuleName": "excep-rule-4",
"exceptTargetType": "server",
"exceptTarget": "{target-instance-id}",
"exceptTargetName": "{target-name}",
"processName": "{process}",
"processNameCondition": "START",
"processArg": "{process-and-arguments}",
"processArgCondition": "EQUAL",
"executor": "root",
"executorCondition": "EQUAL",
"processNameOfParent": "{process}",
"processNameOfParentCondition": "EQUAL",
"processArgOfParent": "{process-and-arguments}",
"processArgOfParentCondition": "EQUAL",
"executorOfParent": "root",
"executorOfParentCondition": "EQUAL",
"createdTime": 1723007302525,
"deletedTime": null,
"isDeleted": false,
"memo": null,
"memberNo": 26***90,
"groupIsDeleted": null
}
],
"totalCount": 4,
"pageSize": 1,
"pageIndex": 0,
"totalPages": 4
}
}