Documentation

Skip to end of metadata
Go to start of metadata

Pricing Templates Resource

Abiquo has introduced a flexible pricing system that will allow you to create pricing models to match service level agreements and assign these to your enterprises.

Main URI of the Resource

This class operates mainly over the Resource URI: /config/pricingtemplates

Exposed Methods

Create a new Pricing Template

Method to create a pricing template. Default currencies are provided (US dollars, euros, Japanese yen), but if you want to use a different currency you have to add the currency using the Currency Resource. To assign a cost to a virtual image, create a cost code using the Cost Code Resource.

Synopsis: POST http://example.com/api/config/pricingtemplates
Roles Required: ROLE_PRICING_MANAGE
Request Headers: Accept: application/vnd.abiquo.pricingtemplate+json; version=3.2; application/vnd.abiquo.pricingtemplate+xml; version=3.2;  Content-type:  application/vnd.abiquo.pricingtemplate+json; version=3.2; application/vnd.abiquo.pricingtemplate+xml; version=3.2;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

Create a new Pricing Template example
curl -X POST http://example.com/api/config/pricingtemplates\
     -H 'Accept: application/vnd.abiquo.pricingtemplate+xml; version=2.4'   \
     -H 'Content-Type: application/vnd.abiquo.pricingtemplate+xml; version=2.4' \
     -d @entity.xml \
     -u user:password --verbose

POST http://example.com/api/config/pricingtemplates HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingtemplate+xml;version=2.4
Content-Type: application/vnd.abiquo.pricingtemplate+xml;version=2.4
Content-Length: 758

HTTP/1.1 201 Created
Date: Wed, 16 Jan 2013 14:10:26 GMT
Location: http://example.com/api/config/pricingtemplates/1
Set-Cookie: JSESSIONID=1126F33ED1DED3A3A3E8D8C4572B6F1C; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNjg5NjphZGE4MDBkMmJjNWY0ZWU0MTAwZmI1Mjc4MzFiMzdjMDpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:26 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingtemplate+xml;version=2.4
Content-Length: 1068
<?xml version="1.0" encoding="UTF-8"?>
<pricingTemplate>
  <link href="http://example.com/api/config/currencies/1"
    rel="currency" type="application/vnd.abiquo.currency+xml"/>
  <link href="http://example.com/api/config/pricingtemplates/1"
    rel="edit" type="application/vnd.abiquo.pricingtemplate+xml"/>
  <link
    href="http://example.com/api/config/pricingtemplates/1/costcodes"
    rel="costcodes" type="application/vnd.abiquo.pricingcostcode+xml"/>
  <link href="http://example.com/api/config/pricingtemplates/1/tiers"
    rel="tiers" type="application/vnd.abiquo.pricingtier+xml"/>
  <chargingPeriod>4</chargingPeriod>
  <defaultTemplate>true</defaultTemplate>
  <description>description</description>
  <hdGB>0</hdGB>
  <id>1</id>
  <layer>0</layer>
  <memoryGB>0</memoryGB>
  <minimumCharge>3</minimumCharge>
  <minimumChargePeriod>0</minimumChargePeriod>
  <name>pricing_template</name>
  <publicIp>0</publicIp>
  <showChangesBefore>true</showChangesBefore>
  <showMinimumCharge>false</showMinimumCharge>
  <standingChargePeriod>0</standingChargePeriod>
  <vcpu>0</vcpu>
  <vlan>0</vlan>
</pricingTemplate>



Download a template

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

Retrieve a list of Pricing Templates

This method returns the list of pricing templates

Paging Method

This method works with paging. Check out Basic Behaviors for information about how it works

Synopsis: GET http://example.com/api/config/pricingtemplates
Roles Required: ROLE_PRICING_VIEW
Request Headers: Accept: application/vnd.abiquo.pricingtemplates+json; version=3.2; application/vnd.abiquo.pricingtemplates+xml; version=3.2;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

startwith

false

0

first element to retrieve

by

false

name

ordering the request.

has

false

 

filter the request. With this parameter the response just contains the elements
which name matches the filter value.

limit

false

25

number of elements to return

asc

false

true

order ascendant or descendant. By default the sort mode is ascending.

 

 

 

 

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

 Click here to show or hide the request example

 

