All Products
Search
Document Center

Security Center:ModifyClientUserDefineRule

Last Updated:Jun 16, 2026

Modifies a custom rule for malicious behavior defense.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: allow

  • 1: block.

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:

  • 1: process hash

  • 2: command line

  • 3: process network

  • 4: file read/write

  • 5: registry operation

  • 6: dynamic-link library loading

  • 7: file rename.

2

Platform

string

No

The operating system type. Valid values:

  • windows: Windows

  • linux: Linux

  • all: all.

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.