DescribeServiceEvent
Queries recent deployment events for a 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 ID of the region where the service is deployed. |
cn-shanghai |
| ServiceName |
string |
Yes |
The name of the service. For information about how to obtain the service name, see ListServices. |
foo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageNum |
string |
No |
The page number of the service event list. Default value: 1. |
1 |
| PageSize |
string |
No |
The number of events to display per page in a paged query. Default value: 100. |
20 |
| StartTime |
string |
No |
The start time of the query in UTC. Default value: 7 days ago. |
2006-01-02 15:04:05 |
| EndTime |
string |
No |
The end time of the query. The format is YYYY-MM-DD HH:mm:ss. If this parameter is not specified, the current time is used. |
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. For information about how to obtain the instance name, see ListServiceInstances. |
echo-test-784xxxx85d-hhnd8 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response result. |
||
| RequestId |
string |
The request ID. |
3D491C94-6239-5318-B4B4-799D859*** |
| Events |
array<object> |
The list of events. |
|
|
object |
The event information. |
||
| Type |
string |
The event type. Valid values:
|
Normal |
| Reason |
string |
The reason for the event (information about service status changes). |
Updating |
| Message |
string |
The event information (a formatted JSON string). |
{\"versionId\":1,\"message\":\"Stage scale complete\",\"availableInstance\":1,\"unavailableInstance\":0} |
| Time |
string |
The UTC time when the event occurred. |
2022-04-09 06:30:00 |
| Resource |
string |
The resource type. Valid values:
|
Service |
| TotalCount |
integer |
The total number of entries. |
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.