Memperpanjang satu atau lebih dedicated host langganan.
Deskripsi operasi
Deskripsi
Saat Anda membayar perpanjangan, voucher yang tersedia digunakan terlebih dahulu. Akun Anda harus mendukung pembayaran saldo atau pembayaran kredit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:RenewDedicatedHosts |
update |
*DedicatedHost
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DedicatedHostIds |
string |
Yes |
ID dari dedicated host. Anda dapat menentukan hingga 100 ID dedicated host langganan. Tentukan ID dalam format array JSON. Format: |
dh-bp199lyny9b3**** |
| RegionId |
string |
Yes |
ID region dari dedicated host. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar region terbaru. |
cn-hangzhou |
| Period |
integer |
Yes |
Durasi perpanjangan. Nilai yang valid:
|
1 |
| PeriodUnit |
string |
No |
Unit durasi perpanjangan. Nilai yang valid:
Nilai default: Month. |
Month |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilai, tetapi Anda harus memastikan nilai tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi lebih lanjut, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
2A4EA075-CB5B-41B7-B0EB-70D339F6**** |
| OrderId |
string |
ID pesanan. |
23841229**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "2A4EA075-CB5B-41B7-B0EB-70D339F6****",
"OrderId": "23841229****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotenceParamNotMatch | Request uses a client token in a previous request but is not identical to that request. | |
| 400 | InvalidClientToken.ValueNotSupported | The ClientToken provided is invalid. | |
| 400 | InvalidPeriod | The specified period is not valid. | |
| 400 | InvalidPeriodUnit.ValueNotSupported | The specified parameter PeriodUnit is not valid. | |
| 400 | ChargeTypeViolation | Pay-As-You-Go dedicated host do not support this operation. | |
| 400 | InvalidDedicatedHostId.NotFound | The specified DedicatedHostId does not exist. | |
| 400 | InvalidStatus.Upgrading | The dedicated host is upgrading, please try it later. | |
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.