Page tree




In This Document 


Was this document useful? 
Your Rating:
Results:
1 Star2 Star3 Star4 Star5 Star
2 rates


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."
}