Changes the account name and password of a host.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DedicatedHostId | string | Yes | The host ID. You can call the DescribeDedicatedHosts operation to query the host ID. | ch-bp10a5id3boqi**** |
AccountName | string | Yes | The account name of the host. | test |
AccountPassword | string | Yes | The new account password of the host. | test***** |
RegionId | string | No | The region ID of the host. You can call the DescribeDedicatedHostAttribute operation to query the region ID. | cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D6E068C3-25BC-455A-85FE-45F0B22ECB1F"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidUserId.NotSupport | The userid have no permission. |
404 | HostInfo.NotFound | Specified hostinfo is not found. |
404 | InvalidAccountName.NotFound | Specified account name does not exist. |
For a list of error codes, visit the Service error codes.