Abiquo 2.6


Skip to end of metadata
Go to start of metadata

Datacenters Resource

Exposed Resources Hierarchy
Datacenters Resource

Contents:

A Datacenter is a set of IT resources (such as servers, networking and external storage) that are in the same physical location (the same Local Area Network). This resource can be used to create Datacenters and retrieve the collection of datacenters managed by Abiquo.

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/datacenters

Exposed Methods

Get the list of datacenters

Return the list of all datacenters, which can be filtered by enterprise or scope.

Synopsis: GET http://example.com/api/admin/datacenters
Roles Required: ROLE_PHYS_DC_ENUMERATE,ROLE_VDC_MANAGE,ROLE_USERS_MANAGE_ENTERPRISE,ROLE_PRICING_VIEW,ROLE_APPLIB_VIEW,ROLE_USERS_VIEW
Request Headers: Accept: application/vnd.abiquo.datacenters+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

idEnterprise

false

 

identifier of an enterprise

pricing

false

 

identifier of a pricing template

idScope

false

 

identifier of a scope

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: Datacenters Media Type
Request Example:

 Click here to show or hide the request example
Get the list of datacenters example
curl -X GET http://example.com/api/admin/datacenters\
	 -H 'Accept: application/vnd.abiquo.datacenters+xml; version=2.6'	\
	 -u user:password --verbose


GET http://example.com/api/admin/datacenters HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.datacenters+xml;version=2.6


HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:11:22 GMT
Set-Cookie: JSESSIONID=47E86632BE37E6187AAC8B1A0A809163; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzI4MjkzNzplM2RmOTIwYjdlZmRlN2VlNjE4NTJjZjg2ZjA4NTJjMjpBQklRVU8; Expires=Wed, 16-Jan-2013 14:41:22 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.datacenters+xml;version=2.6
Content-Length: 2392

<?xml version="1.0" encoding="UTF-8"?>
<datacenters>
  <datacenter>
    <link
      href="http://example.com/api/admin/datacenters/1/action/checkmachineipmistate"
      rel="checkmachineipmistate" type="application/vnd.abiquo.machineipmistate+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/checkmachinestate"
      rel="checkmachinestate" type="application/vnd.abiquo.machinestate+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/devices"
      rel="devices" type="application/vnd.abiquo.datacenters+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/discovermultiple"
      rel="discovermultiple" type="application/vnd.abiquo.machines+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/discoversingle"
      rel="discoversingle" type="application/vnd.abiquo.machine+xml"/>
    <link href="http://example.com/api/admin/datacenters/1"
      rel="edit" type="application/vnd.abiquo.datacenter+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/enterprises"
      rel="enterprises" type="application/vnd.abiquo.enterprises+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/getlimits"
      rel="getLimits" type="application/vnd.abiquo.limit+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/hypervisor"
      rel="hypervisor" type="text/plain"/>
    <link
      href="http://example.com/api/admin/datacenters/1/hypervisors"
      rel="hypervisors" type="application/vnd.abiquo.hypervisortypes+xml"/>
    <link href="http://example.com/api/admin/datacenters/1/network"
      rel="network" type="application/vnd.abiquo.vlans+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/networkservicetypes"
      rel="networkservicetypes" type="application/vnd.abiquo.networkservicetypes+xml; version=2.6"/>
    <link href="http://example.com/api/admin/datacenters/1/racks"
      rel="racks" type="application/vnd.abiquo.racks+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/remoteservices"
      rel="remoteservices" type="application/vnd.abiquo.remoteservices+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/tiers"
      rel="tiers" type="application/vnd.abiquo.tiers+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/updateusedresources" rel="updateusedresources"/>
    <id>1</id>
    <location>New York</location>
    <name>JC-b46300d9-bc6</name>
    <uuid>AbiquoIT</uuid>
  </datacenter>
</datacenters>


Get the list of datacenter names and identifiers

Return the list of all datacenters, with only two attributes, identifier and name, which can be filtered by enterprise or scope.

Synopsis: GET http://example.com/api/admin/datacenters
Roles Required: ROLE_PHYS_DC_ENUMERATE,ROLE_VDC_MANAGE,ROLE_USERS_MANAGE_ENTERPRISE,ROLE_PRICING_VIEW,ROLE_APPLIB_VIEW,ROLE_USERS_VIEW
Request Headers: Accept: application/vnd.abiquo.datacenterslight+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

0

first element to retrieve

limit

false

25

number of elements to return

idEnterprise

false

 

filters the datacenters that are allowed in enterprise with identifier
idEnterprise

pricing

false

 

identifier of a pricing template

idScope

false

 

identifier of a scope

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: DatacentersLight Media Type
Request Example:

 Click here to show or hide the request example
Get the list of datacenter names and identifiers example
curl -X GET http://example.com/api/admin/datacenters \
        -H 'Accept: application/vnd.abiquo.datacenterslight+xml;version=2.6' \
        -u user:pass --verbose
  
GET /api/admin/datacenters HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
Accept: application/vnd.abiquo.datacenterslight+xml;version=2.6
 
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: auth=YWRtaW46MTM0NDMzMDQyODkxMToyZjNlNzZhYTZkMGJhNWU5OTU1MmYxOTUyMzJmZDM4MjpBQklRVU8; Expires=Tue, 07-Aug-2012 09:07:08 GMT; Path=/api
Set-Cookie: JSESSIONID=6DBD4F9B5144E8881736432751603EA3; Path=/api
Content-Type: application/vnd.abiquo.datacenterslight+xml;version=2.6
Content-Length: 728
Date: Tue, 07 Aug 2012 08:37:08 GMT
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datacenterslight>
    <link rel="first" href="http://example.com/api/admin/datacenters?limit=25"/>
    <link rel="last" href="http://example.com/api/admin/datacenters?startwith=0&amp;limit=25"/>
    <totalSize>1</totalSize>
    <datacenterlight>
        <link rel="datacenter" href="http://example.com/api/admin/datacenters/1"/>
        <idDatacenter>1</idDatacenter>
        <name>dc</name>
    </datacenterlight>
</datacenterslight>


Get the list of datacenters with own remote services

Returns the list of all datacenters with own their remote services. The list can be filtered by enterprise.

Synopsis: GET http://example.com/api/admin/datacenters
Roles Required: ROLE_PHYS_DC_ENUMERATE,ROLE_VDC_MANAGE,ROLE_USERS_MANAGE_ENTERPRISE,ROLE_PRICING_VIEW,ROLE_APPLIB_VIEW,ROLE_USERS_VIEW
Request Headers: Accept: application/vnd.abiquo.datacenters_rs+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

idEnterprise

false

 

identifier of an enterprise

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: Datacenters Media Type
Request Example:

 Click here to show or hide the request example
Get the list of datacenters with own remote services example
curl -X GET http://example.com/api/admin/datacenters\
	 -H 'Accept: application/vnd.abiquo.datacenters+xml; version=2.6'	\
	 -u user:password --verbose



GET http://example.com/api/admin/datacenters HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.datacenters+xml;version=2.6




HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:11:22 GMT
Set-Cookie: JSESSIONID=47E86632BE37E6187AAC8B1A0A809163; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzI4MjkzNzplM2RmOTIwYjdlZmRlN2VlNjE4NTJjZjg2ZjA4NTJjMjpBQklRVU8; Expires=Wed, 16-Jan-2013 14:41:22 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.datacenters+xml;version=2.6
Content-Length: 2392


