Libera un disco de datos de pago por uso. Los tipos de disco incluyen discos básicos, discos ultra, SSD estándar y SSD empresarial.
Descripción de la operación
Al invocar esta operación, tenga en cuenta los siguientes puntos:
Las instantáneas manuales del disco se conservan.
Puede invocar ModifyDiskAttribute para configurar si las instantáneas automáticas se conservan o se liberan junto con el disco. Elimine las instantáneas innecesarias de manera oportuna para mantener una cuota de instantáneas suficiente para la política de instantáneas automáticas basada en épocas.
El disco debe estar en estado Pendiente de adjuntar (Disponible) cuando lo libere.
Si el disco con el ID especificado no existe, la solicitud se ignora.
Pruébelo ahora
Test
Autorización de RAM
|
Action |
Nivel de acceso |
Tipo de recurso |
Clave de condición |
Acción dependiente |
|
ecs:DeleteDisk |
delete |
*Disk
|
Ninguna | Ninguna |
Parámetros de la solicitud
|
Parámetro |
Tipo |
Obligatorio |
Descripción |
Ejemplo |
| DiskId |
string |
Sí |
El ID del disco que desea liberar. |
d-bp14k9cxvr5uzy5**** |
Elementos de la respuesta
|
Elemento |
Tipo |
Descripción |
Ejemplo |
|
object |
|||
| RequestId |
string |
El ID de la solicitud. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Ejemplos
Respuesta exitosa
JSON Formato
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Códigos de error
|
Código de estado HTTP |
Código de error |
Mensaje de error |
Descripción |
|---|---|---|---|
| 400 | InvalidRegionId.MalFormed | The specified parameter RegionId is not valid. | The specified RegionId parameter is invalid. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | IncorrectDiskStatus | The current disk status does not support this operation. | |
| 403 | DiskNotPortable | The specified disk is not a portable disk. | |
| 403 | DiskTypeViolation | The specified disk is a system disk and cannot support the operation. | The specified disk is a system disk and cannot be detached. |
| 403 | DiskCreatingSnapshot | The operation is denied due to a snapshot of the specified disk is not completed yet. | |
| 403 | IncorrectDiskStatus.Initializing | The current disk status does not support this operation. | |
| 403 | DiskStillAttached | The disk is still attached to the disk. | |
| 403 | UserNotInTheWhiteList | The user is not in disk white list. | You are not authorized to manage the disk. Try again when you are authorized. |
| 403 | InvalidDiskStatus.DeleteProtection | The specified disk is under delete protection. It cannot be deleted. | |
| 404 | InvalidDiskId.NotFound | The specified disk does not exist. | The specified disk does not exist. Check whether the disk ID is correct. |
Consulte Códigos de error para ver la lista completa.
Notas de la versión
Consulte Notas de la versión para ver la lista completa.