Domain name for API request: tdmysql.intl.tencentcloudapi.com.
This API is used to reset user password.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ResetUserPassword. |
| Version | Yes | String | Common Params. The value used for this API: 2021-11-22. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| UserName | Yes | String | Username. |
| InstanceId | Yes | String | Instance ID. |
| Host | Yes | String | Host IP, IP range ending with % to denote permission for all IPs in the range |
| Password | No | String | New password, required length 8-32, include at least two of English, digits and symbols. |
| EncryptedPassword | No | String | Encryption password |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: tdmysql.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ResetUserPassword
<Common request parameters>
{
"UserName": "test_user",
"InstanceId": "tdsql3-d8fffc3c",
"Host": "%",
"Password": "dasdfadasdf231!@"
}
{
"Response": {
"RequestId": "a93d2900-ef72-11eb-ab93-0716f253da76"
}
}
Reset user password using encrypted password
POST / HTTP/1.1
Host: tdmysql.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ResetUserPassword
<Common request parameters>
{
"UserName": "test1234567",
"InstanceId": "tdsql3-f44c7c8e",
"Host": "%",
"EncryptedPassword": "lNepasen9UqXCGYFXc3kkT2GIa5Byc+8CcCOCkTxxTZ/Dow03USfrJrnTLB9cclK6k3RWruGAnP7CbogfauT2otyiIepAEfGK5fHgOZwZCfgrM3J6/K2nxTdYaYjtQP6cyMYbW+07/EdKpUSOpv+6MGw3nPDPrJFDNOvt8EjEbJ9+fU/zC+O4CNX7HdHNeWUtlMRtTEIeqXInjYb5M32aB01SrIEWSel6K2SMpjjzXsKqSVZl/nrHkWsXTd5Xn8ysuV/2Eu1dipXVbhR8lWQ1y57qopPIuz0v2ARODgVTPyY550g/hl3Tz7ScJxynJEL4AajBy7i8po0WA5Ctg1Eiw=="
}
{
"Response": {
"RequestId": "15636f30-1e3f-4d8b-887c-c1eae1a1cc78"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| AuthFailure.CamAuthError | CAM authentication error. |
| AuthFailure.CheckCamAuthError | CAM authentication request parameter check failed. |
| AuthFailure.UnauthorizedOperation | CAM authentication failure. |
| FailedOperation.DBQueryUserError | Query user data failed. |
| FailedOperation.DBUpdateUserError | Failed to update user data. |
| FailedOperation.QueryUserError | Query user failed. |
| InvalidParameterValue.CheckPasswdError | Password verification failed. |
| InvalidParameterValue.InvalidParameterValueError | Parameter error |
| OperationDenied.ResetUserPasswordError | Reset super user password failed. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan