All Products
Search
Document Center

ApsaraDB for MyBase:ModifyDedicatedHostAccount

Last Updated:Mar 01, 2024

Changes the account name and password of a host.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DedicatedHostIdstringYes

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

ch-bp10a5id3boqi****
AccountNamestringYes

The account name of the host.

test
AccountPasswordstringYes

The new account password of the host.

test*****
RegionIdstringNo

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

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

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

Examples

Sample success responses

JSONformat

{
  "RequestId": "D6E068C3-25BC-455A-85FE-45F0B22ECB1F"
}

Error codes

HTTP status codeError codeError message
400InvalidUserId.NotSupportThe userid have no permission.
404HostInfo.NotFoundSpecified hostinfo is not found.
404InvalidAccountName.NotFoundSpecified account name does not exist.

For a list of error codes, visit the Service error codes.