<?xml version="1.0" encoding="UTF-8"?>
<datacenters>
  <datacenter>
    <link
      href="http://example.com/api/admin/datacenters/1/action/checkmachineipmistate"
      rel="checkmachineipmistate" type="application/vnd.abiquo.machineipmistate+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/checkmachinestate"
      rel="checkmachinestate" type="application/vnd.abiquo.machinestate+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/devices"
      rel="devices" type="application/vnd.abiquo.datacenters+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/discovermultiple"
      rel="discovermultiple" type="application/vnd.abiquo.machines+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/discoversingle"
      rel="discoversingle" type="application/vnd.abiquo.machine+xml"/>
    <link href="http://example.com/api/admin/datacenters/1"
      rel="edit" type="application/vnd.abiquo.datacenter+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/enterprises"
      rel="enterprises" type="application/vnd.abiquo.enterprises+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/getlimits"
      rel="getLimits" type="application/vnd.abiquo.limit+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/hypervisor"
      rel="hypervisor" type="text/plain"/>
    <link
      href="http://example.com/api/admin/datacenters/1/hypervisors"
      rel="hypervisors" type="application/vnd.abiquo.hypervisortypes+xml"/>
    <link href="http://example.com/api/admin/datacenters/1/network"
      rel="network" type="application/vnd.abiquo.vlans+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/networkservicetypes"
      rel="networkservicetypes" type="application/vnd.abiquo.networkservicetypes+xml; version=2.6"/>
    <link href="http://example.com/api/admin/datacenters/1/racks"
      rel="racks" type="application/vnd.abiquo.racks+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/remoteservices"
      rel="remoteservices" type="application/vnd.abiquo.remoteservices+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/tiers"
      rel="tiers" type="application/vnd.abiquo.tiers+xml"/>
    <link
      href="http://example.com/api/admin/datacenters/1/action/updateusedresources" rel="updateusedresources"/>
    <id>1</id>
    <location>New York</location>
    <name>JC-b46300d9-bc6</name>
    <uuid>AbiquoIT</uuid>
  </datacenter>
</datacenters>


Create a new datacenter

This method is used to create datacenters.

A datacenter can be created with remote services if you send them in the DTO. In this case, if the remote services return configuration errors, then the datacenter will be created and the response will show the configuration errors.

Synopsis: POST http://example.com/api/admin/datacenters
Roles Required: ROLE_PHYS_DC_MANAGE
Request Headers: Accept: application/vnd.abiquo.datacenter+xml; version=2.6; Content-type: application/vnd.abiquo.datacenter+xml; version=2.6;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: Datacenter Media Type
Response Message Body Entity: Datacenter Media Type
Request Example:

 Click here to show or hide the request example
Create a new datacenter example
curl -X POST http://example.com/api/admin/datacenters\
	 -H 'Accept: application/vnd.abiquo.datacenter+xml; version=2.6'	\
	 -H 'Content-Type: application/vnd.abiquo.datacenter+xml; version=2.6'	\
	 -d @entity.xml	\
	 -u user:password --verbose


POST http://example.com/api/admin/datacenters HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.datacenter+xml;version=2.6
Content-Type: application/vnd.abiquo.datacenter+xml;version=2.6
Content-Length: 150


HTTP/1.1 201 Created
Date: Wed, 16 Jan 2013 14:05:33 GMT
Location: http://example.com/api/admin/datacenters/1
Set-Cookie: JSESSIONID=4A52D72033F5DAF3075F66411FD71642; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NjkzMTQwMjplOGQxZTIxMzVjOTAxMzI2ZWY3ODk0MjNjODNiOGNmNjpBQklRVU8; Expires=Wed, 16-Jan-2013 14:35:31 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.datacenter+xml;version=2.6
Content-Length: 2344

<?xml version="1.0" encoding="UTF-8"?>
<datacenter>
  <link href="http://example.com/api/admin/datacenters/1" rel="edit" type="application/vnd.abiquo.datacenter+xml"/>
  <link href="http://example.com/api/admin/datacenters/1/racks"
    rel="racks" type="application/vnd.abiquo.racks+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/remoteservices"
    rel="remoteservices" type="application/vnd.abiquo.remoteservices+xml"/>
  <link href="http://example.com/api/admin/datacenters/1/hypervisors"
    rel="hypervisors" type="application/vnd.abiquo.hypervisortypes+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/enterprises"
    rel="enterprises" type="application/vnd.abiquo.enterprises+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/updateusedresources" rel="updateusedresources"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discoversingle"
    rel="discoversingle" type="application/vnd.abiquo.machine+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discovermultiple"
    rel="discovermultiple" type="application/vnd.abiquo.machines+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/hypervisor"
    rel="hypervisor" type="text/plain"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachinestate"
    rel="checkmachinestate" type="application/vnd.abiquo.machinestate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachineipmistate"
    rel="checkmachineipmistate" type="application/vnd.abiquo.machineipmistate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/tiers"
    rel="tiers" type="application/vnd.abiquo.tiers+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/devices"
    rel="devices" type="application/vnd.abiquo.datacenters+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/networkservicetypes"
    rel="networkservicetypes" type="application/vnd.abiquo.networkservicetypes+xml; version=2.6"/>
  <link href="http://example.com/api/admin/datacenters/1/network"
    rel="network" type="application/vnd.abiquo.vlans+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/getlimits"
    rel="getLimits" type="application/vnd.abiquo.limit+xml"/>
  <id>1</id>
  <location>Honolulu</location>
  <name>JC-8e545f39-64b</name>
</datacenter>

Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Create a new public datacenter

This method is used to create public datacenters.

A datacenter can be created with remote services if you send them in the DTO. In this case, if the remote services return configuration errors, then the datacenter will be created and the response will show the configuration errors.

Synopsis: POST http://example.com/api/admin/datacenters
Roles Required: ROLE_PHYS_DC_MANAGE
Request Headers: Accept: application/vnd.abiquo.publicdatacenter+xml; version=2.6; Content-type: application/vnd.abiquo.publicdatacenter+xml; version=2.6;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: PublicDatacenter Media Type
Response Message Body Entity: PublicDatacenter Media Type
Request Example:

 Click here to show or hide the request example
Create a new datacenter example
curl -X POST http://example.com/api/admin/datacenters\
	 -H 'Accept: application/vnd.abiquo.publicdatacenter+xml; version=2.6'	\
	 -H 'Content-Type: application/vnd.abiquo.publicdatacenter+xml; version=2.6'	\
	 -d @entity.xml	\
	 -u user:password --verbose


POST http://example.com/api/admin/datacenters HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.publicdatacenter+xml;version=2.6
Content-Type: application/vnd.abiquo.publicdatacenter+xml;version=2.6
Content-Length: 150


HTTP/1.1 201 Created
Date: Wed, 16 Jan 2013 14:05:33 GMT
Location: http://example.com/api/admin/datacenters/1
Set-Cookie: JSESSIONID=4A52D72033F5DAF3075F66411FD71642; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NjkzMTQwMjplOGQxZTIxMzVjOTAxMzI2ZWY3ODk0MjNjODNiOGNmNjpBQklRVU8; Expires=Wed, 16-Jan-2013 14:35:31 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.publicdatacenter+xml;version=2.6
Content-Length: 2344

