All Products
Search
Document Center

Security Center:UpdateFileProtectClientRule

Last Updated:Jun 12, 2026

Updates a file protection rule.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RuleName

string

Yes

The name of the rule.

text-001

ProcPaths

array

Yes

The list of process listening paths. Wildcards are supported.

string

No

The list of process listening paths. Wildcards are supported.

/usr/local/*

FilePaths

array

Yes

The list of monitored file paths. Wildcards are supported.

string

No

The list of monitored file paths. Wildcards are supported.

/usr/*

FileOps

array

Yes

The list of operations performed on the file.

string

No

The list of operations performed on the file.

WRITE

RuleAction

string

Yes

The action of the rule. Valid values:

  • block: Block.

  • monitor: Monitor.

  • pass: Allow.

pass

AlertLevel

integer

No

The alert notification level. Valid values:

  • 0: no alert

  • 1: reminder

  • 2: suspicious

  • 3: high-risk.

0

Status

integer

Yes

The status of the rule. Valid values:

  • 0: disabled

  • 1: enabled.

1

Id

integer

Yes

The unique ID.

245

FileTypes

array

No

The list of protected file types.

string

No

The list of protected file types.

txt

ExcludeUsers

array

No

The list of users excluded from file protection.

string

No

The list of users excluded from file protection.

root

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

F8B6F758-BCD4-597A-8A2C-DA5A552C****

Examples

Success response

JSON format

{
  "RequestId": "F8B6F758-BCD4-597A-8A2C-DA5A552C****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 IllegalParameter Illegal parameter, please check the param. Parameter error, please check the input parameters.
500 ServerError ServerError
403 NoPermission caller has no permission You are not authorized to do this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.