Page tree


Knowledge Base


Feedback

Have a suggestion for the Armor Knowledge Base?

Send a message to
kb@armor.com.









Overview

The Add Storage Disk to VM API adds a disk to a virtual machine through the ID.

You can use the Get VMs API to find the virtual machine ID (vmId).
You can use the Get Available Storage API to find the storage SKU (SKU). 

Sample Request

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

{"storage":[{"Size":10,"Sku":"SAN-001"}]}

Input


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

API Call / URLMethod / Type

vms/{vmId}/disk

POST


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

ParameterDescriptionRequired or optionalTypeExample
vmIdThe ID of the virtual machineRequiredInteger8939
Size

The size of the disk to add.

(The size is measured in gigabyes.)

(Based on the size, the price will increase.)

RequiredInteger10
SkuThe SKU of the storage tier to addRequiredStringSAN-001

Sample Return

StatusResponse
200
Accepted
403
   Forbidden
  {
   "Message": "Permission Denied to requested resource."
  }

401
Unauthorized Request
{
 "Message": "Missing or invalid authorization token."
}