<?xml version="1.0" encoding="UTF-8"?>
<datacenter>
  <link href="http://example.com/api/admin/datacenters/1" rel="edit" type="application/vnd.abiquo.publicdatacenter+xml"/>
  <link href="http://example.com/api/admin/datacenters/1/racks"
    rel="racks" type="application/vnd.abiquo.racks+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/remoteservices"
    rel="remoteservices" type="application/vnd.abiquo.remoteservices+xml"/>
  <link href="http://example.com/api/admin/datacenters/1/hypervisors"
    rel="hypervisors" type="application/vnd.abiquo.hypervisortypes+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/enterprises"
    rel="enterprises" type="application/vnd.abiquo.enterprises+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/updateusedresources" rel="updateusedresources"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discoversingle"
    rel="discoversingle" type="application/vnd.abiquo.machine+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discovermultiple"
    rel="discovermultiple" type="application/vnd.abiquo.machines+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/hypervisor"
    rel="hypervisor" type="text/plain"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachinestate"
    rel="checkmachinestate" type="application/vnd.abiquo.machinestate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachineipmistate"
    rel="checkmachineipmistate" type="application/vnd.abiquo.machineipmistate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/tiers"
    rel="tiers" type="application/vnd.abiquo.tiers+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/devices"
    rel="devices" type="application/vnd.abiquo.datacenters+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/networkservicetypes"
    rel="networkservicetypes" type="application/vnd.abiquo.networkservicetypes+xml; version=2.6"/>
  <link href="http://example.com/api/admin/datacenters/1/network"
    rel="network" type="application/vnd.abiquo.vlans+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/getlimits"
    rel="getLimits" type="application/vnd.abiquo.limit+xml"/>
  <id>1</id>
  <location>Honolulu</location>
  <name>JC-8e545f39-64b</name>
  <endPoint>ec2.us-east-1.amazonaws.com</endPoint>
  <provider>Amazon</provider>
  <region>us-east-1</region>
</datacenter>

Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/datacenters/{datacenter}

Exposed Methods

Retrieve a single Datacenter

Get a single Datacenter by Datacenter identifier

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}
Roles Required: ROLE_PHYS_DC_ENUMERATE,ROLE_USERS_MANAGE_ENTERPRISE, ROLE_APPLIB_ALLOW_MODIFY
Request Headers: Accept: application/vnd.abiquo.datacenter+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: Datacenter Media Type
Request Example:

 Click here to show or hide the request example
Retrieve a single Datacenter example
curl -X GET http://example.com/api/admin/datacenters/1\
	 -H 'Accept: application/vnd.abiquo.datacenter+xml; version=2.6'	\
	 -u user:password --verbose


GET http://example.com/api/admin/datacenters/1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.datacenter+xml;version=2.6


HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:07 GMT
Set-Cookie: JSESSIONID=14211E9CC250708C2C76792D8446AFFF; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIwNzk1NTo4NGUwM2QxNzhmMGU3YmQ5NmNlMDlkMmI5N2JiMTJhMzpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:07 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.datacenter+xml;version=2.6
Content-Length: 2365

<?xml version="1.0" encoding="UTF-8"?>
<datacenter>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachineipmistate"
    rel="checkmachineipmistate" type="application/vnd.abiquo.machineipmistate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachinestate"
    rel="checkmachinestate" type="application/vnd.abiquo.machinestate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/devices"
    rel="devices" type="application/vnd.abiquo.datacenters+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discovermultiple"
    rel="discovermultiple" type="application/vnd.abiquo.machines+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discoversingle"
    rel="discoversingle" type="application/vnd.abiquo.machine+xml"/>
  <link href="http://example.com/api/admin/datacenters/1" rel="edit" type="application/vnd.abiquo.datacenter+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/enterprises"
    rel="enterprises" type="application/vnd.abiquo.enterprises+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/getlimits"
    rel="getLimits" type="application/vnd.abiquo.limit+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/hypervisor"
    rel="hypervisor" type="text/plain"/>
  <link href="http://example.com/api/admin/datacenters/1/hypervisors"
    rel="hypervisors" type="application/vnd.abiquo.hypervisortypes+xml"/>
  <link href="http://example.com/api/admin/datacenters/1/network"
    rel="network" type="application/vnd.abiquo.vlans+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/networkservicetypes"
    rel="networkservicetypes" type="application/vnd.abiquo.networkservicetypes+xml; version=2.6"/>
  <link href="http://example.com/api/admin/datacenters/1/racks"
    rel="racks" type="application/vnd.abiquo.racks+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/remoteservices"
    rel="remoteservices" type="application/vnd.abiquo.remoteservices+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/tiers"
    rel="tiers" type="application/vnd.abiquo.tiers+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/updateusedresources" rel="updateusedresources"/>
  <id>1</id>
  <location>New York</location>
  <name>JC-b46300d9-bc6</name>
  <uuid>AbiquoIT</uuid>
</datacenter>


Retrieve a single Public Datacenter

Get a single Datacenter by Datacenter identifier

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}
Roles Required: ROLE_PHYS_DC_ENUMERATE,ROLE_USERS_MANAGE_ENTERPRISE, ROLE_APPLIB_ALLOW_MODIFY
Request Headers: Accept: application/vnd.abiquo.publicdatacenter+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: 
Response Message Body Entity: PublicDatacenter Media Type
Request Example:

 Click here to show or hide the request example
Retrieve a single Datacenter example
curl -X GET http://example.com/api/admin/datacenters/1\
	 -H 'Accept: application/vnd.abiquo.publicdatacenter+xml; version=2.6'	\
	 -u user:password --verbose


GET http://example.com/api/admin/datacenters/1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.publicdatacenter+xml;version=2.6


HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:07 GMT
Set-Cookie: JSESSIONID=14211E9CC250708C2C76792D8446AFFF; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIwNzk1NTo4NGUwM2QxNzhmMGU3YmQ5NmNlMDlkMmI5N2JiMTJhMzpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:07 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.publicdatacenter+xml;version=2.6
Content-Length: 2365

<?xml version="1.0" encoding="UTF-8"?>
<datacenter>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachineipmistate"
    rel="checkmachineipmistate" type="application/vnd.abiquo.machineipmistate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachinestate"
    rel="checkmachinestate" type="application/vnd.abiquo.machinestate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/devices"
    rel="devices" type="application/vnd.abiquo.datacenters+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discovermultiple"
    rel="discovermultiple" type="application/vnd.abiquo.machines+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discoversingle"
    rel="discoversingle" type="application/vnd.abiquo.machine+xml"/>
  <link href="http://example.com/api/admin/datacenters/1" rel="edit" type="application/vnd.abiquo.datacenter+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/enterprises"
    rel="enterprises" type="application/vnd.abiquo.enterprises+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/getlimits"
    rel="getLimits" type="application/vnd.abiquo.limit+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/hypervisor"
    rel="hypervisor" type="text/plain"/>
  <link href="http://example.com/api/admin/datacenters/1/hypervisors"
    rel="hypervisors" type="application/vnd.abiquo.hypervisortypes+xml"/>
  <link href="http://example.com/api/admin/datacenters/1/network"
    rel="network" type="application/vnd.abiquo.vlans+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/networkservicetypes"
    rel="networkservicetypes" type="application/vnd.abiquo.networkservicetypes+xml; version=2.6"/>
  <link href="http://example.com/api/admin/datacenters/1/racks"
    rel="racks" type="application/vnd.abiquo.racks+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/remoteservices"
    rel="remoteservices" type="application/vnd.abiquo.remoteservices+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/tiers"
    rel="tiers" type="application/vnd.abiquo.tiers+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/updateusedresources" rel="updateusedresources"/>
  <id>1</id>
  <location>New York</location>
  <name>JC-b46300d9-bc6</name>
  <uuid>AbiquoIT</uuid>
  <endPoint>ec2.us-east-1.amazonaws.com</endPoint>
  <provider>Amazon</provider>
  <region>us-east-1</region>
</datacenter>


Retrieve the hypervisor type from remote machine

