ReinstallInstance
1. API Description
This API is used to reinstall the operating system of the specified instance.
Prerequisites
Query image: call DescribeImages
to check information on image.
Note
If you specify an
imageId
, the specified image is used. Otherwise, the image used by the current instance is used.Operations on instances in recycle bin or in stalling status are not supported.
The system disk will be formatted and reset. Therefore, make sure that no important files are stored on the system disk.
If no password is specified, you will get a random password via mailbox.
The status of the instance will be
INSTALLING
during reinstallation. You can use DescribeInstances to query the status of the instance. If the status changes toRunning
, it means that the instance has been reinstalled successfully;INSTALL_FAILED
means the instance has been reinstalled failed. Any operations on the instances are not allowed while creating. Please contact Zenlayer Support if you have failed.
2. Input Parameters
The following request parameter list only provides API request parameters.
3. Output Parameters
4. Code Example
Default reinstallation
Reinstall the operating system of the instance of the instanceId
ID with default value.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Last updated