This API is used to query the major version upgrade check history.
GET /v3/{project_id}/instances/{instance_id}/major-version/inspection-histories?offset={offset}&limit={limit}&order={order}&sort_field={sort_field}&target_version={target_version}&is_available={is_available}
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.
|
target_version |
String |
No |
Target version. |
is_available |
Boolean |
No |
Whether the check is valid.
|
Name |
Type |
Description |
---|---|---|
total_count |
Integer |
Total number of records. |
inspection_reports |
Array of objects |
Check report details. For details, see Table 3. |
Name |
Type |
Description |
---|---|---|
id |
String |
Check report ID. |
check_time |
String |
Check 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. |
expiration_time |
String |
Expiration 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. |
target_version |
String |
Target version. |
result |
String |
Check results.
|
detail |
String |
Check report details. |
{ "total_count": 1, "inspection_reports": [ { "id": "289903e1-3006-19e9-e054-5fb7fe376552", "check_time": "2023-03-06T02:33:49+0800", "expiration_time": "2023-03-07T02:33:49+0800", "target_version": "14.4", "result": "success", "detail": "2023-03-06 18:33:26 --- pg_upgrade check task begin\n2023-03-06 18:34:40 --- pg_upgrade check on master: [user_check_report]User check success" } ] }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.