Return the Hypervisor type of a remote machine using the given IP

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/action/hypervisor
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: text/plain; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

ip

true

 

The IP of the target cloud node.

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: String
Request Example:

 Click here to show or hide the request example
Retrieve the hypervisor type from remote machine example
curl -X GET http://example.com/api/admin/datacenters/1/action/hypervisor?ip=10.60.20.62\
	 -H 'Accept: text/plain'	\
	 -u user:password --verbose


GET http://example.com/api/admin/datacenters/1/action/hypervisor?ip=10.60.20.62 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: text/plain


HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Wed, 16 Jan 2013 14:10:07 GMT
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIwMDcxODo5ZTAxMTMxZDBiZTY5MzdkNGZkY2FmNGYxMDViNmQ2NzpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:00 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: text/plain


Retrieve enterprises using a Datacenter

Return all Enterprises that are using the Datacenter

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/action/enterprises
Roles Required: ROLE_PHYS_DC_RETRIEVE_RESOURCE_USAGE,ROLE_PHYS_DC_ENUMERATE
Request Headers: Accept: application/vnd.abiquo.enterprises+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

 

first element to retrieve

network

false

 

true if must return enterprises with network

has

false

 

filter the request

limit

false

25

number of elements to return

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: Enterprises Media Type
Request Example:

 Click here to show or hide the request example
Retrieve enterprises using a Datacenter example
curl -X GET http://example.com/api/admin/datacenters/1/action/enterprises -H 'Accept:application/vnd.abiquo.enterprises+xml; version=2.6' -u user:password --verbose

> GET /api/admin/datacenters/1/action/enterprises HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept:application/vnd.abiquo.enterprises+xml; version=2.6
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTQ3NzYyNTg2NTo3OWY1ODIyMWFkODljZjE5OGE2ZWQ2NjQ3OGVmN2UxZTpBQklRVU8; Expires=Tue, 29-Jan-2013 16:40:25 GMT; Path=/api
< Set-Cookie: JSESSIONID=DD6495B23BF40D45BC42B23742F2A21E; Path=/api
< Content-Type: application/vnd.abiquo.enterprises+xml;version=2.6
< Content-Length: 2796
< Date: Tue, 29 Jan 2013 16:10:25 GMT
< 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<enterprises>
    <link rel="first" href="http://localhost:80/api/admin/datacenters/1/action/enterprises"/>
    <link rel="last" href="http://localhost:80/api/admin/datacenters/1/action/enterprises?network=false&amp;startwith=0&amp;limit=25"/>
    <totalSize>1</totalSize>
    <enterprise>
        <link rel="appslib/templateDefinitionLists" type="application/vnd.abiquo.templatedefinitionlists+xml" href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitionLists"/>
        <link rel="appslib/templateDefinitions" type="application/vnd.abiquo.templatedefinitions+xml" href="http://localhost:80/api/admin/enterprises/1/appslib/templateDefinitions"/>
        <link rel="cloud/virtualdatacenters" type="application/vnd.abiquo.virtualdatacenters+xml" href="http://localhost:80/api/admin/enterprises/1/action/virtualdatacenters"/>
        <link rel="datacenterrepositories" type="application/vnd.abiquo.datacenterrepositories+xml" href="http://localhost:80/api/admin/enterprises/1/datacenterrepositories"/>
        <link rel="edit" type="application/vnd.abiquo.enterprise+xml" href="http://localhost:80/api/admin/enterprises/1"/>
        <link rel="externalnetworks" type="application/vnd.abiquo.vlans+xml" href="http://localhost:80/api/admin/enterprises/1/action/externalnetworks"/>
        <link title="ips" rel="ips" href="http://localhost:80/api/admin/enterprises/1/action/ips"/>
        <link rel="limits" type="application/vnd.abiquo.limits+xml" href="http://localhost:80/api/admin/enterprises/1/limits"/>
        <link rel="properties" type="application/vnd.abiquo.enterpriseproperties+xml" href="http://localhost:80/api/admin/enterprises/1/properties"/>
        <link rel="reservedmachines" type="application/vnd.abiquo.machines+xml" href="http://localhost:80/api/admin/enterprises/1/reservedmachines"/>
        <link rel="users" type="application/vnd.abiquo.users+xml" href="http://localhost:80/api/admin/enterprises/1/users"/>
        <link rel="virtualappliances" type="application/vnd.abiquo.virtualappliances+xml" href="http://localhost:80/api/admin/enterprises/1/action/virtualappliances"/>
        <link rel="virtualmachines" type="application/vnd.abiquo.virtualmachines+xml" href="http://localhost:80/api/admin/enterprises/1/action/virtualmachines"/>
        <link rel="volumes" type="application/vnd.abiquo.iscsivolumes+xml" href="http://localhost:80/api/admin/enterprises/1/action/volumes"/>
        <cpuHard>0</cpuHard>
        <cpuSoft>0</cpuSoft>
        <ramHard>0</ramHard>
        <ramSoft>0</ramSoft>
        <hdHard>0</hdHard>
        <hdSoft>0</hdSoft>
        <storageHard>0</storageHard>
        <storageSoft>0</storageSoft>
        <vlansHard>0</vlansHard>
        <vlansSoft>0</vlansSoft>
        <publicIpsHard>0</publicIpsHard>
        <publicIpsSoft>0</publicIpsSoft>
        <id>1</id>
        <isReservationRestricted>false</isReservationRestricted>
        <name>Abiquo</name>
        <repositoryHard>0</repositoryHard>
        <repositorySoft>0</repositorySoft>
    </enterprise>
</enterprises>


Check the state from remote machine

Checks the machine state from remote machine.

This request is used to check the state of a remote machine given its user, password and hypervisor type. This machine does not need to be managed by Abiquo. The response entity is a MachineState. Behind the scenes, this method uses the Discovery Manager remote service.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/action/checkmachinestate
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: application/vnd.abiquo.machinestate+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

ip

true

 

The IP of the target cloud node.

hypervisor

true

 

The cloud node hypervisor type.

user

true

 

The hypervisor user.

password

true

 

The hypervisor password.

port

true

 

The hypervisor AIM port.

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: MachineState Media Type
Request Example:

 Click here to show or hide the request example
Check the state from remote machine example
curl -X GET http://example.com/api/admin/datacenters/1/action/checkmachinestate?hypervisor=VMX_04&ip=10.60.20.62&user=root&password=temporal&port=443\
	 -H 'Accept: application/vnd.abiquo.machinestate+xml; version=2.6'	\
	 -u user:password --verbose


GET http://example.com/api/admin/datacenters/1/action/checkmachinestate?hypervisor=VMX_04&ip=10.60.20.62&user=root&password=temporal&port=443 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.machinestate+xml;version=2.6


HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:09:57 GMT
Set-Cookie: JSESSIONID=FE4AC9370D13181DB80FAC16BEBB3AA9; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzE4OTg0ODo2YzkwMDI5OGZiOWQ1YzkyZTJjODM4MDliZmRiZmNiZTpBQklRVU8; Expires=Wed, 16-Jan-2013 14:39:49 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.machinestate+xml;version=2.6
Content-Length: 106

<?xml version="1.0" encoding="UTF-8"?>
<MachineState>
  <state>MANAGED</state>
</MachineState>


Check IPMI configuration of a remote machine

Check IPMI configuration of a remote machine

This request is used to check the configuration of a remote machine given its user, password and port. This machine does not need to be managed by abiquo. Behind the scenes, this method uses the Discovery Manager remote service.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/action/checkmachineipmistate
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: application/vnd.abiquo.machineipmistate+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

