Modifies a custom defense rule.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ModifyClientUserDefineRule | update | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | Yes | The ID of the rule. Note
You can call the ListClientUserDefineRules operation to query the IDs of rules.
| 210**** |
Md5List | string | No | The hash values of processes. | aa5ee3ed4363c9d195a591a70281****,3e522d6f3bf5cf88bb77e9ff3d13**** |
ActionType | integer | Yes | The action of the rule. Valid values:
| 0 |
ProcPath | string | No | The path to the process. | /root/1111/**** |
Cmdline | string | No | The command line. | /usr/sbin/s**** |
Type | integer | No | The type of the rule. Valid values:
| 2 |
Platform | string | No | The type of the operating system. 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 after the file is renamed. | /etc/pam**** |
ParentProcPath | string | No | The path to the parent process. | C:/Windows/System32/cmd**** |
ParentCmdline | string | No | The parent command line. | /usr/sbin/s**** |
Name | string | No | The name of the rule. | Rule\*\*\*\* |
PortStr | string | No | The port number. Valid values: 1 to 65535. | 80 |
Domain | string | No | The domain name. | example.com |
Response parameters
Examples
Sample success responses
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. | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-03-13 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-10-20 | The Error code has changed | View Change Details |
2023-09-07 | The Error code has changed | View Change Details |