Page tree


Armor Knowledge Base


Feedback

Have a suggestion for the Armor Knowledge Base?

Send a message to kb@armor.com.









Overview


The Delete Storage Disk API deletes a disk for a virtual machine.  

You can use the Get VMs API to find the virtual machine ID (vmId). 
You can use the Get VM Detail API to find the disk ID (ID).

Sample Request

POST https://api.armor.com/vms/8939/disk/8596

Input


The following table describes the different parts of this API call: 

API Call / URLMethod / Type

vms/{vmId}/disk/{diskId}

DELETE


The following table describes the parameter (or parameters) for this API call:

ParameterDescriptionRequired or optionalTypeExample
vmIdThe ID for the virtual machineRequiredInteger8939
diskIdThe ID of the disk to delete.RequiredInteger8596

Sample Return

StatusResponse
200
Accepted
400
Bad Request
{
 "error": true,
 "message": "An internal server error has occurred."
}
400
Bad Request
{
 "error": true,
 "message": "Invalid request."
}
403
Forbidden
{
 "Message": "Permission Denied to requested resource."
}