Page tree

Overview

The Adjust VM Resources API call updates a virtual machine to a new, fixed instance in order to increase/decrease CPU and/or memory. 

When you upgrade, your virtual machine will be upgraded immediately. Your next bill will be pro-rated to reflect this upgrade.

When you downgrade a virtual machine, the changes will take place immediately.

You can use the GET https://api.armor.com/products/ID API to find the product SKU (sku) for additional resources.
You can use the Get VMs API to find the virtual machine ID (id) and account ID (accountId).

Sample request

POST https://api.armor.com/vms/6/adjustResources

{
 "accountId": 2,
 "vmId": 6,
 "userEmail": "test.dev@armor.com",
 "sku": "A1-122",
 "updateNow": true
}

Input

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

API Call / URLMethod / Type

/vms/{id}/adjustResources

POST


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

ParameterDescriptionRequired or optionalTypeExample
idThe ID of the virtual machineRequiredInteger6
accountIdThe ID of the AMP account.RequiredInteger2
vmIdThe ID of the virtual machineRequiredInteger6
userEmailThe email address (AMP username) for the account holder.RequiredStringtest.dev@armor.com
skuThe product SKURequiredGUIDA1-122
updateNow

Changes will take place immediately.

(You must enter true.)

RequiredBooleantrue



Sample return

StatusResponse
200
True
400
Bad Request