TerminateInstance

DELETE {{baseUrl}}/instances/:instanceId?preserveBootVolume=false

Terminates the specified instance. Any attached VNICs and volumes are automatically detached when the instance terminates.

To preserve the boot volume associated with the instance, specify true for PreserveBootVolumeQueryParam. To delete the boot volume when the instance is deleted, specify false or do not specify a value for PreserveBootVolumeQueryParam.

This is an asynchronous operation. The instance's lifecycleState will change to TERMINATING temporarily until the instance is completely removed.

Request Params

KeyDatatypeRequiredDescription
preserveBootVolumebooleanSpecifies whether to delete or preserve the boot volume when terminating an instance.
When set to true, the boot volume is preserved. The default value is false.

HEADERS

KeyDatatypeRequiredDescription
if-matchstringFor optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
will be updated or deleted only if the etag you provide matches the resource's current etag value.
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header