All Products
Search
Document Center

Security Center:ModifyClientUserDefineRule

Last Updated:Nov 14, 2024

Modifies a custom defense rule.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ModifyClientUserDefineRuleupdate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
IdlongYes

The ID of the rule.

Note You can call the ListClientUserDefineRules operation to query the IDs of rules.
210****
Md5ListstringNo

The hash values of processes.

aa5ee3ed4363c9d195a591a70281****,3e522d6f3bf5cf88bb77e9ff3d13****
ActionTypeintegerYes

The action of the rule. Valid values:

  • 0: allow
  • 1: block
0
ProcPathstringNo

The path to the process.

/root/1111/****
CmdlinestringNo

The command line.

/usr/sbin/s****
TypeintegerNo

The type of the rule. Valid values:

  • 1: Process hash
  • 2: Command line
  • 3: Process Network
  • 4: File Read and Write
  • 5: Operation on Registry
  • 6: Dynamic-link Library Loading
  • 7: File Renaming
2
PlatformstringNo

The type of the operating system. Valid values:

  • windows: Windows
  • linux: Linux
  • all: all types
linux
IPstringNo

The IP address.

1.1.XX.XX
PortintegerNo

The port number. This parameter is deprecated.

22
FilePathstringNo

The file path.

/etc/pam.d/su****
RegistryKeystringNo

The registry key.

HKEY_DYN_****
RegistryContentstringNo

The registry value.

SECOH-QAD****
NewFilePathstringNo

The new file path after the file is renamed.

/etc/pam****
ParentProcPathstringNo

The path to the parent process.

C:/Windows/System32/cmd****
ParentCmdlinestringNo

The parent command line.

/usr/sbin/s****
NamestringNo

The name of the rule.

Rule\*\*\*\*
PortStrstringNo

The port number. Valid values: 1 to 65535.

80
DomainstringNo

The domain name.

example.com

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

5cbb3c39-88ec-429a-be26-5d0f62cc****

Examples

Sample success responses

JSONformat

{
  "RequestId": "5cbb3c39-88ec-429a-be26-5d0f62cc****"
}

Error codes

HTTP status codeError codeError messageDescription
400UserDefineRuleFilePathTooLongUser define rule file path too long.-
400InvalidFilePathInvalid FilePath value.-
400InvalidPortInvalid PortStr value.-
400InvalidIPInvalid IP value.-
400UserDefineRuleCmdlineTooLongUser define rule command line too long.-
400InvalidCmdlineCommand line is invalid.-
400InvalidUserDefineRuleProcPathUser define rule process path is invalid.-
400UserDefineRuleProcPathMustContainsLetterUser define rule process path must contain letter.-
400InvalidProcPathProcess path is invalid.-
400UserDefineRuleMd5TooManyToo many user define rule md5s.-
400InvalidUserDefineRuleMd5ListInvalid Md5List value.-
400InvalidUserDefineRuleTypeInvalid Type value.-
400UserDefineRuleNameTooLongUser define rule name too long.-
400InvalidUserDefineRuleNameInvalid Name value.-
400InvalidPlatformInvalid Platform value.-
400InvalidUserDefineRuleActionTypeInvalid ActionType value.-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-03-13The Error code has changed. The request parameters of the API has changedView Change Details
2023-10-20The Error code has changedView Change Details
2023-09-07The Error code has changedView Change Details