Melepaskan Dedicated Host berjenis pay-as-you-go atau Dedicated Host berlangganan yang telah kedaluwarsa.
Deskripsi operasi
Catatan Penggunaan
Sebelum melepaskan Dedicated Host berjenis pay-as-you-go, pastikan tidak ada Instance ECS yang ditempatkan pada Dedicated Host tersebut.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ReleaseDedicatedHost |
delete |
*DedicatedHost
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari dedicated host. Anda dapat memanggil operasi DescribeRegions untuk mengambil daftar wilayah terbaru. |
cn-hangzhou |
| DedicatedHostId |
string |
Yes |
ID dari dedicated host. |
dh-bp199lyny9b3**** |
| TerminateSubscription |
boolean |
No |
Waktu kedaluwarsa dari dedicated host berlangganan.
Nilai default: false. |
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
A1B15AC8-E6F6-49A4-8985-8C07104B9199 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "A1B15AC8-E6F6-49A4-8985-8C07104B9199"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ChargeTypeViolation | The operation is not permitted due to charge type of the dedicated host. | |
| 400 | IncorrectHostStatus.Initializing | The specified ddh status does not support this operation. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InstanceExist | Instance exists on the dedicated host. | |
| 403 | OperationDenied.DedicatedHostShared | The specified ddh is shared to other users. Remove it from the resource share before releasing. | |
| 404 | InvalidDedicatedHostId.NotFound | The specified DedicatedHostId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.