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.6


Skip to end of metadata
Go to start of metadata

Virtual Datacenter Tiers Resource

Exposed Resources Hierarchy
Virtual Datacenter Tiers Resource

Contents:

Virtual Datacenter Tiers Resource allows you to retrieve the list of enabled tiers within a given virtual datacenter.

Main URI of the Resource

This class operates mainly over the Resource URI: /cloud/virtualdatacenters/{virtualdatacenter}/tiers

Exposed Methods

Retrieve enabled tiers

Retrieve the list of enabled tiers in a given virtual datacenter.

Synopsis: GET http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/tiers
Roles Required: ROLE_VDC_ENUMERATE,ROLE_VAPP_CREATE_STATEFUL
Request Headers: Accept: application/vnd.abiquo.tiers+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Retrieve enabled tiers example
curl -X GET -H 'Accept:application/vnd.abiquo.tiers+xml; version=2.4' -u user:password http://example.com/api/cloud/virtualdatacenters/1/tiers --verbose

> GET /api/cloud/virtualdatacenters/1/tiers 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: 10.60.1.241
> Accept:application/vnd.abiquo.tiers+xml; version=2.4
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTQ2OTc3ODM5Nzo1N2I5NjMwNTJmODAyNTg5MjI0MmNiZTAxNjE4YTY0MzpBQklRVU8; Expires=Tue, 29-Jan-2013 14:29:38 GMT; Path=/api
< Set-Cookie: JSESSIONID=F702738B9AD1C6B1CEF18D40279AF2A4; Path=/api
< Content-Type: application/vnd.abiquo.tiers+xml;version=2.4
< Content-Length: 1250
< Date: Tue, 29 Jan 2013 13:59:38 GMT
< 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tiers>
    <tier>
    <link rel="self" type="application/vnd.abiquo.tier+xml" href="http://10.60.1.241:80/api/cloud/virtualdatacenters/1/tiers/1"/><id>1</id><name>Default Tier 1</name><description>Description of the default tier 1</description><enabled>true</enabled><defaultAllowed>true</defaultAllowed></tier>
    <tier>
    <link rel="self" type="application/vnd.abiquo.tier+xml" href="http://10.60.1.241:80/api/cloud/virtualdatacenters/1/tiers/2"/><id>2</id><name>Default Tier 2</name><description>Description of the default tier 2</description><enabled>true</enabled><defaultAllowed>true</defaultAllowed></tier>
    <tier>
    <link rel="self" type="application/vnd.abiquo.tier+xml" href="http://10.60.1.241:80/api/cloud/virtualdatacenters/1/tiers/3"/><id>3</id><name>Default Tier 3</name><description>Description of the default tier 3</description><enabled>true</enabled><defaultAllowed>true</defaultAllowed></tier>
    <tier>
    <link rel="self" type="application/vnd.abiquo.tier+xml" href="http://10.60.1.241:80/api/cloud/virtualdatacenters/1/tiers/4"/><id>4</id><name>Default Tier 4</name><description>Description of the default tier 4</description><enabled>true</enabled><defaultAllowed>true</defaultAllowed></tier>
</tiers>

Retrieve a tier

Retrieve an enabled tier in a specified virtual datacenter

Synopsis: GET http://example.com/api/cloud/virtualdatacenters/{virtualdatacenter}/tiers/{tier}
Roles Required: ROLE_VDC_ENUMERATE,ROLE_VAPP_CREATE_STATEFUL
Request Headers: Accept: application/vnd.abiquo.tier+xml; version=2.4; Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example
Retrieve a tier example
curl -X GET -H 'Accept:application/vnd.abiquo.tier+xml; version=2.4' -u user:password http://example.com/api/cloud/virtualdatacenters/1/tiers/1 --verbose

> GET /api/cloud/virtualdatacenters/1/tiers/1 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: 10.60.1.241
> Accept:application/vnd.abiquo.tier+xml; version=2.4
> 
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Set-Cookie: auth=YWRtaW46MTM1OTQ2OTkwMTA0MzozZGY1NjJmNDExMWYzZDM1M2FhNTEyYjkyMTJkMzQ0ODpBQklRVU8; Expires=Tue, 29-Jan-2013 14:31:41 GMT; Path=/api
< Set-Cookie: JSESSIONID=A13CB42F3507253CD387F7D0A19E3C0B; Path=/api
< Content-Type: application/vnd.abiquo.tier+xml;version=2.4
< Content-Length: 350
< Date: Tue, 29 Jan 2013 14:01:41 GMT
< 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tier>
    <link rel="self" type="application/vnd.abiquo.tier+xml" href="http://10.60.1.241:80/api/cloud/virtualdatacenters/1/tiers/1"/>
    <id>1</id>
    <name>Default Tier 1</name>
    <description>Description of the default tier 1</description>
    <enabled>true</enabled>
    <defaultAllowed>true</defaultAllowed>
</tier>