Releases a Pay-As-You-Go instance.
You can only release an instance that is in the
After the instance is released, all the physical resources used by the instance are recycled, removed, and impossible to recover. The attached cloud disks with the property of
DeleteWithInstance=Trueare also released. The automatic snapshots of these disks with the property of
DeleteAutoSnapshot=Falseare retained, and automatic snapshots with the property of
If the instance is under security control and
LockReason: security, we ignore the property
DeleteWithInstance=Falseof its attached cloud disks and release them directly.
|Action||String||Yes||The name of this interface. Value: DeleteInstance.|
|InstanceId||String||Yes||ID of an instance.|
For more information about all the common response parameters, see Common parameters.
&<Common Request Parameters>
|Error code||Error message||HTTP status code||Meaning|
|DependencyViolation.RouteEntry||Specified instance is used by route entry.||400||The specified instance is used by the service Route entry.|
|DependencyViolation.SLBConfiguring||Specified operation is denied as your instance is using by another product.||400||The specified instance is used by the service Server Load Balancer.|
|InvalidParameter||The input parameter InstanceId is invalid.||400||The specified |
|ChargeTypeViolation||The operation is not permitted due to charge type of the instance.||403||You cannot release an subscribed instance.|
|IncorrectInstanceStatus||The current status of the resource does not support this operation.||403||You can only release an instance that is in the |
|IncorrectInstanceStatus.Initializing||The specified instance status does not support this operation.||403||The specified instance is being created. Please try again later.|
|InstanceLockedForSecurity||The specified operation is denied as your instance is locked for security reasons.||403||Your instance is locked out of security.|
|InvalidInstanceId.NotFound||The specified InstanceId does not exist.||404||The specified |