Call the ListAppEvents operation to view application events.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:ListAppEvents |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/app/listAppEvents HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CurrentPage |
integer |
No |
The current page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page for paged queries. Valid values: [0, 10000]. |
10 |
| AppId |
string |
No |
The application ID. |
f7730764-d88f-4b9a-8d8e-cd8efbfe**** |
| ObjectKind |
string |
No |
The object type. Valid values:
|
Pod |
| ObjectName |
string |
No |
The object name. Prefix-based fuzzy search is supported. |
errew-b86bf540-b4dc-47d8-a42f-b4997c14bd8f-5595cbddd6-x**** |
| EventType |
string |
No |
The event type. Valid values:
|
Warning |
| Reason |
string |
No |
The event reason. Prefix-based fuzzy search is supported. |
Started |
| Namespace |
string |
Yes |
The namespace ID. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| Message |
string |
Additional information about the call result. |
success |
| RequestId |
string |
The request ID. |
B4D805CA-926D-41B1-8E63-7AD0C1ED**** |
| Data |
object |
The list of events. |
|
| CurrentPage |
integer |
The current page number. |
1 |
| AppEventEntity |
array<object> |
The events. |
|
|
object |
The event. |
||
| ObjectKind |
string |
The object kind. |
Pod |
| EventType |
string |
The event type. |
Normal |
| LastTimestamp |
string |
The last occurrence time. |
2020-02-19T05:01:28Z |
| Message |
string |
The event message. |
Created container |
| ObjectName |
string |
The object name. |
errew-b86bf540-b4dc-47d8-a42f-b4997c14bd8f-5595cbddd6-2**** |
| Reason |
string |
The event reason. |
Created |
| FirstTimestamp |
string |
The first occurrence time. |
2020-02-19T05:01:28Z |
| CauseAnalysis |
string |
||
| TotalSize |
integer |
The total number of application events. |
20 |
| PageSize |
integer |
The number of entries per page for paged queries. |
10 |
| ErrorCode |
string |
The error code. Valid values:
|
空 |
| Code |
string |
The API status or POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the application events were retrieved successfully. Valid values:
|
true |
Examples
Success response
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",
"CauseAnalysis": ""
}
],
"TotalSize": 20,
"PageSize": 10
},
"ErrorCode": "空",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | get.event.error | Failed to obtain event information. | |
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.