Queries the events that occurred in an application.
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 |
---|---|---|---|---|
sae:ListAppEvents | get | *All Resources * |
| none |
Request syntax
GET /pop/v1/sam/app/listAppEvents HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CurrentPage | integer | No | The page number of the page to return. | 1 |
PageSize | integer | No | The number of entries to return on each page. Valid values: 0 to 10000. | 10 |
AppId | string | No | The application ID. | f7730764-d88f-4b9a-8d8e-cd8efbfe**** |
ObjectKind | string | No | The type of the object. Valid values:
| Pod |
ObjectName | string | No | The name of the object. Fuzzy search by prefix is supported. | errew-b86bf540-b4dc-47d8-a42f-b4997c14bd8f-5595cbddd6-x**** |
EventType | string | No | The type of the event. Valid values:
| Warning |
Reason | string | No | The cause of the event. Fuzzy search by prefix is supported. | Started |
Namespace | string | Yes | The namespace ID. | cn-beijing |
Response parameters
Examples
Sample success responses
JSON
format
{
"Message": "success",
"RequestId": "B4D805CA-926D-41B1-8E63-7AD0C1ED****",
"Data": {
"CurrentPage": 1,
"AppEventEntity": [
{
"ObjectKind": "Pod",
"EventType": "Normal",
"LastTimestamp": "2020-02-19T05:01:28Z",
"Message": "Created container",
"ObjectName": "errew-b86bf540-b4dc-47d8-a42f-b4997c14bd8f-5595cbddd6-2****",
"Reason": "Created",
"FirstTimestamp": "2020-02-19T05:01:28Z"
}
],
"TotalSize": 20,
"PageSize": 10
},
"ErrorCode": "",
"Code": "200",
"Success": true
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | get.event.error | Failed to obtain event information. |
400 | InvalidParameter.NotEmpty | You must specify the parameter %s. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|