ip

true

 

The IP of the target cloud node.

user

true

 

The hypervisor user.

password

true

 

The hypervisor password.

port

false

 

The hypervisor AIM port.

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: MachineIpmiState Media Type
Request Example:

 Click here to show or hide the request example
Check IPMI configuration of a remote machine example
curl -X GET 'http://example.com/api/admin/datacenters/1/action/checkmachineipmistate?ip=10.60.20.13&user=bla&password=bli' -H 'application/vnd.abiquo.machineipmistate+xml; version=2.6' -u user:password --verbose

> GET /api/admin/datacenters/1/action/checkmachineipmistate?ip=10.60.20.13&user=bla&password=bli HTTP/1.1
> Authorization: Basic ZXJ1aXpfYWRtaW46ZXJ1aXo=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: mothership.bcn.abiquo.com
> Accept: */*
> 
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=ZXJ1aXpfYWRtaW46MTM1MjExNTQwMzkyNjpiMDRiZTM1ZjZjNWZhYmVjOWQxYTYzZjkxYTg0Mjk4ZDpBQklRVU8; Expires=Mon, 05-Nov-2012 11:36:43 GMT; Path=/api
< Set-Cookie: JSESSIONID=63DB185ACC1D449AE263C90C09D1E795; Path=/api
< Content-Type: application/vnd.abiquo.machineipmistate+xml;version=2.6
< Content-Length: 121
< Date: Mon, 05 Nov 2012 11:07:03 GMT
< 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<machineipmistate>
    <state>NOT_CONFIGURED</state>
</machineipmistate>

Update an existing datacenter

Modify a datacenter

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}
Roles Required: ROLE_PHYS_DC_MANAGE
Request Headers: Accept: application/vnd.abiquo.datacenter+xml; version=2.6; Content-type: application/vnd.abiquo.datacenter+xml; version=2.6;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: Datacenter Media Type
Response Message Body Entity: Datacenter Media Type
Request Example:

 Click here to show or hide the request example
Update an existing datacenter example
curl -X PUT http://example.com/api/admin/datacenters/1\
	 -H 'Accept: application/vnd.abiquo.datacenter+xml; version=2.6'	\
	 -H 'Content-Type: application/vnd.abiquo.datacenter+xml; version=2.6'	\
	 -d @entity.xml	\
	 -u user:password --verbose


PUT http://example.com/api/admin/datacenters/1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.datacenter+xml;version=2.6
Content-Type: application/vnd.abiquo.datacenter+xml;version=2.6
Content-Length: 2468


HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:07 GMT
Set-Cookie: JSESSIONID=3074C7DE47141A7D3E3BC4E337D074A5; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIwNzMxNzpmZGIyMjBmNzIwMmIyZDQ5MmEyOTBjODg1OWMwZmZlNTpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:07 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.datacenter+xml;version=2.6
Content-Length: 2365

<?xml version="1.0" encoding="UTF-8"?>
<datacenter>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachineipmistate"
    rel="checkmachineipmistate" type="application/vnd.abiquo.machineipmistate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/checkmachinestate"
    rel="checkmachinestate" type="application/vnd.abiquo.machinestate+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/devices"
    rel="devices" type="application/vnd.abiquo.datacenters+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discovermultiple"
    rel="discovermultiple" type="application/vnd.abiquo.machines+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/discoversingle"
    rel="discoversingle" type="application/vnd.abiquo.machine+xml"/>
  <link href="http://example.com/api/admin/datacenters/1" rel="edit" type="application/vnd.abiquo.datacenter+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/enterprises"
    rel="enterprises" type="application/vnd.abiquo.enterprises+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/getlimits"
    rel="getLimits" type="application/vnd.abiquo.limit+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/hypervisor"
    rel="hypervisor" type="text/plain"/>
  <link href="http://example.com/api/admin/datacenters/1/hypervisors"
    rel="hypervisors" type="application/vnd.abiquo.hypervisortypes+xml"/>
  <link href="http://example.com/api/admin/datacenters/1/network"
    rel="network" type="application/vnd.abiquo.vlans+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/networkservicetypes"
    rel="networkservicetypes" type="application/vnd.abiquo.networkservicetypes+xml; version=2.6"/>
  <link href="http://example.com/api/admin/datacenters/1/racks"
    rel="racks" type="application/vnd.abiquo.racks+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/remoteservices"
    rel="remoteservices" type="application/vnd.abiquo.remoteservices+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/storage/tiers"
    rel="tiers" type="application/vnd.abiquo.tiers+xml"/>
  <link
    href="http://example.com/api/admin/datacenters/1/action/updateusedresources" rel="updateusedresources"/>
  <id>1</id>
  <location>New York</location>
  <name>JC-b46300d9-bc6</name>
  <uuid>AbiquoIT</uuid>
</datacenter>


Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Retrieve available hypervisor types from a Datacenter

Return available Hypervisor types from a Datacenter

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/hypervisors
Roles Required: ROLE_PHYS_DC_RETRIEVE_DETAILS, ROLE_VDC_MANAGE
Request Headers: Accept: application/vnd.abiquo.hypervisortypes+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: HypervisorTypes Media Type
Request Example:

 Click here to show or hide the request example
Retrieve available hypervisor types from a Datacenter example
curl -X GET http://example.com/api/admin/datacenters/1/hypervisors -H 'Accept:application/vnd.abiquo.hypervisortypes+xml; version=2.6' -u user:password --verbose

> GET /api/admin/datacenters/1/hypervisors HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept:application/vnd.abiquo.hypervisortypes+xml; version=2.6
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTQ3NzQ0ODY2MzplMTJlYTBlZGRiMzU5YzI2NDM4MGUyYmUzNjhlYjk5OTpBQklRVU8; Expires=Tue, 29-Jan-2013 16:37:28 GMT; Path=/api
< Set-Cookie: JSESSIONID=9B2E84D41B0E0F358F1897F57E854395; Path=/api
< Content-Type: application/vnd.abiquo.hypervisortypes+xml;version=2.6
< Content-Length: 548
< Date: Tue, 29 Jan 2013 16:07:28 GMT
< 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<hypervisorstype>
    <hypervisortype>
        <baseFormat>VMDK_FLAT</baseFormat>
        <compatibilityTable>RAW</compatibilityTable>
        <compatibilityTable>VMDK_SPARSE</compatibilityTable>
        <compatibilityTable>VMDK_FLAT</compatibilityTable>
        <compatibilityTable>VHD_FLAT</compatibilityTable>
        <compatibilityTable>VHD_SPARSE</compatibilityTable>
        <compatibilityTable>QCOW2_FLAT</compatibilityTable>
        <compatibilityTable>QCOW2_SPARSE</compatibilityTable>
        <defaultPort>8889</defaultPort>
        <id>2</id>
    </hypervisortype>
</hypervisorstype>


Deletes a Datacenter

Delete a single Datacenter by Datacenter identifier

Synopsis: DELETE http://example.com/api/admin/datacenters/{datacenter}
Roles Required: ROLE_PHYS_DC_MANAGE
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity:
Request Example:

 Click here to show or hide the request example
Deletes a Datacenter example
curl -X DELETE http://example.com/api/admin/datacenters/1\
	 -u user:password --verbose


DELETE http://example.com/api/admin/datacenters/1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==


HTTP/1.1 204 No Content
Date: Wed, 16 Jan 2013 14:11:25 GMT
Set-Cookie: JSESSIONID=384F93C08BD5CFE66E100150FEB86522; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzI4NTMzMzoyODExZjFlMDYwODMzZmFiMTliYWZmMDJlMzUyMDFjMjpBQklRVU8; Expires=Wed, 16-Jan-2013 14:41:25 GMT; Path=/api
Server: Apache-Coyote/1.1


Update used resources from a datacenter

Update the resources used from a Datacenter

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}/action/updateusedresources
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity:
Request Example:

 Click here to show or hide the request example
Update used resources from a datacenter example
curl -X PUT http://example.com/api/admin/datacenters/1/action/updateusedresources -u user:password --verbose

> PUT /api/admin/datacenters/1/action/updateusedresources HTTP/1.1
> Authorization: Basic YWRtaW46eGFiaXF1bw==
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost
> Accept: */*
> 
< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTQ3NzgxNjkwNDplNGEwNjA2OGI0MDI0MTMwMjQ1NmI5MzkzMTNlNTFhNDpBQklRVU8; Expires=Tue, 29-Jan-2013 16:43:36 GMT; Path=/api
< Set-Cookie: JSESSIONID=7B39FA3937BB972F25869A4A178EAC4E; Path=/api
< Date: Tue, 29 Jan 2013 16:13:37 GMT
< 


