All Products
Search
Document Center

Security Center:ListFileProtectEvent

Last Updated:Apr 29, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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
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 server UUID.

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

The name of the server.

ca_cpm_****
InternetIpstringNo

The public IP address of the asset that you want to query.

120.27.XX.XX
IntranetIpstringNo

The private IP address of the asset that you want to query.

172.26.XX.XX
StartTimelongNo

The start of the time range to query.

1683080489594
EndTimelongNo

The end of the time range to query.

1683195595204

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

23AD0BD2-8771-5647-819E-6BA51E212F80
EventListobject []

The events.

AlertLevelinteger

The severity of the alert. Valid values:

  • 0: does not generate alerts
  • 1: sends notifications
  • 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
1
Idlong

The ID of the event.

161757
InstanceNamestring

The 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 asset.

172.22.5.36
FilePathstring

The path to the file.

/etc/pam.d/su
Operationstring

The operation performed by the process on the file.

DELETE
Remarkstring

The remarks.

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 process ID (PID) of the event process.

52636
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"
    }
  ],
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 149
  }
}

Error codes

HTTP status codeError codeError messageDescription
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-04-29The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: InstanceId
    Added Input Parameters: Uuid
    Added Input Parameters: InstanceName
    Added Input Parameters: InternetIp
    Added Input Parameters: IntranetIp
    Added Input Parameters: StartTime
    Added Input Parameters: EndTime
2023-10-09The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.