All Products
Search
Document Center

Security Center:ListFileProtectEvent

Last Updated:Nov 13, 2024

Queries core file monitoring rules that meet the specified filter condition.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RuleNamestringNo

The name of the rule.

test-rule-1
StatusstringNo

The status of the event. Valid values:

  • 0: unhandled
  • 1: handled
  • 2: added to the whitelist
  • 3: ignored
2
AlertLevelsarrayNo

The severities of alerts.

integerNo

The severity of the alert. Valid values:

  • 0: does not generate alerts
  • 1: sends notifications
  • 2: suspicious
  • 3: high-risk
1
CurrentPageintegerNo

The page number.

1
PageSizestringNo

The number of entries per page.

20
InstanceIdstringNo

The instance ID of the asset.

i-bp1fu4aqltf1huhc****
UuidstringNo

The UUID of the server.

Note You can call the DescribeCloudCenterInstances operation to query the UUID of the server.
inet-ecs-4e876cb0-09f7-43b8-82ef-4bc7a937***
InstanceNamestringNo

The name of the server.

ca_cpm_****
InternetIpstringNo

The public IP address of the server.

120.27.XX.XX
IntranetIpstringNo

The private IP address of the server.

172.26.XX.XX
StartTimelongNo

The start timestamp of the query.

1683080489594
EndTimelongNo

The end timestamp of the query.

1683195595204
OperationstringNo

Type of operation on a file. eg:

  • DELETE: delete the file.
  • WRITE: write the file.
  • READ: read the file.
  • RENAME: rename the file.
  • CHOWN: set the file owner and file association group operations.
READ

Response parameters

ParameterTypeDescriptionExample
object

The schema of response.

RequestIdstring

The request ID.

23AD0BD2-8771-5647-819E-6BA51E212F80
EventListarray<object>

The events.

listobject
AlertLevelinteger

The severity of the alert. Valid values:

  • 0: no alerts
  • 1: reminder
  • 2: suspicious
  • 3: high-risk
1
Uuidstring

The UUID of the server that is associated with the process.

94b44720-d982-4d20-a4e1-80a1a57b5a8e
RuleNamestring

The name of the rule.

test-rule-1
LatestTimelong

The time when the event last occurred.

1694576692000
Statusinteger

The status of the event. Valid values:

  • 0: unhandled
  • 1: handled
  • 2: added to the whitelist
  • 3: ignored
1
Idlong

The ID of the event.

161757
InstanceNamestring

The instance name of the server.

kyy-admin-01
InternetIpstring

The public IP address of the server.

121.40.211.194
IntranetIpstring

The private IP address of the server.

172.22.5.36
FilePathstring

The path to the file that is managed by the process.

/etc/pam.d/su
Operationstring

The operation performed by the process on the file.

DELETE
Remarkstring

The description.

test
ProcPermissionstring

The permissions required to start the process.

rwxr-xr-x
CmdLinestring

The command line of the event.

["touch","/test/aaaa"]
ProcPathstring

The path to the process.

/usr/bin/sshpass
HandleTimelong

The time when the event was handled.

1694576692000
ProcessIdstring

The ID of the process.

52636
Platformstring

The type of the operating system. Valid values:

  • windows: Windows
  • linux: Linux
linux
PageInfoobject

The pagination information.

CurrentPageinteger

The page number.

1
PageSizeinteger

The number of entries per page.

20
TotalCountinteger

The total number of entries returned.

149

Examples

Sample success responses

JSONformat

{
  "RequestId": "23AD0BD2-8771-5647-819E-6BA51E212F80",
  "EventList": [
    {
      "AlertLevel": 1,
      "Uuid": "94b44720-d982-4d20-a4e1-80a1a57b5a8e",
      "RuleName": "test-rule-1\n",
      "LatestTime": 1694576692000,
      "Status": 1,
      "Id": 161757,
      "InstanceName": "kyy-admin-01",
      "InternetIp": "121.40.211.194",
      "IntranetIp": "172.22.5.36",
      "FilePath": "/etc/pam.d/su",
      "Operation": "DELETE",
      "Remark": "test",
      "ProcPermission": "rwxr-xr-x",
      "CmdLine": "[\"touch\",\"/test/aaaa\"]",
      "ProcPath": " /usr/bin/sshpass",
      "HandleTime": 1694576692000,
      "ProcessId": "52636",
      "Platform": "linux"
    }
  ],
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 149
  }
}

Error codes

HTTP status codeError codeError messageDescription
400IllegalParameterIllegal parameter, please check the param.Parameter error, please check the input parameters.
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-09-02The Error code has changed. The response structure of the API has changedView Change Details
2024-07-25The Error code has changedView Change Details
2024-06-21The request parameters of the API has changedView Change Details
2024-04-29The request parameters of the API has changedView Change Details
2023-10-09The internal configuration of the API is changed, but the call is not affectedView Change Details