Retrieves the details of a core file monitoring event.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetFileProtectEvent |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
The event ID. This parameter is required. If this parameter is not specified, the API returns HTTP 400 with error code -101. You can call ListFileProtectEvent to obtain valid event IDs. |
12 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique identifier for each request. You can use the request ID to troubleshoot issues. |
0B48AB3C-84FC-424D-A01D-B9270EF46038 |
| Data |
object |
The returned data details. |
|
| Uuid |
string |
The UUID of the asset instance. |
49f1360f-62c8-4b48-a24c-5cc317656419 |
| RuleName |
string |
The rule name. |
test-000 |
| FirstTime |
integer |
The timestamp when the event first occurred. |
1694576692000 |
| LatestTime |
integer |
The timestamp when the event most recently occurred. The value is a UNIX timestamp. Unit: milliseconds. |
1694576692000 |
| Status |
integer |
The event status. Valid values:
Valid values:
|
1 |
| ProcPath |
string |
The process path. |
/bin/bash33 |
| FilePath |
string |
The file path. |
/usr/local |
| CmdLine |
string |
The event command line. |
["touch","/usr/local/aaaa"] |
| FilePermission |
string |
The process permissions. |
rwxr-xr-x |
| Operation |
string |
The operation performed by the process on the file. |
DELETE |
| Id |
integer |
The unique ID. |
55037 |
| AlertLevel |
integer |
The alert notification level. Valid values:
Valid values:
|
1 |
| InstanceName |
string |
The instance name. |
i-wz92q7m5hsbgfhdss*** |
| InternetIp |
string |
The public IP address of the associated instance. |
172.16.XX.XX |
| IntranetIp |
string |
The private IP address of the associated instance. |
10.42.XX.XX |
| HandleTime |
integer |
The time when the event was handled. The value is a UNIX timestamp. Unit: milliseconds. |
1694576692000 |
| Remark |
string |
The remarks. |
["test"] |
| ProcessId |
string |
The process ID of the event. |
3453 |
| Platform |
string |
The operating system type. Valid values:
|
linux |
| UserId |
string |
The user ID that started the current process. |
1001 |
| UserName |
string |
The username that started the current process. |
test |
Examples
Success response
JSON format
{
"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",
"UserId": "1001",
"UserName": "test"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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.