You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
proprietary host
RenewDedicatedHost - DDH renewal
Copy page
Download PDF
RenewDedicatedHost - DDH renewal
Call the RenewDedicatedHost operation to renew a DDH. The system prioritizes applying coupons to offset the renewal fee.​
Usage notes​
For subscription-based DDHs, 7 days, 3 days, and 1 day before and on the expiration date, the platform sends notifications by SMS, email, or internal message based on the notification method you specify to remind you that the resources are about to expire. To avoid affecting your business, please renew your resources in a timely manner.​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
Only the request parameters specific to this operation and some common parameters are listed below. For more information, refer to Common parameters.​
Action string required Sample value: RenewDedicatedHost​
The action that you want to perform. Value: RenewDedicatedHost.​
​
Version string required Sample value: 2020-04-01​
The API version. Valid value: 2020-04-01.​
​
ClientToken string Optional Sample value: 23fa21A8823nfasd7f****​
The ClientToken is used to ensure the request idempotency. You can use the client to automatically generate a token, but you must make sure that the token is unique among different requests. This prevents repeated actions due to multiple client retries when the call of the API operation times out or an internal server error occurs.​
Value: Only ASCII characters are supported. The length is no more than 64 ASCII characters.​
​
DedicatedHostId string required Sample value: dh-3tigy72q3u3vj0x2****​
Dedicated host ID.​
​
Period integerrequired Sample value: 1​
Renewal duration (month).​
Values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36​
​
PeriodUnit stringrequired Sample value: Month​
The time unit of the renewal duration, that is, the unit of the Period parameter.​
Value: Month.​
​
​
​
Response parameters​
Only the response parameters specific to this operation are listed below. For more information, refer to the response structure.​
OrderId string Sample value: Order7007335217124******​
The order ID.​
​
​
​
Sample request​
​
GET /?Action=RenewDedicatedHost&Version=2020-04-01&DedicatedHostId=dh-ycje2rquioh9l3bn****&Period=1&PeriodUnit=Month HTTP/1.1​
Host: ecs.cn-beijing.volcengineapi.com​
Region: cn-beijing​
Service: ecs​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "2023071716274123B73A705E255110****",​
"Action": "RenewDedicatedHost",​
"Version": "2020-04-01",​
"Service": "ecs",​
"Region": "cn-beijing"​
},​
"Result": {​
"OrderId": "Order725670114528284****"​
}​
}​
​
Error codes​
The table below lists the business-related error codes of the operation. For more information, refer to Common error codes.​
​
Status code​
Error code​
Error message​
Description​
400​
IdempotentParameterMismatch​
The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.​
The idempotent parameters are inconsistent.​
400​
Insufficient.Balance​
The request is denied due to the lack of balance.​
The account balance is insufficient.​
400​
InvalidChargeType​
The specified ChargeType is not valid, is unsupported, or cannot be used.​
The specified instance billing method is invalid.​
400​
InvalidClientToken.Malformed​
The specified ClientToken is malformed.​
The specified ClientToken is invalid.​
400​
InvalidPeriod​
The specified period is not valid.​
The specified number of billing cycles is invalid.​
400​
InvalidPeriod.Malformed​
The specified period is malformed.​
The specified billing cycle is invalid.​
400​
InvalidPeriodUnit​
The specified PeriodUnit is not valid, is unsupported, or cannot be used.​
The specified billing cycle is invalid.​
400​
InvalidPeriodUnit.Malformed​
The specified PeriodUnit is malformed.​
The specified billing cycle is invalid.​
400​
MissingParameter.DedicatedHostId​
The required parameter DedicatedHostId is not supplied.​
The parameter DedicatedHostId cannot be empty.​
404​
InvalidDedicatedHost.NotFound​
The specified dedicated host does not exist.​
The specified dedicated host does not exist.​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
The previous idempotent request is still in process. Please try again later.​
412​
OperationDenied.ResourceLocked​
The specified operation is denied as your resource is locked for another operation.​
The specified operation is rejected because your resource has been locked by another operation.​
500​
InternalError​
An internal error has occurred.​
An internal error occurred. Try again. If multiple attempts fail, submit a ticket.​
​
Last updated: 2026.01.16 19:04:50