Abiquo Documentation Cookies Policy

Our Documentation website uses cookies to improve your experience. Please visit our Cookie Policy page for more information about cookies and how we use them.


Abiquo 2.3


Skip to end of metadata
Go to start of metadata

 

Exposed Resources autogenerated by: https://github.com/abiquo/abiquo-wiki-builder

This document describes the resources available in the Abiquo API. We use the standard Service document that Atom Publishing Protocol provides to represent these resources.

Get the root exposed resources.

The first call you could perform in the API would be one that retrieves all the root exposed resources to start auto-discovering the api.

Retrieve the root resources

REQUEST
Synopsis: GET http://example.com/api/
Roles needed: ROLE_AUTHENTICATED (Check out role definitions here)
Request Headers: Accept("application/atomsvc+xml")
Request Parameters: N/A.
Request Message Body: N/A.
Request Example:

Get the list of root resources
%curl --verbose -X GET 'http://example.com/api' \

>> GET http://example.com/api HTTP/1.1
>> Authorization: Basic YWRtaW46eGFiaXF1bw==
<< HTTP/1.1 200 OK
<< Date: Thu, 15 Mar 2012 11:11:50 GMT
<< Set-Cookie: JSESSIONID=F34762F59FC89C7C79E2925F69A7F0D8; Path=/api
<< Set-Cookie: auth=YWRtaW46MTMzMTgxMTcxMDIxNzo3OTlmMzA2ZWE0OWI0MzYwYzFmYzE1ODY0NDI4ZTJkMDpBQklRVU8; Expires=Thu, 15-Mar-2012 11:41:50 GMT; Path=/api
<< Server: Apache-Coyote/1.1
<< Content-Type: application/atomsvc+xml
<< Content-Length: 3424
<ns2:service xmlns="http://www.w3.org/2005/Atom" xmlns:ns2="http://www.w3.org/2007/app" xmlns:ns3="http://a9.com/-/spec/opensearch/1.1/" xmlns:ns4="http://www.w3.org/1999/xhtml">
  <ns2:workspace>
    <title>Abiquo administration workspace</title>
    <ns2:collection href="http://example.com/api/admin/rules">
      <title>AllocationRules</title>
      <ns2:accept>application/vnd.abiquo.rules+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/admin/datacenters/">
      <title>Datacenters</title>
      <ns2:accept>application/vnd.abiquo.datacenter+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/admin/enterprises">
      <title>Enterprises</title>
      <ns2:accept>application/vnd.abiquo.enterprise+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/admin/roles">
      <title>Roles</title>
      <ns2:accept>application/vnd.abiquo.rolewithldap+xml;version=2.0</ns2:accept>
      <ns2:accept>application/vnd.abiquo.role+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/admin/rolesldap">
      <title>Roles Ldap</title>
      <ns2:accept>application/vnd.abiquo.roleldap+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/admin/statistics">
      <title>Statistics</title>
      <ns2:accept/>
    </ns2:collection>
  </ns2:workspace>
  <ns2:workspace>
    <title>Abiquo cloud workspace</title>
    <ns2:collection href="http://example.com/api/cloud/virtualdatacenters">
      <title>VirtualDatacenters</title>
      <ns2:accept>application/vnd.abiquo.virtualdatacenter+xml;version=2.0</ns2:accept>
    </ns2:collection>
  </ns2:workspace>
  <ns2:workspace>
    <title>Abiquo configuration workspace</title>
    <ns2:collection href="http://example.com/api/config/categories">
      <title>Categories</title>
      <ns2:accept>application/vnd.abiquo.category+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/costcodes">
      <title>CostCodes</title>
      <ns2:accept>application/vnd.abiquo.costcode+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/currencies">
      <title>Currencies</title>
      <ns2:accept>application/vnd.abiquo.currency+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/diskformattypes">
      <title>DiskFormatTypes</title>
      <ns2:accept/>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/hypervisortypes">
      <title>HypervisorTypes</title>
      <ns2:accept/>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/licenses">
      <title>Licenses</title>
      <ns2:accept>application/vnd.abiquo.license+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/pricingtemplates">
      <title>PricingTemplates</title>
      <ns2:accept>application/vnd.abiquo.pricingtemplate+xml;version=2.0</ns2:accept>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/privileges">
      <title>Privileges</title>
      <ns2:accept/>
    </ns2:collection>
    <ns2:collection href="http://example.com/api/config/properties">
      <title>Properties</title>
      <ns2:accept>application/vnd.abiquo.systemproperty+xml;version=2.0</ns2:accept>
    </ns2:collection>
  </ns2:workspace>
  <ns2:workspace>
    <title>Abiquo login workspace</title>
    <ns2:collection href="http://example.com/api/login">
      <title>Login</title>
      <ns2:accept/>
    </ns2:collection>
  </ns2:workspace>
</ns2:service>

  • No labels