UpgradeInfo
Queries whether an upgradable engine version is available for a specified Elasticsearch instance and retrieves the version information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DescribeInstance |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/instances/{instanceId}/upgradeInfo HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
es-cn-6ja1ro4jt000c**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Id of the request |
5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D**** |
| Result |
object |
The result body. |
|
| UpgradeInfo |
object |
The upgrade information. |
|
| CurRepoVersion |
string |
The current repository version. |
1.7.3 |
| UpdateRepoVersion |
string |
The upgradable repository version. |
1.7.3 |
| Upgrade |
boolean |
Indicates whether an upgradable version is available. |
false |
| curApackVersion |
string |
The current kernel version. |
2.2.4 |
| upgradeApackVersion |
string |
The upgradable kernel version. |
2.2.4 |
| curEsVersion |
string |
The current Elasticsearch version. |
8.17.0 |
| upgradeEsVersion |
string |
The upgradable Elasticsearch version. |
8.17.0 |
Examples
Success response
JSON format
{
"RequestId": "5FFD9ED4-C2EC-4E89-B22B-1ACB6FE1D****",
"Result": {
"UpgradeInfo": {
"CurRepoVersion": "1.7.3",
"UpdateRepoVersion": "1.7.3",
"Upgrade": false,
"curApackVersion": "2.2.4",
"upgradeApackVersion": "2.2.4",
"curEsVersion": "8.17.0",
"upgradeEsVersion": "8.17.0"
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.