Retrieve a list of Pricing Templates example
curl -X GET http://example.com/api/config/pricingtemplates\
     -H 'Accept: application/vnd.abiquo.pricingtemplates+xml; version=2.4'  \
     -u user:password --verbose

GET http://example.com/api/config/pricingtemplates HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingtemplates+xml;version=2.4

HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=D52B6864722F8260B557A3C8782DA605; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNzE4ODpjNjM1NzJlN2ZmNTZkZmNlOGVhMTlmMDI3MjdhNmY5ZjpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:27 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingtemplates+xml;version=2.4
Content-Length: 1337
<?xml version="1.0" encoding="UTF-8"?>
<pricingTemplates>
  <link href="http://example.com/api/config/pricingtemplates" rel="first"/>
  <link
    href="http://example.com/api/config/pricingtemplates?startwith=0" rel="last"/>
  <totalSize>1</totalSize>
  <pricingTemplate>
    <link
      href="http://example.com/api/config/pricingtemplates/1/costcodes"
      rel="costcodes" type="application/vnd.abiquo.pricingcostcode+xml"/>
    <link href="http://example.com/api/config/currencies/1"
      rel="currency" type="application/vnd.abiquo.currency+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1"
      rel="edit" type="application/vnd.abiquo.pricingtemplate+xml"/>
    <link
      href="http://example.com/api/config/pricingtemplates/1/tiers"
      rel="tiers" type="application/vnd.abiquo.pricingtier+xml"/>
    <chargingPeriod>4</chargingPeriod>
    <defaultTemplate>true</defaultTemplate>
    <description>description</description>
    <hdGB>0.00000</hdGB>
    <id>1</id>
    <layer>0.00000</layer>
    <memoryGB>0.00000</memoryGB>
    <minimumCharge>3</minimumCharge>
    <minimumChargePeriod>0.00000</minimumChargePeriod>
    <name>JC-pt-updated</name>
    <publicIp>0.00000</publicIp>
    <showChangesBefore>true</showChangesBefore>
    <showMinimumCharge>false</showMinimumCharge>
    <standingChargePeriod>0.00000</standingChargePeriod>
    <vcpu>0.00000</vcpu>
    <vlan>0.00000</vlan>
  </pricingTemplate>
</pricingTemplates>

Get Pricing Template

Retrieve a pricing template.

Synopsis: GET http://example.com/api/config/pricingtemplates/{pricingtemplate}
Roles Required: ROLE_PRICING_VIEW
Request Headers: Accept: application/vnd.abiquo.pricingtemplate+json; version=3.2; application/vnd.abiquo.pricingtemplate+xml; version=3.2;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

 

Get Pricing Template example
curl -X GET http://example.com/api/config/pricingtemplates/1\
     -H 'Accept: application/vnd.abiquo.pricingtemplate+xml; version=2.4'  \
     -u user:password --verbose

GET http://example.com/api/config/pricingtemplates HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingtemplate+xml;version=2.4

HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=D52B6864722F8260B557A3C8782DA605; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNzE4ODpjNjM1NzJlN2ZmNTZkZmNlOGVhMTlmMDI3MjdhNmY5ZjpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:27 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingtemplate+xml;version=2.4
Content-Length: 1337
<?xml version="1.0" encoding="UTF-8"?>
 <pricingTemplate>
    <link
      href="http://example.com/api/config/pricingtemplates/1/costcodes"
      rel="costcodes" type="application/vnd.abiquo.pricingcostcode+xml"/>
    <link href="http://example.com/api/config/currencies/1"
      rel="currency" type="application/vnd.abiquo.currency+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1"
      rel="edit" type="application/vnd.abiquo.pricingtemplate+xml"/>
    <link
      href="http://example.com/api/config/pricingtemplates/1/tiers"
      rel="tiers" type="application/vnd.abiquo.pricingtier+xml"/>
    <chargingPeriod>4</chargingPeriod>
    <defaultTemplate>true</defaultTemplate>
    <description>description</description>
    <hdGB>0.00000</hdGB>
    <id>1</id>
    <layer>0.00000</layer>
    <memoryGB>0.00000</memoryGB>
    <minimumCharge>3</minimumCharge>
    <minimumChargePeriod>0.00000</minimumChargePeriod>
    <name>JC-pt-updated</name>
    <publicIp>0.00000</publicIp>
    <showChangesBefore>true</showChangesBefore>
    <showMinimumCharge>false</showMinimumCharge>
    <standingChargePeriod>0.00000</standingChargePeriod>
    <vcpu>0.00000</vcpu>
    <vlan>0.00000</vlan>
 </pricingTemplate>


