Changes the root password for a specified ApsaraDB for MyBase host.

You can call this operation to manage only hosts that are created in MyBase for Redis dedicated clusters of the Enhanced Edition (Tair).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No ModifyDedicatedHostPassword

The operation that you want to perform. Set the value to ModifyDedicatedHostPassword.

DedicatedHostId String Yes ch-bp10a5id3boqi****

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

NewPassword String Yes test*****

The new password for the host.

RegionId String No cn-hangzhou

The region ID of the dedicated cluster in which the host is created. You can call the DescribeDedicatedHostAttribute operation to query the region ID.

Response parameters

Parameter Type Example Description
DedicatedHostName String test123****

The name of the host.

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

The ID of the request.

Examples

Sample requests

http(s)://cddc.aliyuncs.com/?Action=ModifyDedicatedHostPassword
&NewPassword=test*****
&DedicatedHostId=ch-bp10a5id3boqi****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<ModifyDedicatedHostPasswordReponse>
  <RequestId>D6E068C3-25BC-455A-85FE-45F0B22E12AS</RequestId>
  <DedicatedHostName>test123****</DedicatedHostName>
</ModifyDedicatedHostPasswordReponse>

JSON format

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

Error codes

HttpCode Error code Error message Description
404 InvalidDBInstance.NotFound The specified instance does not exist or is not supported. The error message returned because the instance does not exist or the operation cannot be performed on the instance.

For a list of error codes, visit the API Error Center.