tencent cloud

Feedback

ModifyInstancePasswordComplexity

Last updated: 2024-01-30 10:25:43

    1. API Description

    Domain name for API request: cdb.tencentcloudapi.com.

    This API is used to modify the password complexity of a TencentDB instance.

    A maximum of 20 requests can be initiated per second for this API.

    We recommend you to use API Explorer
    Try it
    API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

    2. Input Parameters

    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: ModifyInstancePasswordComplexity.
    Version Yes String Common Params. The value used for this API: 2017-03-20.
    Region No String Common Params. This parameter is not required for this API.
    InstanceIds.N Yes Array of String Instance ID list
    ParamList.N No Array of Parameter List of parameters to be modified. Every element is a combination of Name (parameter name) and CurrentValue (new value). Valid values for Name of version 8.0: validate_password.policy, validate_password.lengt, validate_password.mixed_case_coun, validate_password.number_coun, validate_password.special_char_count. Valid values for Name of version 5.6 and 5.7: validate_password_polic, validate_password_lengt validate_password_mixed_case_coun, validate_password_number_coun, validate_password_special_char_coun.

    3. Output Parameters

    Parameter Name Type Description
    AsyncRequestId String Async task ID, which can be used to query task progress.
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Modifying the password complexity of a TencentDB instance

    Input Example

    InstanceIds.0=cdb-3gqxxxx&ParamList.0.Name=validate_password.number_count&ParamList.0.CurrentValue=14
    

    Output Example

    {
        "Response": {
            "AsyncRequestId": "02e874af-e4876fb4-4c672e64-86f17866",
            "RequestId": "d5b053f3-d58e-4048-aef9-b8cc9f044951"
        }
    }
    

    5. Developer Resources

    SDK

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

    Command Line Interface

    6. Error Code

    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 CAM signature/authentication error.
    AuthFailure.SubAccountDenied The sub-account has no permissions.
    CdbError Backend or process error.
    InternalError.DBOperationError Database operation failed.
    InternalError.InternalHttpServerError An exception occurred while executing the request.
    InternalError.InternalServiceErrorErr An error occurred while accessing internal service.
    InternalError.UndefinedError Unknown error
    InternalError.UnknownError Unknown error
    InvalidParameter Parameter error.
    InvalidParameter.ExceptionParam Parameter exception.
    InvalidParameter.InstanceNotFound The instance does not exist.
    InvalidParameterValue.DataConvertError Data conversion failed.
    InvalidParameterValue.InvalidParameterValueError Invalid parameter value
    OperationDenied Operation denied.
    ResourceNotFound.CdbInstanceNotFoundError The instance cannot be found. Please check whether your instance status is normal.
    ResourceNotFound.InstanceNotFundError The instance does not exist.
    UnsupportedOperation Unsupported operation.