Changes the name and password of an account for a specified host in an ApsaraDB MyBase dedicated cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyDedicatedHostAccount |
The operation that you want to perform. Set the value to ModifyDedicatedHostAccount. |
AccountName | String | Yes | test |
The new name of the host account. |
AccountPassword | String | Yes | test***** |
The new password of the host account. |
DedicatedHostId | String | Yes | ch-bp10a5id3boqi**** |
The ID of the host for which you want to modify the host account. You can call the DescribeDedicatedHosts operation to query the host ID. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the host of which you want to modify the host account. You can call the DescribeDedicatedHostAttribute operation to query the region ID. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | D6E068C3-25BC-455A-85FE-45F0B22ECB1F |
The ID of the request. |
Examples
Sample requests
http(s)://cddc.aliyuncs.com/?Action=ModifyDedicatedHostAccount
&AccountName=test
&AccountPassword=test*****
&DedicatedHostId=ch-bp10a5id3boqi****
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<ModifyDedicatedHostAccountReponse>
<RequestId>D6E068C3-25BC-455A-85FE-45F0B22ECB1F</RequestId>
</ModifyDedicatedHostAccountReponse>
JSON
format
{"RequestId":"D6E068C3-25BC-455A-85FE-45F0B22ECB1F"}
Error codes
For a list of error codes, visit the API Error Center.