Retrieve a list of remote machine information

Return the list of physical machines that match the request

The response entity is a list of Machine elements that can be used to create multiple physical machines. All the datastores <enabled> tags are always set to "false" but physical machine creation requires at least one datastore enabled. Please edit these values in the Machine before calling the create multiple physical machines method.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/action/discover
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: application/vnd.abiquo.machines+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

hypervisor

true

 

kind of hypervisor

ip

false

 

ip address of the hypervisor

port

false

 

port where the hypervisor is listening

user

false

 

user to log in

passwordfalse password to log in

managerip

false

 

ip address of the hypervisor manager

managerport

false

 

port where the hypervisor manager is listening

manageruser

false

 

user to log into manager

managerpasssword

false

 

password to log into manager

agentipfalse ip address of the hypervisor agent
agentportfalse port where the hypervisor agent is listening
agentuserfalse user to log into agent
agentpasswordfalse password to log into agent

 

Request Message Body Entity: 
Response Message Body Entity: Machines Media Type
Request Example:

 

 Click here to show or hide the request example
Retrieve a list of remote machine information example
curl -X GET 'http://example.com/api/admin/datacenters/1/action/discover?ip=10.60.12.4&hypervisor=KVM' -H 'Accept:application/vnd.abiquo.machines+xml; version=2.6' -u user:password --verbose

> GET /api/admin/datacenters/1/action/discovermultiple?ip=10.60.12.4&hypervisor=KVM HTTP/1.1
> Authorization: Basic ZXJ1aXpfYWRtaW46ZXJ1aXo=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: mothership.bcn.abiquo.com
> Accept:application/vnd.abiquo.machines+xml; version=2.6
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=ZXJ1aXpfYWRtaW46MTM1MjExNzE4NDE0MDpiZDNhNmE2ODc0NWVmYTljMTJmMDE2Mzk4Y2ZiNmIxMjpBQklRVU8; Expires=Mon, 05-Nov-2012 12:06:24 GMT; Path=/api
< Set-Cookie: JSESSIONID=F9EEB7D01F789CD4E3492709C2DE5CDD; Path=/api
< Content-Type: application/vnd.abiquo.machines+xml;version=2.6
< Content-Length: 1022
< Date: Mon, 05 Nov 2012 11:36:24 GMT
< 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<machines>
    <machine>
        <datastores>
            <datastore>
                <datastoreUUID>c0209ca2-96eb-4fca-a845-4961c5c28e5f</datastoreUUID>
                <directory></directory>
                <enabled>false</enabled>
                <name>/dev/mapper/VolGroup00-LogVol00</name>
                <rootPath>/</rootPath>
                <size>4030406656</size>
                <usedSize>976424960</usedSize>
            </datastore>
            <datastore>
                <datastoreUUID>d04745d7-b002-4499-82da-c3aa49d35803</datastoreUUID>
                <directory></directory>
                <enabled>false</enabled>
                <name>10.60.1.104:/volume1/nfs-devel</name>
                <rootPath>/opt/vm_repository</rootPath>
                <size>7856958996480</size>
                <usedSize>2928043622400</usedSize>
            </datastore>
        </datastores>
        <description>kvm</description>
        <initiatorIQN>iqn.1994-05.com.redhat:8e729755888</initiatorIQN>
        <ip>10.60.12.4</ip>
        <ipService>10.60.12.4</ipService>
        <name>kvm</name>
        <port>8889</port>
        <state>MANAGED</state>
        <type>KVM</type>
        <cpu>1</cpu>
        <cpuUsed>0</cpuUsed>
        <ram>497</ram>
        <ramUsed>0</ramUsed>
        <virtualSwitch>eth0/virbr0/abiquo_3/eth0.3/abiquo_2/eth0.2/abiquo_3.2</virtualSwitch>
    </machine>
</machines>



Retrieve a range of remote machine information

Return the list of physical machines that match the request of Hypervisor type, user and password between the values ipFrom and ipTo.

This request is used to retrieve information from a list of remote machines given the user, password and hypervisor type of each machine. You can also filter the search by vswitch value. The response entity is a list of Machine elements that can be used to create multiple physical machines. All the datastores <enabled> tags are always set to "false" but physical machine creation requires at least one datastore enabled. Please edit these values in the Machine before calling the create multiple physical machines method.

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/action/discovermultiple
Roles Required: ROLE_PHYS_DC_ALLOW_MODIFY_SERVERS
Request Headers: Accept: application/vnd.abiquo.machines+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

ipFrom

false

 

first ip to look for

ipTo

false

 

last ip to look for

hypervisor

true

 

kind of hypervisor

ip

false

 

ip address of the hypervisor

port

false

 

port where the hypervisor is listening

user

false

 

user to log in

passwordfalse password to log in

managerip

false

 

ip address of the hypervisor manager

managerport

false

 

port where the hypervisor manager is listening

manageruser

false

 

user to log into manager

managerpasssword

false

 

password to log into manager

agentipfalse ip address of the hypervisor agent
agentportfalse port where the hypervisor agent is listening
agentuserfalse user to log into agent
agentpasswordfalse password to log into agent

vswitch

false

 

vswitch name that all physical machines to discover should have configured

Request Message Body Entity:
Response Message Body Entity: Machines Media Type
Request Example:

 Click here to show or hide the request example
Retrieve a list of remote machine information example
curl -X GET 'http://example.com/api/admin/datacenters/1/action/discovermultiple?ipFrom=10.60.12.4&ipTo=10.60.12.4&hypervisor=KVM&user=bla&password=bli' -H 'Accept:application/vnd.abiquo.machines+xml; version=2.6' -u user:password --verbose

