This API is used to upgrade a major version.
POST /v3/{project_id}/instances/{instance_id}/major-version/upgrade
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. |
Name |
Type |
Mandatory |
Description |
|---|---|---|---|
target_version |
String |
Yes |
Target version. It must be later than the current major version of the instance. For example, if the current major version is 13, the target version must be 14 or 15. |
is_change_private_ip |
Boolean |
Yes |
Whether to switch the floating IP address of the source instance to the target instance.
|
statistics_collection_mode |
String |
No |
Mode of collecting statistics. It is mandatory if is_change_private_ip is set to true.
|
https://{Endpoint}/v3/0483b6b16e954cb88930a360d2c4e663/instances/3aa441c4c98a4b36b100a7e3e87d17cein03/major-version/upgrade
{
"target_version": "14.6.1",
"is_change_private_ip": true,
"statistics_collection_mode": "before_change_private_ip"
}
Name |
Type |
Description |
|---|---|---|
job_id |
String |
Task ID. |
{
"job_id": "3afe25b7-4523-4d3b-8236-7121be922691"
}
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.