Abiquo 4.6.3 now provides JSON templates for Action plans. This feature defines the data attributes for actions in JSON format to make it easier to create action plans with the API.
...
Code Block |
---|
{ "title":"ResizeDiskConfig", "type":"object", "additionalProperties":false, "properties":{ "diskSequence":{ "type":"integer", "minimum":0 }, "quantity":{ "type":"integer", "minimum":1 }, "unit":{ "type":"string", "enum":[ "GIGABYTES", "MEGABYTES" ] } }, "required":[ "diskSequence", "quantity", "unit" ] } |
And an example action plan entry to resize a disk is as follows:
Code Block |
---|
{ "sequence":0, "type":"RESIZE_DISK", "configuration":"{\"diskSequence\":0,\"quantity\":64,\"unit\":\"MEGABYTES\"}", "links":[ { "title":"ABQ_a6c2db91-196b-4395-8b20-9fb202ea2e4e", "rel":"virtualmachine", "type":"application/vnd.abiquo.virtualmachine+json", "href":"https://mjsabiquo.bcn.abiquo.com:443/api/cloud/virtualdatacenters/2/virtualappliances/2/virtualmachines/3" } ] } |
...