Queries recent deployment events for a specified service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:DescribeServiceEvent |
get |
*Service
|
None | None |
Request syntax
GET /api/v2/services/{ClusterId}/{ServiceName}/events HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region ID of the service. |
cn-shanghai |
| ServiceName |
string |
Yes |
The name of the service. To obtain this name, see ListServices. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNum |
string |
No |
The page number to return. Default value: 1. |
1 |
| PageSize |
string |
No |
The number of events to return per page. Default value: 100. |
20 |
| StartTime |
string |
No |
The start time of the query range, in UTC. The default value is 7 days ago. |
2006-01-02 15:04:05 |
| EndTime |
string |
No |
The end time of the query range, in UTC. The default value is the current time. |
2006-01-02 15:04:05 |
| EventType |
string |
No |
The event type. Valid values:
Valid values:
|
Normal |
| InstanceName |
string |
No |
The name of the service instance. To obtain this name, see ListServiceInstances. |
echo-test-784xxxx85d-hhnd8 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
3D491C94-6239-5318-B4B4-799D859*** |
| Events |
array<object> |
The list of events. |
|
|
object |
The event details. |
||
| Type |
string |
The event type. Valid values:
|
Normal |
| Reason |
string |
The reason for the event, which indicates a change in the service status. |
Updating |
| Message |
string |
The event message, which is a JSON-formatted string. |
{\"versionId\":1,\"message\":\"Stage scale complete\",\"availableInstance\":1,\"unavailableInstance\":0} |
| Time |
string |
The time when the event occurred, in UTC. |
2022-04-09 06:30:00 |
| Resource |
string |
The resource type. Valid values:
|
Service |
| TotalCount |
integer |
The total count of events. |
29 |
| TotalPageNum |
integer |
The total number of pages. |
12 |
| PageNum |
integer |
The current page number. |
1 |
Examples
Success response
JSON format
{
"RequestId": "3D491C94-6239-5318-B4B4-799D859***",
"Events": [
{
"Type": "Normal",
"Reason": "Updating",
"Message": "{\\\"versionId\\\":1,\\\"message\\\":\\\"Stage scale complete\\\",\\\"availableInstance\\\":1,\\\"unavailableInstance\\\":0}",
"Time": "2022-04-09 06:30:00",
"Resource": "Service"
}
],
"TotalCount": 29,
"TotalPageNum": 12,
"PageNum": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.