Resets the logon password of an instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ResetLoginPassword |
The operation that you want to perform. Set the value to ResetLoginPassword. |
InstanceId | String | Yes | cri-kmsiwlxxdcvaduwb |
The ID of the instance. |
Password | String | Yes | test |
The logon password. |
RegionId | String | Yes | cn-shanghai |
The ID of the region where the instance resides. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IsSuccess | Boolean | true |
Indicates whether the operation is successful. |
Code | String | success |
The code returned for the request. |
RequestId | String | EB9C5722-51E2-4497-A573-575B0CA5CE0C |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ResetLoginPassword
&InstanceId=cri-kmsiwlxxdcvaduwb
&Password=test
&RegionId=cn-shanghai
&<Common request parameters>
Sample success responses
JSON
format
{
"IsSuccess":true,
"RequestId":"EB9C5722-51E2-4497-A573-575B0CA5CE0C",
"Code":"success"
}
XML
format
<IsSuccess>true</IsSuccess>
<RequestId>EB9C5722-51E2-4497-A573-575B0CA5CE0C</RequestId>
<Code>success</Code>
Error codes
For a list of error codes, visit the API Error Center.