Update Pricing Template

Update a pricing template.

Synopsis: PUT http://example.com/api/config/pricingtemplates/{pricingtemplate}
Roles Required: ROLE_PRICING_MANAGE
Request Headers: Accept: application/vnd.abiquo.pricingtemplate+json; version=3.2; application/vnd.abiquo.pricingtemplate+xml; version=3.2;  Content-type:  application/vnd.abiquo.pricingtemplate+json; version=3.2; application/vnd.abiquo.pricingtemplate+xml; version=3.2;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

Update Pricing Template example
curl -X PUT http://example.com/api/config/pricingtemplates/1\
     -H 'Accept: application/vnd.abiquo.pricingtemplate+xml; version=2.4'   \
     -H 'Content-Type: application/vnd.abiquo.pricingtemplate+xml; version=2.4' \
     -d @entity.xml \
     -u user:password --verbose

PUT http://example.com/api/config/pricingtemplates/1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingtemplate+xml;version=2.4
Content-Type: application/vnd.abiquo.pricingtemplate+xml;version=2.4
Content-Length: 1168

HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=89C4E9920002CEA152530E7DBD3A0117; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNzEwNTpiMzQ4NDVlMDUwNDU2MTU1NDZkMTZjODgzMGMwYzI3YTpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:27 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingtemplate+xml;version=2.4
Content-Length: 1065
<?xml version="1.0" encoding="UTF-8"?>
<pricingTemplate>
  <link
    href="http://example.com/api/config/pricingtemplates/1/costcodes"
    rel="costcodes" type="application/vnd.abiquo.pricingcostcode+xml"/>
  <link href="http://example.com/api/config/currencies/1"
    rel="currency" type="application/vnd.abiquo.currency+xml"/>
  <link href="http://example.com/api/config/pricingtemplates/1"
    rel="edit" type="application/vnd.abiquo.pricingtemplate+xml"/>
  <link href="http://example.com/api/config/pricingtemplates/1/tiers"
    rel="tiers" type="application/vnd.abiquo.pricingtier+xml"/>
  <chargingPeriod>4</chargingPeriod>
  <defaultTemplate>true</defaultTemplate>
  <description>description</description>
  <hdGB>0</hdGB>
  <id>1</id>
  <layer>0</layer>
  <memoryGB>0</memoryGB>
  <minimumCharge>3</minimumCharge>
  <minimumChargePeriod>0</minimumChargePeriod>
  <name>JC-pt-updated</name>
  <publicIp>0</publicIp>
  <showChangesBefore>true</showChangesBefore>
  <showMinimumCharge>false</showMinimumCharge>
  <standingChargePeriod>0</standingChargePeriod>
  <vcpu>0</vcpu>
  <vlan>0</vlan>
</pricingTemplate>



Download a template

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

Delete Pricing Template

Delete a pricing template.

Synopsis: DELETE http://example.com/api/config/pricingtemplates/{pricingtemplate}
Roles Required: ROLE_PRICING_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

Delete Pricing Template example
curl -X DELETE http://example.com/api/config/pricingtemplates/1\
     -u user:password --verbose

DELETE http://example.com/api/config/pricingtemplates/1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==

HTTP/1.1 204 No Content
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=DB5B73CA1CC32932589B4B687F64CBD1; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNzIyNTo5ZTliMmJmNGRjNWZlOThkMGJiNWZiNDFkNzI0ZmYxMzpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:27 GMT; Path=/api
Server: Apache-Coyote/1.1


Pricing Cost Codes Resource


Resource with operations to get or modify pricing cost code.

Main URI of the Resource

This class operates mainly over the Resource URI: /config/pricingtemplates/{pricingtemplate}/costcodes

Exposed Methods

Get Pricing Cost Codes

