Menghapus atau merilis Instans ECS tertentu.
Deskripsi operasi
Snapshot manual cloud disk dipertahankan dan tetap dikenakan biaya. Anda dapat menghapusnya dengan memanggil DeleteSnapshot.
- Apakah cloud disk yang terpasang pada instans dan snapshot otomatis dirilis bergantung pada pengaturan parameter yang ditentukan saat pembuatannya. Sebelum merilis instans, Anda dapat memanggil DescribeDisks dan ModifyDiskAttribute untuk mengkueri dan mengubah pengaturan parameter terkait:
Jika
DeleteWithInstance=false, cloud disk dikonversi menjadi cloud disk pay-as-you-go dan dipertahankan. Jika tidak, cloud disk dirilis bersama instans.Jika
DeleteAutoSnapshot=false, snapshot otomatis dipertahankan. Jika tidak, snapshot tersebut dirilis bersama instans.
- Elastic IP address (EIP) tidak dirilis bersama instans. Anda dapat memanggil ReleaseEipAddress untuk merilisnya.
.Penting Untuk instans yang terkunci keamanan, meskipun parameter
DeleteWithInstancepada cloud disk diatur kefalse, atribut ini akan diabaikan dan cloud disk akan dirilis bersama instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DeleteInstance |
delete |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans |
i-bp1g6zv0ce8oghu7**** |
| Force |
boolean |
No |
Apakah akan merilis secara paksa instans yang sedang berjalan (
Nilai default: false. Peringatan Perilisan paksa setara dengan mematikan daya. Data sementara di memori dan penyimpanan instans akan dihapus dan tidak dapat dipulihkan. |
false |
| ForceStop |
boolean |
No |
Apakah akan menggunakan kebijakan shutdown paksa saat merilis instans yang sedang berjalan (
Nilai default: true. |
true |
| TerminateSubscription |
boolean |
No |
Apakah akan merilis Instansi langganan yang telah kedaluwarsa.
Nilai default: false. |
false |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja. Nilai valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Respons error
JSONformat
{
"RequestId": "928E2273-5715-46B9-A730-238DC996A533"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DependencyViolation.SLBConfiguring | Specified operation is denied as your instance is using by another product. | |
| 400 | DependencyViolation.RouteEntry | Specified instance is used by route entry. | The current Virtual Private Cloud (VPC) still contains custom route rules that have not been deleted, and the deletion failed. |
| 400 | InvalidParameter | The input parameter InstanceId is invalid. | The specified InstanceId is invalid. Check whether the InstanceId is correct and exists. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 403 | InstanceLockedForSecurity | The specified operation is denied as your instance is locked for security reasons. | The instance is locked for security reasons. |
| 403 | ChargeTypeViolation | The operation is not permitted due to charge type of the instance. | |
| 403 | IncorrectInstanceStatus.Initializing | The specified instance status does not support this operation. | The instance is being initialized and cannot be released at this time. Try again later. |
| 403 | InvalidOperation.DeletionProtection | %s | The operation is invalid. Disable release protection for the instance first. |
| 403 | InvalidOperation.EniLinked | %s | The current elastic network interface (ENI) of the instance is associated with other ENIs, which causes the operation to be invalid. You must disassociate them before they can be detached from the instance. |
| 403 | OperationDenied.SystemInstanceNotSupport | The system instance does not support the %s operation because %s. | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | The specified instance ID is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.