Skip to main content

ReInitDisk

Description

the call ReInitDisk reinitializes a cloud disk to its initial state at the time of creation.

Request Method

POST

Request Path

/apsara/route/Ecs/ReInitDisk

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
KeyPairNameBODYstringNotest-KeyPairNamekey pair name. Description This parameter applies only to Linux instances. When reinitializing the system disk, you can bind an SSH key pair to the ECS instance as the login credential. After using SSH key pair, the login credential method of user name and password will be disabled.
AutoStartInstanceBODYbooleanNotruewhether to start the instance automatically after reinitializing the cloud disk. default value: false.
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api
SecurityEnhancementStrategyBODYstringNoActivewhen the specified cloud disk is a system disk, whether to use the cloud security center service after reinitializing the cloud disk. Value range: Active: use. This value only supports public mirroring. Deactive: not used. This value supports all images. default value: Deactive.
DiskIdBODYstringYesd-bp67acfmxazb4p****the specified cloud disk ID.
PasswordBODYstringNoEcsV587!When reinitializing the system disk, whether to reset the user name and password of the ECS instance. It is 8 to 30 characters in length and must contain both uppercase and lowercase letters, numbers, and special symbols. Special symbols can be: ()'~! @#$%^&*-_+=|{}[]:;'<> ;,?//code>/pre> p data-tag = "p" class = "p"> where the Windows instance cannot use the slash (/) as the first character of the password. description if you pass in Password parameter, it is recommended that you use HTTPS protocol to send requests to avoid password disclosure.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}