Table of Contents |
---|
This tutorial describes how to create an Abiquo datacenter and incorporate a hypervisor, which are tasks of the cloud administrator.
Before you begin working with the API tutorials, you should complete the following prerequisites:
The platform should be installed in a test environment, see Installation
The platform should have a license added, on the License tab in Configuration view#Licenses
You should have basic general knowledge of the Abiquo platform, see the Get started section
You should have worked with the Abiquo user interface, for example, by working through the Abiquo quick tutorial
You should have API credentials and a chosen authentication method, see Authentication
This tutorial uses the Cloud Administrator default account and does not show proper authentication
This tutorial corresponds to the UI information on the Compute in datacenters page.
...
You will need the racks link in the next step, which is to create a rack.
Tip | |
---|---|
title | Allow tenants to work with the datacenterIf you will be working with an enterprise other than the one of the user that created the datacenter, you will need to create a datacenter limit for your tenant that will allow the tenant to use the datacenter. This is the same as editing the enterprise in the UI and adding the datacenter to the enterprise's list of allowed datacenters. To do this, you will need the link to the datacenter, but you will need to change the value of the "rel" link from "edit" to "datacenter". |
Expand | ||
---|---|---|
| ||
|
Add a rack
In Abiquo, hypervisors and container servers are organized in racks, in order to share the same network infrastructure and for high availability, for example.
...
Expand | ||
---|---|---|
| ||
|
...
Add a cloud node
A cloud node is the physical machine and hypervisor host or container server, for example.
...
Expand | ||
---|---|---|
| ||
|
...
Retrieve a KVM machine
And if you're doing a test, maybe you're just using a KVM, in which case you should use the following cURL, modifying the appropriate parameters.
Code Block |
---|
GET https://example.com/api/admin/datacenters/3/action/discover?hypervisor=KVM&ip=mjskvm.bcn.abiquo.com -H 'Accept:application/vnd.abiquo.machines+json;version=4.6' \ -d @requestpayload.json \ -u user:password --verbose |
...
Modify the machine details
...