This method returns the list of pricing cost codes.

Synopsis: GET http://example.com/api/config/pricingtemplates/{pricingtemplate}/costcodes
Roles Required: ROLE_PRICING_VIEW
Request Headers: Accept: application/vnd.abiquo.pricingcostcodes+json; version=3.2; application/vnd.abiquo.pricingcostcodes+xml; version=3.2;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

 

Get Pricing Cost Codes example
curl -X GET http://example.com/api/config/pricingtemplates/1/costcodes\
     -H 'Accept: application/vnd.abiquo.pricingcostcodes+xml; version=2.4'  \
     -u user:password --verbose

GET http://example.com/api/config/pricingtemplates/1/costcodes HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingcostcodes+xml;version=2.4

HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=8F2CD8C94BBB599D6E1C4CFD5AE37CB5; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNjk5MzpmZTllY2RiOWQxYTBjMDNhZTgzYzZhYzM0MTRkYmNiNTpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:26 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingcostcodes+xml;version=2.4
Content-Length: 460
<?xml version="1.0" encoding="UTF-8"?>
<pricingCostCodes>
  <pricingCostCode>
    <link href="http://example.com/api/config/costcodes/1" rel="costcode"/>
    <link
      href="http://example.com/api/config/pricingtemplates/1/costcodes/1"
      rel="edit" type="application/vnd.abiquo.pricingcostcode+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1" rel="pricingtemplate"/>
    <id>1</id>
    <price>0.00000</price>
  </pricingCostCode>
</pricingCostCodes>


Get Pricing Cost Code

Retrieve a pricing cost code.

Synopsis: GET http://example.com/api/config/pricingtemplates/{pricingtemplate}/costcodes/{costcode}
Roles Required: ROLE_PRICING_VIEW
Request Headers: Accept: application/vnd.abiquo.pricingcostcode+json; version=3.2; application/vnd.abiquo.pricingcostcode+xml; version=3.2;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

 

Get Pricing Cost Code example
curl -X GET http://example.com/api/config/pricingtemplates/1/costcodes/1\
     -H 'Accept: application/vnd.abiquo.pricingcostcode+xml; version=2.4'  \
     -u user:password --verbose

GET http://example.com/api/config/pricingtemplates/1/costcodes HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingcostcode+xml;version=2.4

HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=8F2CD8C94BBB599D6E1C4CFD5AE37CB5; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNjk5MzpmZTllY2RiOWQxYTBjMDNhZTgzYzZhYzM0MTRkYmNiNTpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:26 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingcostcode+xml;version=2.4
Content-Length: 460
<?xml version="1.0" encoding="UTF-8"?>
  <pricingCostCode>
    <link href="http://example.com/api/config/costcodes/1" rel="costcode"/>
    <link
      href="http://example.com/api/config/pricingtemplates/1/costcodes/1"
      rel="edit" type="application/vnd.abiquo.pricingcostcode+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1" rel="pricingtemplate"/>
    <id>1</id>
    <price>0.00000</price>
  </pricingCostCode>


 

Pricing Tiers Resource

Resource with operations to get or modify pricing of storage tiers.

Main URI of the Resource

This class operates mainly over the Resource URI: /config/pricingtemplates/{pricingtemplate}/tiers

Exposed Methods

Retrieve all tiers from a Pricing Template

Retrieve all storage tiers from a pricing template

Synopsis: GET http://example.com/api/config/pricingtemplates/{pricingtemplate}/tiers
Roles Required: ROLE_PRICING_VIEW
Request Headers: Accept: application/vnd.abiquo.pricingtiers+json; version=3.2; application/vnd.abiquo.pricingtiers+xml; version=3.2;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

 

Retrieve all tiers from a Pricing Template example
curl -X GET http://example.com/api/config/pricingtemplates/1/tiers\
     -H 'Accept: application/vnd.abiquo.pricingtiers+xml; version=2.4'  \
     -u user:password --verbose
