擷取核心檔案保護功能對應的規則列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-sas:ListFileProtectRule |
list |
*ClientFileProtect
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| PageSize |
integer |
否 |
指定分頁查詢時,每頁顯示的資料最大條數。 |
10 |
| CurrentPage |
integer |
否 |
分頁查詢時,當前頁的頁碼。 |
1 |
| RuleName |
string |
否 |
配置規則名稱。 |
test-rule-1 |
| AlertLevel |
integer |
否 |
警示通知層級。取值如下:
|
0 |
| RuleAction |
string |
否 |
規則在用戶端的表現形式。取值如下:
|
pass |
| Platform |
string |
否 |
作業系統類型。取值:
|
linux |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
本次調用請求的 ID,是由阿里雲為該請求產生的唯一識別碼,可用於排查和定位問題。 |
FBBEB173-1F43-505F-A876-C03ECDF6CE4C |
| PageInfo |
object |
分頁查詢時的頁面資訊。 |
|
| CurrentPage |
integer |
分頁查詢時,當前頁的頁碼。 |
1 |
| PageSize |
integer |
分頁查詢時,顯示的每頁資料的最大條數。 |
20 |
| TotalCount |
integer |
查詢到的資料總條數。 |
253 |
| FileProtectList |
array<object> |
返回的資料列表。 |
|
|
object |
返回的資料列表。 |
||
| Status |
integer |
規則對應的狀態。取值如下:
|
1 |
| AlertLevel |
string |
警示通知層級。取值如下:
|
0 |
| SwitchId |
string |
規則對應的開關 ID。 |
FILE_PROTECT_RULE_SWITCH_TYPE_1693474122927 |
| Id |
integer |
規則 ID。 |
1412511 |
| FileOps |
array |
對檔案進行的巨集指令清單。 |
|
|
string |
對檔案進行的操作。取值如下:
|
READ |
|
| Action |
string |
規則在用戶端的表現形式。取值如下:
|
pass |
| FilePaths |
array |
監控的檔案路徑列表,支援通配。 |
|
|
string |
監控的檔案路徑。 |
/usr/* |
|
| ProcPaths |
array |
對進程監聽的路徑列表,支援通配。 |
|
|
string |
對進程監聽的路徑列表。 |
/usr/local/* |
|
| RuleName |
string |
規則名稱。 |
test11 |
| GmtCreate |
integer |
建立時間。 |
1682304179000 |
| GmtModified |
integer |
最新一次修改時間。 |
1682304179000 |
| EffectInstanceCount |
integer |
受影響資產總數。 |
12 |
| Platform |
string |
作業系統類型。取值:
|
linux |
樣本
正常返回樣本
JSON格式
{
"RequestId": "FBBEB173-1F43-505F-A876-C03ECDF6CE4C",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 253
},
"FileProtectList": [
{
"Status": 1,
"AlertLevel": "0",
"SwitchId": "FILE_PROTECT_RULE_SWITCH_TYPE_1693474122927",
"Id": 1412511,
"FileOps": [
"READ"
],
"Action": "pass",
"FilePaths": [
"/usr/*"
],
"ProcPaths": [
"/usr/local/*"
],
"RuleName": "test11",
"GmtCreate": 1682304179000,
"GmtModified": 1682304179000,
"EffectInstanceCount": 12,
"Platform": "linux"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | 服務故障,請稍後重試! |
| 403 | NoPermission | caller has no permission | 當前操作未被授權,請聯絡主帳號在RAM控制台進行授權後再執行操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。