You can call ListServiceInstanceUpgradeHistory to query the upgrade history of a service instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
computenestsupplier:ListServiceInstanceUpgradeHistory |
get |
*ServiceInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| MaxResults |
integer |
No |
The number of entries to return on each page for a paged query. The maximum value is 100. The default value is 20. |
20 |
| NextToken |
string |
No |
The token that is used to retrieve the next page of results. Set this to the NextToken value from a previous response. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc= |
| ServiceInstanceId |
string |
Yes |
The service instance ID. |
si-0e6fca6a51a54420**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token to start the next query. |
AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc= |
| RequestId |
string |
The request ID. |
86CAC31E-3527-562C-869F-347E931C9B25 |
| MaxResults |
integer |
The number of entries to return on each page. The maximum value is 100. The default value is 20. |
20 |
| UpgradeHistory |
array<object> |
The list of upgrade history records. |
|
|
object |
The list of upgrade history records. |
||
| UpgradeHistoryId |
string |
The ID of the upgrade history record. |
exec-123 |
| Type |
string |
The upgrade type.
|
Upgrade |
| FromVersion |
string |
The version before the upgrade. |
1 |
| ToVersion |
string |
The version after the upgrade. |
3 |
| Status |
string |
The upgrade status. Valid values:
|
UpgradeFailed |
| Results |
string |
The upgrade results. |
{\"PreUpgradeExecutionId\":\"exec-123\"} |
| StartTime |
string |
The upgrade start time. |
2022-04-26T08:09:51Z |
| EndTime |
string |
The upgrade end time. |
2022-04-26T09:09:51Z |
| TotalCount |
integer |
The total number of entries. |
2 |
Examples
Success response
JSON format
{
"NextToken": "AAAAAc3HCuYhJi/wvpk4xOr0VLbAx7BkQzyYC+ONO+WudHGKEdB0uWSY7AGnM3qCgm/Ynge7zU6NWdbj0Tegyajyqyc=",
"RequestId": "86CAC31E-3527-562C-869F-347E931C9B25",
"MaxResults": 20,
"UpgradeHistory": [
{
"UpgradeHistoryId": "exec-123\n",
"Type": "Upgrade\n",
"FromVersion": "1",
"ToVersion": "3",
"Status": "UpgradeFailed\n\n",
"Results": "{\\\"PreUpgradeExecutionId\\\":\\\"exec-123\\\"}\n",
"StartTime": "2022-04-26T08:09:51Z\n",
"EndTime": "2022-04-26T09:09:51Z\n"
}
],
"TotalCount": 2
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.