GET http://example.com/api/config/pricingtemplates/1/tiers HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingtiers+xml;version=2.4
HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=E19FD195C2FC279714D794C9D472E85A; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNzAyNjo3ODNkNmIwYzM4NTQ5MWE4NjJkNTc3NGM0OTVmNWM5ODpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:27 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingtiers+xml;version=2.4
Content-Length: 1796
<?xml version="1.0" encoding="UTF-8"?>
<pricingTiers>
  <pricingTier>
    <link
      href="http://example.com/api/config/pricingtemplates/1/tiers/1"
      rel="edit" type="application/vnd.abiquo.pricingtier+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1" rel="pricingtemplate"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/tiers/1"
      rel="tier" title="JC-b46300d9-bc6" type="application/vnd.abiquo.tier+xml"/>
    <id>1</id>
    <price>0.00000</price>
  </pricingTier>
  <pricingTier>
    <link
      href="http://example.com/api/config/pricingtemplates/1/tiers/2"
      rel="edit" type="application/vnd.abiquo.pricingtier+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1" rel="pricingtemplate"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/tiers/2"
      rel="tier" title="JC-b46300d9-bc6" type="application/vnd.abiquo.tier+xml"/>
    <id>2</id>
    <price>0.00000</price>
  </pricingTier>
  <pricingTier>
    <link
      href="http://example.com/api/config/pricingtemplates/1/tiers/3"
      rel="edit" type="application/vnd.abiquo.pricingtier+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1" rel="pricingtemplate"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/tiers/3"
      rel="tier" title="JC-b46300d9-bc6" type="application/vnd.abiquo.tier+xml"/>
    <id>3</id>
    <price>0.00000</price>
  </pricingTier>
  <pricingTier>
    <link
      href="http://example.com/api/config/pricingtemplates/1/tiers/4"
      rel="edit" type="application/vnd.abiquo.pricingtier+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1" rel="pricingtemplate"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/tiers/4"
      rel="tier" title="JC-b46300d9-bc6" type="application/vnd.abiquo.tier+xml"/>
    <id>4</id>
    <price>0.00000</price>
  </pricingTier>
</pricingTiers>

 

Retrieve a Pricing Tier

Retrieve a storage tier from a pricing template

Synopsis: GET http://example.com/api/config/pricingtemplates/{pricingtemplate}/tiers/{tier}
Roles Required: ROLE_PRICING_VIEW
Request Headers: Accept: application/vnd.abiquo.pricingtier+json; version=3.2; application/vnd.abiquo.pricingtier+xml; version=3.2;  Content-type: ;
Request Parameters:

Parameter

Required

Default Value

Description

 

 

 

 

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

 Click here to show or hide the request example

 

Retrieve a Pricing Tier example
curl -X GET http://example.com/api/config/pricingtemplates/1/tiers/1\
     -H 'Accept: application/vnd.abiquo.pricingtier+xml; version=2.4'  \
     -u user:password --verbose
GET http://example.com/api/config/pricingtemplates/1/tiers/1 HTTP/1.1
Authorization: Basic YWRtaW46eGFiaXF1bw==
Accept: application/vnd.abiquo.pricingtier+xml;version=2.4
HTTP/1.1 200 OK
Date: Wed, 16 Jan 2013 14:10:26 GMT
Set-Cookie: JSESSIONID=E19FD195C2FC279714D794C9D472E85A; Path=/api
Set-Cookie: auth=YWRtaW46MTM1ODM0NzIyNzAyNjo3ODNkNmIwYzM4NTQ5MWE4NjJkNTc3NGM0OTVmNWM5ODpBQklRVU8; Expires=Wed, 16-Jan-2013 14:40:27 GMT; Path=/api
Server: Apache-Coyote/1.1
Content-Type: application/vnd.abiquo.pricingtier+xml;version=2.4
Content-Length: 1796
<?xml version="1.0" encoding="UTF-8"?>
 <pricingTier>
    <link
      href="http://example.com/api/config/pricingtemplates/1/tiers/1"
      rel="edit" type="application/vnd.abiquo.pricingtier+xml"/>
    <link href="http://example.com/api/config/pricingtemplates/1" rel="pricingtemplate"/>
    <link
      href="http://example.com/api/admin/datacenters/1/storage/tiers/1"
      rel="tier" title="JC-b46300d9-bc6" type="application/vnd.abiquo.tier+xml"/>
    <id>1</id>
    <price>0.00000</price>
 </pricingTier>