> GET /api/admin/datacenters/1/action/discovermultiple?ipFrom=10.60.12.4&ipTo=10.60.12.4&hypervisor=KVM&user=bla&password=bli HTTP/1.1
> Authorization: Basic ZXJ1aXpfYWRtaW46ZXJ1aXo=
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: mothership.bcn.abiquo.com
> Accept:application/vnd.abiquo.machines+xml; version=2.6
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=ZXJ1aXpfYWRtaW46MTM1MjExNzE4NDE0MDpiZDNhNmE2ODc0NWVmYTljMTJmMDE2Mzk4Y2ZiNmIxMjpBQklRVU8; Expires=Mon, 05-Nov-2012 12:06:24 GMT; Path=/api
< Set-Cookie: JSESSIONID=F9EEB7D01F789CD4E3492709C2DE5CDD; Path=/api
< Content-Type: application/vnd.abiquo.machines+xml;version=2.6
< Content-Length: 1022
< Date: Mon, 05 Nov 2012 11:36:24 GMT
< 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<machines>
    <machine>
        <datastores>
            <datastore>
                <datastoreUUID>c0209ca2-96eb-4fca-a845-4961c5c28e5f</datastoreUUID>
                <directory></directory>
                <enabled>false</enabled>
                <name>/dev/mapper/VolGroup00-LogVol00</name>
                <rootPath>/</rootPath>
                <size>4030406656</size>
                <usedSize>976424960</usedSize>
            </datastore>
            <datastore>
                <datastoreUUID>d04745d7-b002-4499-82da-c3aa49d35803</datastoreUUID>
                <directory></directory>
                <enabled>false</enabled>
                <name>10.60.1.104:/volume1/nfs-devel</name>
                <rootPath>/opt/vm_repository</rootPath>
                <size>7856958996480</size>
                <usedSize>2928043622400</usedSize>
            </datastore>
        </datastores>
        <description>kvm</description>
        <initiatorIQN>iqn.1994-05.com.redhat:8e729755888</initiatorIQN>
        <ip>10.60.12.4</ip>
        <ipService>10.60.12.4</ipService>
        <name>kvm</name>
        <port>8889</port>
        <state>MANAGED</state>
        <type>KVM</type>
        <cpu>1</cpu>
        <cpuUsed>0</cpuUsed>
        <ram>497</ram>
        <ramUsed>0</ramUsed>
        <virtualSwitch>eth0/virbr0/abiquo_3/eth0.3/abiquo_2/eth0.2/abiquo_3.2</virtualSwitch>
    </machine>
</machines>


Get enable backup options of all backup types

Get a list of enabled backup options for the datacenter for all backup types (complete, snapshot, filesystem)

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/backups
Roles Required: ROLE_PHYS_DC_ALLOW_BACKUP_CONFIG,
Request Headers: Accept: application/vnd.abiquo.backups+xml; version=2.6; Content-type: ;
Request Parameters:

 Click here to expand...
curl -X GET http://example.com/api/admin/datacenters/1/backups \
        -H 'Accept: application/vnd.abiquo.backups+xml;version=2.6' \
        -u user:pass --verbose

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<backups>
    <backup>
        <link rel="backup" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/admin/datacenters/1/backups/1"/>
        <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/1"/>
        <link rel="template" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/config/backups/1"/>
        <id>1</id>
        <attributes>
            <attribute>defined_hour</attribute>
        </attributes>
    </backup>
    <backup>
        <link rel="backup" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/admin/datacenters/1/backups/3"/>
        <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/1"/>
        <link rel="template" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/config/backups/3"/>
        <id>2</id>
        <attributes>
            <attribute>monthly</attribute>
        </attributes>
    </backup>
</backups>

Get enable backup options of a backup type

Get a list of enabled attributes of a backup type for the indicated backup datacenter

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/backups/{backup}
Roles Required: ROLE_PHYS_DC_ALLOW_BACKUP_CONFIG,
Request Headers: Accept: application/vnd.abiquo.backup+xml; version=2.6; Content-type: ;
Request Parameters:

 Click here to expand...
curl -X GET http://example.com/api/admin/datacenters/1/backups/2 \
        -H 'Accept: application/vnd.abiquo.backups+xml;version=2.6' \
        -u user:pass --verbose

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<backup>
   <link rel="backup" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/admin/datacenters/1/backups/3"/>
   <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/1"/>
   <link rel="template" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/config/backups/3"/>
   <id>2</id>
   <attributes>
        <attribute>monthly</attribute>
   </attributes>
</backup>

 

Enable a backup option

Enable attributes of a backup type for the indicated datacenter

Synopsis: POST http://example.com/api/admin/datacenters/{datacenter}/backups
Roles Required: ROLE_PHYS_DC_ALLOW_BACKUP_CONFIG
Request Headers: Accept: application/vnd.abiquo.backup+xml; version=2.6; Content-type: application/vnd.abiquo.backup+xml; version=2.6;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: Backup Media Type
Response Message Body Entity: Backup Media Type
Request Example:

 

 Click here to expand...
curl -X POST http://example.com/api/admin/datacenters/1/backups\
	 -H 'Accept: application/vnd.abiquo.backup+xml; version=2.6'	\
	 -H 'Content-Type: application/vnd.abiquo.backup+xml; version=2.6'	\
	 -d @entity.xml	\
	 -u user:password --verbose

POST http://example.com/api/admin/datacenters/1/backups HTTP/1.1
Accept: application/vnd.abiquo.backup+xml;version=2.6
Content-Type: application/vnd.abiquo.backup+xml;version=2.6
Content-Length: 150

HTTP/1.1 201 Created
Date: Wed, 16 Jan 2013 14:05:33 GMT
Location: http://example.com/api/admin/datacenters/1/backups
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.backup+xml;version=2.6
Content-Length: 2344

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<backup>
    <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/1"/>
    <link rel="template" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/config/backups/3"/>
    <link rel="backup" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/admin/datacenters/1/backups/3"/>
    <id>3</id>
    <attributes>
        <attribute>monthly</attribute>
    </attributes>
</backup>

Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

Modify enable backup options of all backup types

Update backup options for the indicated datacenter. Note that it will delete previous enabled backup options and substitute for new ones.

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}/backups
Roles Required: ROLE_PHYS_DC_ALLOW_BACKUP_CONFIG
Request Headers: Accept: application/vnd.abiquo.backups+xml; version=2.6; Content-type: application/vnd.abiquo.backups+xml; version=2.6;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: Backups Media Type
Response Message Body Entity: Backups Media Type
Request Example:

 

 Click here to expand...
curl -X PUT http://example.com/api/admin/datacenters/1/backups\
	 -H 'Accept: application/vnd.abiquo.backups+xml; version=2.6'	\
	 -H 'Content-Type: application/vnd.abiquo.backups+xml; version=2.6'	\
	 -d @entity.xml	\
	 -u user:password --verbose

PUT /api/admin/datacenters/1/backups HTTP/1.1
Content-type: application/vnd.abiquo.backups+xml
Content-Length: 843

HTTP/1.1 200 OK
Content-Type: application/vnd.abiquo.backups+xml;version=2.6
Content-Length: 1028
Date: Mon, 03 Jun 2013 15:12:49 GMT
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<backups>
    <backup>
        <link rel="backup" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/admin/datacenters/1/backups/3"/>
        <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/1"/>
        <link rel="template" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/config/backups/3"/>
        <id>5</id>
        <attributes>
            <attribute>daily</attribute>
            <attribute>defined_hour</attribute>
        </attributes>
    </backup>
    <backup>
        <link rel="backup" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/admin/datacenters/1/backups/2"/>
        <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/1"/>
        <link rel="template" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/config/backups/2"/>
        <id>6</id>
        <attributes>
            <attribute>hourly</attribute>
        </attributes>
    </backup>
</backups>

Download a template

You can download the template of the entity here (click right mouse button and 'Save Link As..')

 

Modify enabled options of a backup type

Update backup options for the indicated datacenter for a backup type (complete, snapshot, filesystem)

Synopsis: PUT http://example.com/api/admin/datacenters/{datacenter}/backups/{backup}
Roles Required: ROLE_PHYS_DC_ALLOW_BACKUP_CONFIG
Request Headers: Accept: application/vnd.abiquo.backup+xml; version=2.6; Content-type: application/vnd.abiquo.backup+xml; version=2.6;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity: Backup Media Type
Response Message Body Entity: Backup Media Type
Request Example:

 

 Click here to expand...
