All Products
Search
Document Center

Security Center:GetFileProtectEvent

Last Updated:Feb 20, 2024

Queries information about core file monitoring events.

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
IdlongNo

The ID of the event.

12

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

0B48AB3C-84FC-424D-A01D-B9270EF46038
Dataobject

The details of the returned data.

Uuidstring

The UUID of the asset.

49f1360f-62c8-4b48-a24c-5cc317656419
RuleNamestring

The name of the rule.

test-000
FirstTimelong

The timestamp at which the event was first detected.

1694576692000
LatestTimelong

The time when the event last occurred.

1694576692000
Statusinteger

The status of the event. Valid values:

  • 0: not handled
  • 1: handled
  • 2: added to the whitelist
1
ProcPathstring

The path to the process.

/bin/bash33
FilePathstring

The path to the file.

/usr/local
CmdLinestring

The event command line.

["touch","/usr/local/aaaa"]
FilePermissionstring

The permissions to run the process.

rwxr-xr-x
Operationstring

The operation that the process performed on the file.

DELETE
Idlong

The ID of the event.

55037
AlertLevelinteger

The severity of alerts. Valid values:

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

The name of the instance.

i-wz92q7m5hsbgfhdss***
InternetIpstring

The public IP address of the associated instance.

172.16.XX.XX
IntranetIpstring

The private IP address of the associated instance.

10.42.XX.XX
HandleTimelong

The time when the event was handled.

1694576692000
Remarkstring

The remarks.

["test"]
ProcessIdstring

The process ID of the event.

3453

Examples

Sample success responses

JSONformat

{
  "RequestId": "0B48AB3C-84FC-424D-A01D-B9270EF46038",
  "Data": {
    "Uuid": "49f1360f-62c8-4b48-a24c-5cc317656419",
    "RuleName": "test-000",
    "FirstTime": 1694576692000,
    "LatestTime": 1694576692000,
    "Status": 1,
    "ProcPath": "/bin/bash33",
    "FilePath": "/usr/local",
    "CmdLine": "[\"touch\",\"/usr/local/aaaa\"]",
    "FilePermission": "rwxr-xr-x",
    "Operation": "DELETE",
    "Id": 55037,
    "AlertLevel": 1,
    "InstanceName": "i-wz92q7m5hsbgfhdss***",
    "InternetIp": "172.16.XX.XX",
    "IntranetIp": "10.42.XX.XX",
    "HandleTime": 1694576692000,
    "Remark": "[\"test\"]",
    "ProcessId": "3453"
  }
}

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.