全部產品
Search
文件中心

Elastic Compute Service:RenewDedicatedHosts - 續約一台或者多台訂用帳戶Dedicated Host

更新時間:Apr 04, 2026

續約一台或者多台訂用帳戶的Dedicated Host。

介面說明

介面說明

續約付款時,優先使用可抵扣的代金券,且您的帳號必須支援帳號餘額支付或信用支付。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

ecs:RenewDedicatedHosts

update

*DedicatedHost

acs:ecs:{#regionId}:{#accountId}:ddh/{#ddhId}

請求參數

名稱

類型

必填

描述

樣本值

DedicatedHostIds

string

Dedicated Host的編號清單。最多可以輸入 100 個預付費Dedicated Host ID。多個Dedicated Host ID 用一個格式類似["dh-xxxxxxxxx", "dh-yyyyyyyyy", … "dh-zzzzzzzzz"]的 JSON 數組表示,ID 之間用半形逗號(,)隔開。

dh-bp199lyny9b3****

RegionId

string

Dedicated Host所屬的地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。

cn-hangzhou

Period

integer

續約周期。取值範圍:

  • PeriodUnit=Month 時:1、2、3、4、5、6、7、8、9、12、24、36、48、60。

  • PeriodUnit=Year 時:1、2、3、4、5。

1

PeriodUnit

string

續約時間長度單位。取值範圍:

  • Month

  • Year

預設值:Month。

Month

ClientToken

string

保證請求等冪性。從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。只支援 ASCII 字元,且不能超過 64 個字元。更多詳情,請參見如何保證等冪性

123e4567-e89b-12d3-a456-426655440000

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

請求 ID。

2A4EA075-CB5B-41B7-B0EB-70D339F6****

OrderId

string

訂單 ID。

23841229****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "2A4EA075-CB5B-41B7-B0EB-70D339F6****",
  "OrderId": "23841229****"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 IdempotenceParamNotMatch Request uses a client token in a previous request but is not identical to that request. 與相同 ClientToken 的請求參數不符合。
400 InvalidClientToken.ValueNotSupported The ClientToken provided is invalid. 指定的 ClientToken 不合法。
400 InvalidPeriod The specified period is not valid. 指定的時段不合法。
400 InvalidPeriodUnit.ValueNotSupported The specified parameter PeriodUnit is not valid. 參數 PeriodUnit 無效。
400 ChargeTypeViolation Pay-As-You-Go dedicated host do not support this operation.
400 InvalidDedicatedHostId.NotFound The specified DedicatedHostId does not exist. 指定的Dedicated Host不存在。
400 InvalidStatus.Upgrading The dedicated host is upgrading, please try it later. 指定的Dedicated Host正在升級,請稍後操作。
400 LastOrderProcessing The previous order is still processing, please try again later. 訂單正在處理中,稍後重試。
500 InternalError The request processing has failed due to some unknown error.
403 ChargeTypeViolation Pay-As-You-Go dedicated host do not support this operation.
403 IncorrectHostStatus The current status of the resource does not support this operation. 當前資源的狀態不支援此操作。
403 LastTokenProcessing The last token request is processing.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情