This API is used to query the major version upgrade history.
GET /v3/{project_id}/instances/{instance_id}/major-version/upgrade-histories?offset={offset}&limit={limit}&order={order}&sort_field={sort_field}
Name |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Project ID of a tenant in a region. To obtain it, refer to Obtaining a Project ID. |
instance_id |
String |
Yes |
Instance ID. |
offset |
Integer |
No |
Index offset. If offset is set to N, the resource query starts from the N+1 piece of data. The value is 0 by default, indicating that the query starts from the first piece of data. The value must be a number but cannot be a negative number. |
limit |
Integer |
No |
Number of query records. The default value is 10. The value must be a positive integer. The minimum value is 1 and the maximum value is 100. |
order |
String |
No |
Sorting order.
|
sort_field |
String |
No |
Sorting field.
|
Name |
Type |
Description |
---|---|---|
total_count |
Integer |
Total number of records. |
upgrade_reports |
Array of objects |
Upgrade report details. For details, see Table 3. |
Name |
Type |
Description |
---|---|---|
id |
String |
Upgrade report ID. |
start_time |
String |
Upgrade start time in the "yyyy-mm-ddThh:mm:ssZ" format. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, the value of Z is +0100. |
end_time |
String |
Upgrade end time in the "yyyy-mm-ddThh:mm:ssZ" format. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, the value of Z is +0100. |
src_instance_id |
String |
Source instance ID. |
src_database_version |
String |
Source instance version. |
dst_instance_id |
String |
Target instance ID. |
dst_database_version |
String |
Target instance version. |
result |
String |
Upgrade result.
|
is_private_ip_changed |
Boolean |
Whether to switch the floating IP address of the source instance to the target instance.
|
private_ip_change_time |
String |
Time when the floating IP address is changed. The format is yyyy-mm-ddThh:mm:ssZ. T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, if the time zone offset is one hour, the value of Z is +0100. |
statistics_collection_mode |
String |
When to collect statistics.
|
detail |
String |
Upgrade report details. |
{ "total_count": 1, "upgrade_reports": [ { "id": "1a8fda5a-17a6-ebc4-bf1f-97ae837f432b", "start_time": "2023-03-06T02:45:49+0800", "end_time": "2023-03-06T02:50:49+0800", "src_instance_id": "dccacebb7b884ee18bc5c02c918ef2b0in03", "src_database_version": "13.9", "dst_instance_id": "6b5750504be1403191c4f00e4ffaee5ein03", "dst_database_version": "14.6", "result": "success", "is_private_ip_changed": true, "private_ip_change_time": "2023-03-06T03:10:49+0800", "statistics_collection_mode": "before_change_private_ip", "detail": "2023-03-06 18:33:26 --- pg_upgrade upgrade task begin" } ] }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.