Modifies a custom rule for malicious behavior defense.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyClientUserDefineRule |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the custom rule. Note
Call the ListClientUserDefineRules operation to obtain this parameter. |
210**** |
| Md5List |
string |
No |
The list of process hashes. |
aa5ee3ed4363c9d195a591a70281****,3e522d6f3bf5cf88bb77e9ff3d13**** |
| ActionType |
integer |
Yes |
The action type. Valid values:
|
0 |
| ProcPath |
string |
No |
The process path. |
/root/1111/**** |
| Cmdline |
string |
No |
The command line. |
/usr/sbin/s**** |
| Type |
integer |
No |
The rule type. Valid values:
|
2 |
| Platform |
string |
No |
The operating system type. Valid values:
|
linux |
| IP |
string |
No |
The IP address. |
1.1.XX.XX |
| Port |
integer |
No |
The port number. This parameter is deprecated. |
22 |
| FilePath |
string |
No |
The file path. |
/etc/pam.d/su**** |
| RegistryKey |
string |
No |
The registry key. |
HKEY_DYN_**** |
| RegistryContent |
string |
No |
The registry value. |
SECOH-QAD**** |
| NewFilePath |
string |
No |
The new file path for file rename. |
/etc/pam**** |
| ParentProcPath |
string |
No |
The parent process path. |
C:/Windows/System32/cmd**** |
| ParentCmdline |
string |
No |
The parent process command line. |
/usr/sbin/s**** |
| Name |
string |
No |
The rule name. |
规则**** |
| PortStr |
string |
No |
The port number. Valid values: 1 to 65535. |
80 |
| Domain |
string |
No |
The domain name. |
example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
5cbb3c39-88ec-429a-be26-5d0f62cc**** |
Examples
Success response
JSON format
{
"RequestId": "5cbb3c39-88ec-429a-be26-5d0f62cc****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | UserDefineRuleFilePathTooLong | User define rule file path too long. | |
| 400 | InvalidFilePath | Invalid FilePath value. | |
| 400 | InvalidPort | Invalid PortStr value. | |
| 400 | InvalidIP | Invalid IP value. | |
| 400 | UserDefineRuleCmdlineTooLong | User define rule command line too long. | |
| 400 | InvalidCmdline | Command line is invalid. | |
| 400 | InvalidUserDefineRuleProcPath | User define rule process path is invalid. | |
| 400 | UserDefineRuleProcPathMustContainsLetter | User define rule process path must contain letter. | |
| 400 | InvalidProcPath | Process path is invalid. | |
| 400 | UserDefineRuleMd5TooMany | Too many user define rule md5s. | |
| 400 | InvalidUserDefineRuleMd5List | Invalid Md5List value. | |
| 400 | InvalidUserDefineRuleType | Invalid Type value. | |
| 400 | UserDefineRuleNameTooLong | User define rule name too long. | |
| 400 | InvalidUserDefineRuleName | Invalid Name value. | |
| 400 | InvalidPlatform | Invalid Platform value. | |
| 400 | InvalidUserDefineRuleActionType | Invalid ActionType value. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.