All Products
Search
Document Center

Security Center:GetFileProtectEvent

Last Updated:Nov 13, 2024

Queries information about core file monitoring events.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:GetFileProtectEventget
  • All Resources
    *
    none
none

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
Platformstring

The type of the operating system. Valid values:

  • windows: Windows
  • linux: Linux
linux

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",
    "Platform": "linux"
  }
}

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-09-02The response structure of the API has changedView Change Details