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
Key | Datatype | Required | Description |
---|---|---|---|
preserveBootVolume | boolean | Specifies 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
Key | Datatype | Required | Description |
---|---|---|---|
if-match | string | For 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. | |||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header |