[APIドメイン]
| リージョン | ドメイン |
|---|---|
| 韓国(パンギョ)リージョン | https://kr1-secmon.api.nhncloudservice.com |
| 韓国(ピョンチョン)リージョン | https://kr2-secmon.api.nhncloudservice.com |
| 韓国(光州)リージョン | https://kr3-secmon.api.nhncloudservice.com |
[注意] トークンを発行するユーザーは、リクエスト対象のAppKeyが属するプロジェクトのSecurity Monitoring Admin権限を持っている必要があります。
[URI]
| メソッド | URI |
|---|---|
| GET | /v1.0/appkeys/{appKey}/not-applied-vms |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[例]
curl -X GET "https://kr1-secmon.api.nhncloudservice.com/v1.0/appkeys/{appKey}/not-applied-vms" \
-H "Content-Type: application/json" \
-H "x-nhn-authorization: {access_token}"
[レスポンス本文]
{
"header": {
"resultCode": 1,
"resultMessage": "Request success",
"isSuccessful": true
},
"results": [
{
"lbIp": "133.186.111.22",
"vm": [
{
"vmId": "9d5cbf7b-4826-4e83-b13a-ef608bacf0e9",
"fixedIp": "192.168.0.9",
"vmOs": "CentOS 7.8",
"vmIp": "",
"serviceStatus": "未申請",
"vmName": "vm1"
}
],
"fixedIp": "192.168.0.18",
"lbId": "8b031032-e0a0-4b36-8a98-642b6d3ca07b",
"lbName": "lb1",
"serviceStatus": "未申請"
},
{
"vmId": "2300727f-3771-4bdc-bba1-35ca12cb8635",
"fixedIp": "192.168.0.4",
"vmOs": "CentOS 7.8",
"vmIp": "133.186.112.33",
"serviceStatus": "未申請",
"vmName": "vm2"
}
]
}
[フィールド]
| フィールド | タイプ | 説明 |
|---|---|---|
| header | Object | ヘッダ領域 |
| header.isSuccessful | Boolean | 成否 |
| header.resultCode | Integer | 結果コード |
| header.resultMessage | String | 結果メッセージ |
| results | List | 監視未申請状態のvmリスト |
| results[0].lbIp | String | Load BalancerのFloating IP |
| results[0].vm | List | Load Balancerに接続されたVMリスト |
| results[0].vm[0].vmId | String | VMの識別子ID |
| results[0].vm[0].fixedIp | String | VMのFixed IP |
| results[0].vm[0].vmOs | String | VMのOS情報 |
| results[0].vm[0].vmIp | String | VMのFloating IP |
| results[0].vm[0].serviceStatus | String | VMのセキュリティ監視申請状態 |
| results[0].vm[0].vmName | String | VMの名前 |
| results[0].fixedIp | String | Load BalancerのFixed IP |
| results[0].lbId | String | Load Balancerの識別子ID |
| results[0].lbName | String | Load Balancerの名前 |
| results[0].serviceStatus | String | Load Balancerのセキュリティ監視申請状態 |
| results[1].vmId | String | VMの識別子ID |
| results[1].fixedIp | String | VMのFixed IP |
| results[1].vmOs | String | VMのOS情報 |
| results[1].vmIp | String | VMのFloating IP |
| results[1].serviceStatus | String | VMのセキュリティ監視申請状態 |
| results[1].vmName | String | VMの名前 |
[URI]
| メソッド | URI |
|---|---|
| GET | /v1.0/appkeys/{appKey}/applied-vms |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[例]
curl -X GET "https://kr1-secmon.api.nhncloudservice.com/v1.0/appkeys/{appKey}/applied-vms" \
-H "Content-Type: application/json" \
-H "x-nhn-authorization: {access_token}"
[レスポンス本文]
{
"header": {
"resultCode": 1,
"resultMessage": "Request success",
"isSuccessful": true
},
"results": [
{
"lbIp": "133.186.111.22",
"vm": [
{
"vmId": "9d5cbf7b-4826-4e83-b13a-ef608bacf0e9",
"fixedIp": "192.168.0.9",
"vmOs": "CentOS 7.8",
"vmIp": "",
"serviceStatus": "受付待機",
"vmName": "vm1"
}
],
"fixedIp": "192.168.0.18",
"lbId": "8b031032-e0a0-4b36-8a98-642b6d3ca07b",
"lbName": "lb1",
"serviceStatus": "受付待ち"
},
{
"vmId": "2300727f-3771-4bdc-bba1-35ca12cb8635",
"fixedIp": "192.168.0.4",
"vmOs": "CentOS 7.8",
"vmIp": "133.186.112.33",
"serviceStatus": "進行中",
"vmName": "vm2"
}
]
}
[フィールド]
| フィールド | タイプ | 説明 |
|---|---|---|
| header | Object | ヘッダ領域 |
| header.isSuccessful | Boolean | 成否 |
| header.resultCode | Integer | 結果コード |
| header.resultMessage | String | 結果メッセージ |
| results | List | 監視申請された状態のvmリスト |
| results[0].lbIp | String | Load BalancerのFloating IP |
| results[0].vm | List | Load Balancerに接続されたVMリスト |
| results[0].vm[0].vmId | String | VMの識別子ID |
| results[0].vm[0].fixedIp | String | VMのFixed IP |
| results[0].vm[0].vmOs | String | VMのOS情報 |
| results[0].vm[0].vmIp | String | VMのFloating IP |
| results[0].vm[0].serviceStatus | String | VMのセキュリティ監視申請状態 |
| results[0].vm[0].vmName | String | VMの名前 |
| results[0].fixedIp | String | Load BalancerのFixed IP |
| results[0].lbId | String | Load Balancerの識別子ID |
| results[0].lbName | String | Load Balancerの名前 |
| results[0].serviceStatus | String | Load Balancerのセキュリティ監視申請状態 |
| results[1].vmId | String | VMの識別子ID |
| results[1].fixedIp | String | VMのFixed IP |
| results[1].vmOs | String | VMのOS情報 |
| results[1].vmIp | String | VMのFloating IP |
| results[1].serviceStatus | String | VMのセキュリティ監視申請状態 |
| results[1].vmName | String | VMの名前 |
[URI]
| メソッド | URI |
|---|---|
| POST | /v1.0/appkeys/{appKey}/vm |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[リクエスト本文]
{
"vmList": [
{
"lbIp": "133.186.154.14",
"vm": [
{
"vmId": "9d5cbf7b-4826-4e83-b13a-ef608bacf0e9",
"fixedIp": "192.168.0.9",
"vmOs": "CentOS 7.8",
"vmIp": "",
"vmName": "mss-test"
}
],
"fixedIp": "192.168.0.18",
"lbId": "8b031032-e0a0-4b36-8a98-642b6d3ca07b",
"lbName": "lb3"
},
{
"vmId": "1dc707a8-a5be-431e-aca1-77c60af1fe9a",
"fixedIp": "192.168.0.2",
"vmOs": "CentOS 6.10",
"vmIp": "133.186.154.126",
"vmName": "booting-test"
}
]
}
[フィールド]
| 名前 | タイプ | 必須かどうか | デフォルト値 | 有効範囲 | 説明 |
|---|---|---|---|---|---|
| vmList | List | 必須 | 監視申請vmリスト | ||
| vmList[0].lbIp | String | 必須 | Load BalancerのFloating IP | ||
| vmList[0].vm | List | 必須 | Load Balancerに接続されたVMリスト | ||
| vmList[0].vm[0].vmId | String | 必須 | VMの識別子ID | ||
| vmList[0].vm[0].fixedIp | String | 必須 | VMのFixed IP | ||
| vmList[0].vm[0].vmOs | String | 必須 | VMのOS情報 | ||
| vmList[0].vm[0].vmIp | String | 必須 | VMのFloating IP | ||
| vmList[0].vm[0].vmName | String | 必須 | VMの名前 | ||
| vmList[0].fixedIp | String | 必須 | Load BalancerのFixed IP | ||
| vmList[0].lbId | String | 必須 | Load Balancerの識別子ID | ||
| vmList[0].lbName | String | 必須 | Load Balancerの名前 | ||
| vmList[1].vmId | String | 必須 | VMの識別子ID | ||
| vmList[1].fixedIp | String | 必須 | VMのFixed IP | ||
| vmList[1].vmOs | String | 必須 | VMのOS情報 | ||
| vmList[1].vmIp | String | 必須 | VMのFloating IP | ||
| vmList[1].vmName | String | 必須 | VMの名前 |
[レスポンス本文]
{
"header": {
"resultCode": 1,
"resultMessage": "Request success",
"isSuccessful": true
}
}
[URI]
| メソッド | URI |
|---|---|
| DELETE | /v1.0/appkeys/{appKey}/vm |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[例]
curl -X DELETE "https://kr1-secmon.api.nhncloudservice.com/v1.0/appkeys/{appKey}/vm?vmId=8b031032-e0a0-4b36-8a98-642b6d3ca07b,1dc707a8-a5be-431e-aca1-77c60af1fe9a" \
-H "Content-Type: application/json" \
-H "x-nhn-authorization: {access_token}"
[レスポンス本文]
{
"header": {
"resultCode": 1,
"resultMessage": "Request success",
"isSuccessful": true
}
}
[URI]
| メソッド | URI |
|---|---|
| GET | /v1.0/appkeys/{appKey}/history |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[パラメータ]
| 名前 | タイプ | 必須かどうか | デフォルト値 | 有効範囲 | 説明 |
|---|---|---|---|---|---|
| page | Integer | 任意 | 1 | 照会するページ |
[例]
curl -X GET "https://kr1-secmon.api.nhncloudservice.com/v1.0/appkeys/{appKey}/history?page=1" \
-H "Content-Type: application/json" \
-H "x-nhn-authorization: {access_token}"
[レスポンス本文]
{
"count": 20,
"header": {
"resultCode": 1,
"resultMessage": "Request success",
"isSuccessful": true
},
"previous": null,
"results": [
{
"status": "受付",
"reason": "ユーザー申請",
"contents": "セキュリティ監視の追加作業中です。"、
"vmId": "vm1 | vm2",
"meter": "NO",
"type": "新規",
"regDate": "2021-07-09T15:34:29+09:00",
"historyId": 4539
},
...
,
{
"status": "受付",
"reason": "ユーザー申請",
"contents": "セキュリティ監視の追加作業中です。"、
"vmId": "vm3",
"meter": "NO",
"type": "新規",
"regDate": "2021-07-09T15:00:38+09:00",
"historyId": 4530
}
],
"next": "https://kr1-secmon.api.nhncloudservice.com/appkeys/{appKey}/history?page=2"
}
[フィールド]
| フィールド | タイプ | 説明 |
|---|---|---|
| header | Object | ヘッダ領域 |
| header.isSuccessful | Boolean | 成否 |
| header.resultCode | Integer | 結果コード |
| header.resultMessage | String | 結果メッセージ |
| results | List | 監視状態変更履歴リスト |
| results[0].status | String | 監視状態 |
| results[0].reason | String | 監視変更理由 |
| results[0].contents | String | 変更内容 |
| results[0].vmId | String | 変更対象 |
| results[0].meter | String | 課金進行 |
| results[0].type | String | 変更タイプ |
| results[0].regDate | Datetime | 履歴登録日時 |
| results[0].historyId | Integer | 履歴識別子 |
| count | Integer | 履歴総数 |
| previous | String | 以前ページリンクURL |
| next | String | 次のページリンクURL |
[URI]
| メソッド | URI |
|---|---|
| GET | /v1.0/appkeys/{appKey}/tickets |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[例]
curl -X GET "https://kr1-secmon.api.nhncloudservice.com/v1.0/appkeys/{appKey}/tickets?page=1" \
-H "Content-Type: application/json" \
-H "x-nhn-authorization: {access_token}"
[パラメータ]
| 名前 | タイプ | 必須かどうか | デフォルト値 | 有効範囲 | 説明 |
|---|---|---|---|---|---|
| page | Integer | 任意 | 1 | 照会するページ | |
| detectDateOrder | String | 任意 | asc | asc/desc | detectDate 基準ソート方向 |
[レスポンス本文]
{
"count": 2,
"header": {
"resultCode": 1,
"resultMessage": "Request success",
"isSuccessful": true
},
"previous": null,
"results": [
{
"detectDate": "2020-02-03T16:49:00+09:00",
"isAttack": "正常検知"、
"ticketStatus": "処理完了",
"attackType": "ネットワーク侵害"、
"srcIp": "120.24.86.122",
"ticketId": "98425190186514912",
"dstIp": "103.243.201.11",
"ticketType": "侵害インシデント"、
"ticketName": "K047_NHN_WebShell_Alert"
},
{
"detectDate": "2016-04-21T01:09:00+09:00",
"isAttack": "正常検知"、
"ticketStatus": "処理完了",
"attackType": "Brute Force",
"srcIp": "209.126.122.16",
"ticketId": "96147997888715867",
"dstIp": "103.194.108.15",
"ticketType": "侵入検知",
"ticketName": "パンギョIDC未登録(103.194.108.15) Bruteforce_Inbound"
}
],
"next": null
}
[フィールド]
| フィールド | タイプ | 説明 |
|---|---|---|
| header | Object | ヘッダ領域 |
| header.isSuccessful | Boolean | 成否 |
| header.resultCode | Integer | 結果コード |
| header.resultMessage | String | 結果メッセージ |
| results | List | 対応状況リスト |
| results[0].detectDate | DateTime | 検知日時 |
| results[0].isAttack | String | true alerm/false alerm |
| results[0].ticketStatus | String | 処理状態 |
| results[0].attackType | String | 攻撃タイプ |
| results[0].srcIp | String | 送信元IP |
| results[0].ticketId | String | 対応チケット識別子 |
| results[0].dstIp | String | 到着地IP |
| results[0].ticketType | String | チケットタイプ |
| results[0].tickentName | String | チケット |
| count | Integer | 対応リスト総数 |
| previous | String | 以前ページリンクURL |
| next | String | 次のページリンクURL |
[URI]
| メソッド | URI |
|---|---|
| GET | /v1.0/appkeys/{appKey}/tickets/{ticketId} |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[例]
curl -X GET "https://kr1-secmon.api.nhncloudservice.com/v1.0/appkeys/{appKey}/tickets/{ticketId}" \
-H "Content-Type: application/json" \
-H "x-nhn-authorization: {access_token}"
[レスポンス本文]
{
"header": {
"resultCode": 1,
"resultMessage": "Service Result",
"isSuccessful": true
},
"data": {
"result": [
"TESTチケット処理完了",
"<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"__se_tbl\" style=\"width:1400px\">\r\n\t<tbody>\r\n\t\t<tr>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">名前</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">終了時刻</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">危険度</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">攻撃元アドレス</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">攻撃元ポート</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">攻撃元国</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">宛先アドレス</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">宛先ポート</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">宛先国</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">検知方向</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">検知パターン</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#eaeaea; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">攻撃回数</p>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">UDS_Appkey_PIOLINK</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">2018-08-21 12:07:59</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">Low</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">211.58.124.208</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">50741</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">Korea, Republic of</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">133.186.242.15</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">80</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">Japan</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">Inbound</p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\"> </p>\r\n\t\t\t</td>\r\n\t\t\t<td style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">1</p>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td colspan=\"12\" style=\"background-color:#ffffff; height:18px\">\r\n\t\t\t<p style=\"text-align:center\">Total : 1</p>\r\n\t\t\t</td>\r\n\t\t</tr>\r\n\t</tbody>\r\n</table>\r\n"
"<p>正常検知深層分析TEST</p>\r\n"
],
"desc": [
"",
""
]
}
}
[フィールド]
| フィールド | タイプ | 説明 |
|---|---|---|
| header | Object | ヘッダ領域 |
| header.isSuccessful | Boolean | 成否 |
| header.resultCode | Integer | 結果コード |
| header.resultMessage | String | 結果メッセージ |
| results | List | 対応状況詳細情報リスト |
| results[0] | String | 攻撃要約 |
| results[1] | String | 分析結果HTMLデータ |
| results[2] | String | 深化分析 |
| desc | List | チケット 詳細情報リスト |
| desc[0] | String | チケット名 |
| desc[1] | String | チケットの説明 |
[URI]
| メソッド | URI |
|---|---|
| GET | /v1.0/appkeys/{appKey}/events |
[リクエストヘッダ]
| 名前 | 形式 | 必須 | 説明 |
|---|---|---|---|
| x-nhn-authorization | String | O | 認証トークン |
[例]
curl -X GET "https://kr1-secmon.api.nhncloudservice.com/v1.0/appkeys/{appKey}/events?page=1&startDate=2021-07-01T20:00:00&endDate=2021-07-13T20:23:59" \
-H "Content-Type: application/json" \
-H "x-nhn-authorization: {access_token}"
[パラメータ]
| 名前 | タイプ | 必須かどうか | デフォルト値 | 有効範囲 | 説明 |
|---|---|---|---|---|---|
| page | Integer | 任意 | 1 | 照会するページ | |
| startDate | Datetime | 任意 | 1日前のDatetime | 照会開始時間 | |
| endDate | Datetime | 任意 | 現在Datetime | 照会終了時間 |
{
"count": 1,
"header": {
"resultCode": 1,
"resultMessage": "Request success",
"isSuccessful": true
},
"previous": null,
"results": [
{
"detectTime": "2021-07-11T23:36:13+09:00",
"severityLevel": "Low",
"dstIp": "133.186.143.56",
"dstCountryCode": "JP",
"attackName": "UDS_439_phpmyadmin_access",
"srcIp": "89.248.168.171",
"dstPort": 80,
"srcPort": 33420,
"inOut": "Inbound"
}
],
"next": null
}
[フィールド]
| フィールド | タイプ | 説明 |
|---|---|---|
| header | Object | ヘッダ領域 |
| header.isSuccessful | Boolean | 成否 |
| header.resultCode | Integer | 結果コード |
| header.resultMessage | String | 結果メッセージ |
| results | List | 詳細イベント状況リスト |
| results[0].detectDate | DateTime | 検知日時 |
| results[0].severityLevel | String | イベントの危険度 |
| results[0].dstIp | String | 宛先IP |
| results[0].dstCountryCode | String | 宛先国コード |
| results[0].attackName | String | イベント名 |
| results[0].srcIp | String | 送信元IP |
| results[0].dstPort | Integer | 宛先ポート |
| results[0].srcPort | Integer | 送信元ポート |
| results[0].inOut | String | 通信方向 |
| count | Integer | 対応リスト総数 |
| previous | String | 以前ページリンクURL |
| next | String | 次のページリンクURL |