How To Understand This Documentation

This wiki document covers the RESTful API for creating and managing cloud resources with the Abiquo server. You can administer physical resources and then expose them to requests made by the virtual appliances.

How to use this API

The Abiquo model normally divides Resources into two sections: The Resource Data Model shows the Resource fields, and the Related Methods Model shows the available actions to send to modify the Resource.

Resource Data Model

These fields are split into the following columns:

Name Description
Field name The key of the name in the XML representation
Type The type of the value of the XML representation
Occurs How many times we can see this field in the representation
Required This could have three values: true, that means the field is mandatory; optional, you may or may not use this field in the message body request; or false, where you should not send this field in the message body request
Description A brief description of the field

Related methods

This Model shows the specifications for calling any resource and its given response. You should be able to develop code to send-receive messages from your client to our API using this Model as a guide.

Key Content Commonly Useful In
Synopsis Schematic call with the tuple METHOD - URI All methods
Request Headers The mandatory headers to send the call All methods
Request Parameters A table with the Web Params used to filter the request GET methods
Request Message Body The Resource Data Model object to send with the request POST and PUT methods
Request Example A simple example for better understanding All methods
Response Headers The response Headers that will be returned All methods
Response Message Body The Resource Data Model object sent by the response GET and POST methods
Response Status The header status the client could receive All methods
Response Example A simple example to show the response All methods

Examples

Below is an example for both specifications (Request and Response):

PUT Machine Request

Here you can see:

  • The curl execution (marked with the %). Inside this you can distinguish the Request Header (defined by -H parameter) and the Request Message Body (defined by '-d' parameter)
  • The --verbose mode reveals all the lines that belong to API input parameters (marked by '>') and API output parameters (marked by '<'). You cannot see the API output parameters in the above example because it is a Request message.

Currently we only support the API for the application/xml media type. We hope to offer more media types soon.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.