續約一台或者多台訂用帳戶的Dedicated Host。
介面說明
介面說明
續約付款時,優先使用可抵扣的代金券,且您的帳號必須支援帳號餘額支付或信用支付。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ecs:RenewDedicatedHosts |
update |
*DedicatedHost
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| DedicatedHostIds |
string |
是 |
Dedicated Host的編號清單。最多可以輸入 100 個預付費Dedicated Host ID。多個Dedicated Host ID 用一個格式類似 |
dh-bp199lyny9b3**** |
| RegionId |
string |
是 |
Dedicated Host所屬的地區 ID。您可以調用 DescribeRegions 查看最新的阿里雲地區列表。 |
cn-hangzhou |
| Period |
integer |
是 |
續約周期。取值範圍:
|
1 |
| PeriodUnit |
string |
否 |
續約時間長度單位。取值範圍:
預設值: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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。