取得容器檔案防禦規則。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-sas:GetSasContainerWebDefenseRule |
get |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RuleId |
integer |
否 |
規則 ID。 說明
您可以呼叫 ListSasContainerWebDefenseRule 介面取得該參數。 |
1600009 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
本次呼叫請求的 ID,是由阿里雲為該請求生成的唯一識別碼,可用於排查和定位問題。 |
BA674E4**62FB5133 |
| ContainerWebDefenseRule |
object |
容器檔案防禦規則詳情。 |
|
| RuleStatus |
integer |
規則狀態。取值說明如下:
|
1 |
| AliUid |
integer |
使用者 ID。 |
1000**0002 |
| AppTotalCount |
integer |
應用總數。 |
1 |
| Id |
integer |
規則 ID。 |
100 |
| RuleName |
string |
規則名稱。 |
防篡改规则 |
| GmtCreate |
integer |
建立規則的時間戳記。單位:毫秒。 |
1709173360000 |
| GmtModified |
integer |
修改規則的時間戳記。單位:毫秒。 |
1655432638000 |
| PathConfDTOList |
array<object> |
設定的檔案路徑清單。 |
|
|
object |
|||
| ExcludeFile |
string |
排除的檔案。 |
file1 |
| GuardType |
integer |
防護模式 。
|
0 |
| ExcludeFilePath |
string |
排除檔案路徑。 |
/test2/sub1,/test2/sub2 |
| IncludeFile |
string |
包含的檔案。 |
webapp |
| DefensePath |
string |
防禦路徑。 |
/test11* |
| ExcludeFileType |
string |
排除檔案類型。 |
doc |
| DefenseMode |
string |
執行動作。
|
audit |
| BackupPath |
string |
備份路徑。 |
/usr/path/ |
| IncludeFileType |
string |
包含檔案的類型。 |
doc |
| ProcessPathList |
array |
白名單進程列表。 |
|
|
string |
白名單進程。 |
/bin/proc1a,/bin/proc1b |
樣本
正常返回樣本
JSON格式
{
"RequestId": "BA674E4**62FB5133",
"ContainerWebDefenseRule": {
"RuleStatus": 1,
"AliUid": 0,
"AppTotalCount": 1,
"Id": 100,
"RuleName": "防篡改规则",
"GmtCreate": 1709173360000,
"GmtModified": 1655432638000,
"PathConfDTOList": [
{
"ExcludeFile": "file1",
"GuardType": 0,
"ExcludeFilePath": "/test2/sub1,/test2/sub2",
"IncludeFile": "webapp",
"DefensePath": "/test11*",
"ExcludeFileType": "doc",
"DefenseMode": "audit",
"BackupPath": "/usr/path/",
"IncludeFileType": "doc",
"ProcessPathList": [
"/bin/proc1a,/bin/proc1b"
]
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。