All Products
Search
Document Center

ApsaraDB for MyBase:ModifyDedicatedHostPassword

Last Updated:Aug 28, 2026

Changes the root account password of a host.

Operation description

This operation is supported only for ApsaraDB MyBase for Redis Enhanced Edition (Tair) dedicated clusters.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

No

The region ID of the host. You can call the DescribeDedicatedHostAttribute operation to query the region ID.

cn-hangzhou

NewPassword

string

Yes

The new password.

  • The password must be 8 to 32 characters in length.

  • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

  • The password can contain the following special characters: ! @ # $ % ^ & * ( ) _ + - =

Note

If your dedicated cluster runs SQL Server, the password cannot contain the account name (case-insensitive).

test*****

DedicatedHostId

string

Yes

The host ID. You can call the DescribeDedicatedHosts operation to query the host ID.

ch-bp10a5id3boqi****

Response elements

Element

Type

Description

Example

object

DedicatedHostName

string

The name of the host.

test123****

RequestId

string

The request ID.

D6E068C3-25BC-455A-85FE-45F0B22E12AS

Examples

Success response

JSON format

{
  "DedicatedHostName": "test123****",
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22E12AS"
}

Error codes

HTTP status code

Error code

Error message

Description

404 InvalidDBInstance.NotFound The specified instance does not exist or is not supported. The specified instance does not exist or is not supported.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.