Query Attack Path Events.
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:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis 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:ListAttackPathEvent | list | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RiskLevelList | array | No | List of risk level information. | |
| string | No | List of risk levels. Values:
| remind | |
| PathNameDesc | string | No | Description of the path name. Note
You can call ListAvailableAttackPath to query the path name description.
| ECS Instance Can Obtain Long-term Access Credential by Enabling Console Logon for RAM User |
| StartTime | long | No | Timestamp of the start time. Unit: milliseconds. | 1666886400000 |
| EndTime | long | No | Timestamp of the end time. Unit: milliseconds. | 1668064495000 |
| CurrentPage | integer | No | Specifies from which page of the returned results the query results should be displayed. The default value is 1, indicating that the display starts from the first page. | 1 |
| PageSize | integer | No | The maximum number of data entries displayed per page in a paginated query. The default value is 20. | 20 |
| Lang | string | No | Sets the language type for requests and received messages, with the default being zh. Values:
| en |
| AttackPathAssetList | array<object> | No | List of cloud product assets in the attack path. | |
| object | No | List of cloud product assets in the attack path. | ||
| Vendor | integer | No | Vendor of the cloud product asset. Note
You can call ListSupportAttackPathAsset to query the vendor of the cloud product asset.
| 0 |
| AssetType | integer | No | Type of the cloud product asset. Note
You can call ListSupportAttackPathAsset to query the type of the cloud product asset.
| 17 |
| AssetSubType | integer | No | Subtype of the cloud product asset. Note
You can call ListSupportAttackPathAsset to query the subtype of the cloud product asset.
| 2 |
| NodeType | string | No | Node type, values:
| start |
| PathType | string | No | Path type. Note
You can call ListAvailableAttackPath to query the path type.
| role_escalation |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "3956048F-9D73-5EDB-834B-4827BB48****",
"AttackPathEventList": [
{
"PathType": "role_escalation",
"PathName": "ecs_get_credential_by_create_login_profile",
"PathNameDesc": "ECS Instance Can Obtain Long-term Access Credential by Enabling Console Logon for RAM User",
"RiskLevel": "suspicious",
"SrcAsset": {
"InstanceId": "i-bp18ifsr1tu1dx39****",
"AssetType": 0,
"AssetSubType": 1,
"RegionId": "cn-hangzhou",
"InstanceName": "test",
"Vendor": 0,
"SensitiveAssetFlag": 0
},
"LastTime": 1742869699000,
"DstAsset": {
"InstanceId": "i-uf6a1tt9umxwoxqn****",
"AssetType": 1,
"AssetSubType": 0,
"Vendor": 0,
"RegionId": "cn-hangzhou",
"InstanceName": "test",
"SensitiveAssetFlag": 1
},
"EventId": 123,
"PathTypeDesc": "Privilege Escalation by Role"
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 30,
"Count": 20
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
| 500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