curl -X PUT http://example.com/api/admin/datacenters/1/backups/22\
	 -H 'Accept: application/vnd.abiquo.backup+xml; version=2.6'	\
	 -H 'Content-Type: application/vnd.abiquo.backup+xml; version=2.6'	\
	 -d @entity.xml	\
	 -u user:password --verbose

PUT /api/admin/datacenters/1/backups/22 HTTP/1.1
Content-type: application/vnd.abiquo.backup+xml
Content-Length: 992

HTTP/1.1 200 OK
Content-Type: application/vnd.abiquo.backup+xml;version=2.6
Content-Length: 1028
Date: Mon, 03 Jun 2013 15:12:49 GMT
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<backup>
    <link rel="backup" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/admin/datacenters/1/backups/2"/>
    <link rel="datacenter" type="application/vnd.abiquo.datacenter+xml" href="http://localhost:80/api/admin/datacenters/1"/>
    <link rel="template" type="application/vnd.abiquo.backup+xml; version=2.6" href="http://localhost:80/api/config/backups/2"/>
    <id>22</id>
    <attributes>
        <attribute>hourly</attribute>
        <attribute>monthly</attribute>
    </attributes>
</backup>



 

You can download the template of the entity here (click right mouse button and 'Save Link As..')

 

 

Deletes enabled backup options

Deletes all enabled backup options of a backup type for a datacenter

Synopsis: DELETE http://example.com/api/admin/datacenters/{datacenter}/backups/{datacenterBackup}
Roles Required: ROLE_PHYS_DC_ALLOW_BACKUP_CONFIG
Request Headers: Accept: ; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

Request Message Body Entity:
Response Message Body Entity:
Request Example:

 

Deletes a Datacenter example
curl -X DELETE http://example.com/api/admin/datacenters/1/backups/18\
	 -u user:password --verbose


DELETE http://example.com/api/admin/datacenters/1/backups/18 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==


HTTP/1.1 204 No Content
Date: Mon, 03 Jun 2013 16:08:24 GMT


 

 

 

 

Main URI of the Resource

This class operates mainly over the Resource URI: /admin/datacenters/{datacenter}/action/getlimits

Exposed Methods

Retrieve limits by Datacenter

Retrieve the limits of a Datacenter given its identifier

Synopsis: GET http://example.com/api/admin/datacenters/{datacenter}/action/getlimits
Roles Required: ROLE_PHYS_DC_RETRIEVE_RESOURCE_USAGE
Request Headers: Accept: application/vnd.abiquo.limits+xml; version=2.6; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

enterprise

false

 

identifier of the enterprise

 

 

 

 

Request Message Body Entity:
Response Message Body Entity: DatacentersLimits Media Type
Request Example:

 Click here to show or hide the request example
Retrieve limits by Datacenter example
$ curl -X GET http://10.60.20.60:80/api/admin/datacenters/1/action/getlimits\
	 -H 'Accept: application/vnd.abiquo.limits+xml; version=2.6'	\
	 -u user:password --verbose


GET http://10.60.20.60:80/api/admin/datacenters/1/action/getlimits HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.limits+xml;version=2.6


HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:07 GMT
Set-Cookie: JSESSIONID=B43A8F690911D3B0A27E1CA0BBFFD8BF; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIwNzI2ODpiZTExMjYwZDZmM2U3YTY0ZjE3NGVkNTE4NDFlNmZlNTpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:07 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.limits+xml;version=2.6
Content-Length: 4014

<?xml version="1.0" encoding="UTF-8"?>
<limits>
  <limit>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/1/limits/1/action/virtualappliances"
      rel="action" title="virtualappliances" type="application/vnd.abiquo.virtualappliances+xml"/>
    <link href="http://10.60.20.60:80/api/admin/datacenters/1"
      rel="datacenter" title="JC-b46300d9-bc6"/>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/1/limits/1/datacenter"
      rel="datacenterByLimit" title="JC-b46300d9-bc6" type="application/vnd.abiquo.datacenter+xml"/>
    <link href="http://10.60.20.60:80/api/admin/enterprises/1/limits/1"
      rel="edit" type="application/vnd.abiquo.limit+xml"/>
    <link href="http://10.60.20.60:80/api/admin/enterprises/1"
      rel="enterprise" type="application/vnd.abiquo.enterprise+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/1/limits/1/externalnetworks"
      rel="externalnetworks" type="application/vnd.abiquo.vlans+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/1/limits/1/hypervisors"
      rel="hypervisor" type="application/vnd.abiquo.hypervisortypes+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/1"
      rel="tier" title="Default Tier 1" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/2"
      rel="tier" title="Default Tier 2" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/3"
      rel="tier" title="Default Tier 3" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/4"
      rel="tier" title="Default Tier 4" type="application/vnd.abiquo.tier+xml"/>
    <cpuHard>0</cpuHard>
    <cpuSoft>0</cpuSoft>
    <hdHard>0</hdHard>
    <hdSoft>0</hdSoft>
    <publicIpsHard>0</publicIpsHard>
    <publicIpsSoft>0</publicIpsSoft>
    <ramHard>0</ramHard>
    <ramSoft>0</ramSoft>
    <storageHard>0</storageHard>
    <storageSoft>0</storageSoft>
    <vlansHard>0</vlansHard>
    <vlansSoft>0</vlansSoft>
    <id>1</id>
    <repositoryHard>0</repositoryHard>
    <repositorySoft>0</repositorySoft>
  </limit>
  <limit>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/2/limits/2/action/virtualappliances"
      rel="action" title="virtualappliances" type="application/vnd.abiquo.virtualappliances+xml"/>
    <link href="http://10.60.20.60:80/api/admin/datacenters/1"
      rel="datacenter" title="JC-b46300d9-bc6"/>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/2/limits/2/datacenter"
      rel="datacenterByLimit" title="JC-b46300d9-bc6" type="application/vnd.abiquo.datacenter+xml"/>
    <link href="http://10.60.20.60:80/api/admin/enterprises/2/limits/2"
      rel="edit" type="application/vnd.abiquo.limit+xml"/>
    <link href="http://10.60.20.60:80/api/admin/enterprises/2"
      rel="enterprise" type="application/vnd.abiquo.enterprise+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/2/limits/2/externalnetworks"
      rel="externalnetworks" type="application/vnd.abiquo.vlans+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/enterprises/2/limits/2/hypervisors"
      rel="hypervisor" type="application/vnd.abiquo.hypervisortypes+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/1"
      rel="tier" title="Default Tier 1" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/2"
      rel="tier" title="Default Tier 2" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/3"
      rel="tier" title="Default Tier 3" type="application/vnd.abiquo.tier+xml"/>
    <link
      href="http://10.60.20.60:80/api/admin/datacenters/1/storage/tiers/4"
      rel="tier" title="Default Tier 4" type="application/vnd.abiquo.tier+xml"/>
    <cpuHard>0</cpuHard>
    <cpuSoft>0</cpuSoft>
    <hdHard>0</hdHard>
    <hdSoft>0</hdSoft>
    <publicIpsHard>0</publicIpsHard>
    <publicIpsSoft>0</publicIpsSoft>
    <ramHard>0</ramHard>
    <ramSoft>0</ramSoft>
    <storageHard>0</storageHard>
    <storageSoft>0</storageSoft>
    <vlansHard>0</vlansHard>
    <vlansSoft>0</vlansSoft>
    <id>2</id>
    <repositoryHard>0</repositoryHard>
    <repositorySoft>0</repositorySoft>
  </limit>
</limits>