擷取檔案防護規則列表
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PageSize |
integer |
否 |
分頁查詢時,每頁顯示的資料的最大條數。 |
20 |
| CurrentPage |
integer |
否 |
分頁查詢時,當前頁的頁碼。 |
1 |
| RuleName |
string |
否 |
規則名稱。 |
tetsRule |
| AlertLevel |
integer |
否 |
警示通知層級。取值如下:
|
0 |
| RuleAction |
string |
否 |
規則動作,取值:
|
pass |
| Platform |
string |
否 |
作業系統類型。取值:
|
linux |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
本次調用請求的 ID,是由阿里雲為該請求產生的唯一識別碼,可用於排查和定位問題。 |
BA674E4B-00CF-5DEA-8B92-360862FB**** |
| PageInfo |
object |
分頁查詢時的頁面資訊。 |
|
| CurrentPage |
integer |
分頁查詢時,當前頁的頁碼。 |
1 |
| PageSize |
integer |
分頁查詢時,顯示的每頁資料的最大條數。 |
10 |
| TotalCount |
integer |
資料的總條數。 |
45 |
| FileProtectList |
array<object> |
返回的資料列表。 |
|
|
object |
返回的資料列表。 |
||
| Status |
integer |
規則對應的狀態。取值如下:
|
1 |
| RuleAction |
string |
規則在用戶端的表現形式。取值如下:
|
pass |
| Platform |
string |
作業系統類型。取值:
|
linux |
| EffectInstanceCount |
integer |
受影響資產總數。 |
12 |
| GmtModified |
integer |
最新一次修改時間。 |
1682304179000 |
| SwitchId |
string |
規則對應的開關 ID。 |
FILE_PROTECT_RULE_SWITCH_TYPE_****** |
| GmtCreate |
integer |
建立時間。 |
1682304179000 |
| FilePaths |
array |
監控的檔案路徑。 |
|
|
string |
監控的檔案路徑。 |
/usr/* |
|
| FileOps |
array |
對檔案進行的操作。 |
|
|
string |
對檔案進行的操作。取值如下:
|
READ |
|
| FileTypes |
array |
防護檔案類型列表。 |
|
|
string |
防護檔案類型列表。 |
txt |
|
| ProcPaths |
array |
對進程監聽的路徑列表。 |
|
|
string |
對進程監聽的路徑列表。 |
/usr/local/* |
|
| AlertLevel |
integer |
警示通知層級。取值如下:
|
0 |
| Id |
integer |
規則 ID。 |
1412511 |
| ExcludeUsers |
array |
排除使用者列表。 |
|
|
string |
排除使用者列表。 |
root |
|
| RuleName |
string |
規則名稱。 |
test11 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "BA674E4B-00CF-5DEA-8B92-360862FB****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 10,
"TotalCount": 45
},
"FileProtectList": [
{
"Status": 1,
"RuleAction": "pass",
"Platform": "linux",
"EffectInstanceCount": 12,
"GmtModified": 1682304179000,
"SwitchId": "FILE_PROTECT_RULE_SWITCH_TYPE_******",
"GmtCreate": 1682304179000,
"FilePaths": [
"/usr/*"
],
"FileOps": [
"READ"
],
"FileTypes": [
"txt"
],
"ProcPaths": [
"/usr/local/*"
],
"AlertLevel": 0,
"Id": 1412511,
"ExcludeUsers": [
"root"
],
"RuleName": "test11"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IllegalParameter | Illegal parameter, please check the param. | 參數錯誤,請檢查輸入參數。 |
| 500 | ServerError | ServerError | 服務故障,請稍後重試! |
| 403 | NoPermission | caller has no permission | 當前操作未被授權,請聯絡主帳號在RAM控制台進行授權後再執行操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。