ResetAccountPassword

Last updated: 2019-09-09 14:59:26

1. API Description

API domain name: sqlserver.tencentcloudapi.com.

This API (ResetAccountPassword) resets the password of the specified instance account.

API request rate limit: 20 requests/sec.

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter. The name of this API: ResetAccountPassword
Version Yes String Common parameter. The version of this API: 2018-03-28
Region Yes String Common parameter. For more information, see the list of regions supported by the product.
InstanceId Yes String Database instance ID in the format of mssql-njj2mtpl
Accounts.N Yes Array of AccountPassword Updated account password information array

3. Output Parameters

Parameter name Type Description
FlowId Integer ID of the async task flow for account password change
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Samples

Sample 1. Resetting the Account Password of mssql-njj2mtpl

Input Sample Code

https://sqlserver.tencentcloudapi.com/?Action=ResetAccountPassword
&InstanceId=mssql-njj2mtpl
&Accounts.0.UserName=test_user_4
&Accounts.0.Password=1234qwer()
&<Common request parameter>

Output Sample Code

{
  "Response": {
    "RequestId": "aa77bb20-7522-4b1e-bc0f-ad5d82790b17",
    "FlowId": 30457
  }
}

5. Developer Resources

API Explorer

This tool provides various capabilities such as online call, signature verification, SDK code generation, and quick API retrieval that significantly reduce the difficulty of using TencentCloud API.

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call the APIs.

TCCLI

6. Error Codes

The following only lists the error codes related to this API. For other error codes, see Common Error Codes.

Error Code Description
InvalidParameter.InputIllegal Invalid input.
InvalidParameter.ParamsAssertFailed Parameter assertion conversion error.
ResourceNotFound.AccountNotExist The account does not exist.
ResourceNotFound.InstanceNotFound The instance does not exist.
ResourceUnavailable.InstanceStatusInvalid Invalid instance status.