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 4.4

Skip to end of metadata
Go to start of metadata

Contents:

AvailabilityZone Resource

This resource returns the availibility zones of a location. Use links to the availability zones when you create private networks in the given location. 

To create a private network in a given availibilty zone, send a data entity of the VlanNetwork that includes the link to the availability zone to use. 

Main URI of the Resource

This class operates mainly over the Resource URI: /cloud/location/{id}/availabilityzones

Exposed Methods

Retrieve all availability zones

Return the list of availability zones where you can create a private network in this location

Synopsis: GET http://example.com/api/cloud/locations/{id}/availabilityzones 
Roles Required: VDC_ENUMERATE
Request Headers: Accept:  application/vnd.abiquo.availabilityzones+json; version=4.4; application/vnd.abiquo.availabilityzones+xml; version=4.4;
Request Parameters:

Request Message Body Entity: 

Response Message Body Entity: 
Request Example:

 Click here to show or hide the request example


GET_cld_locs_X_avzones_AC_avzones_j.0002.txt

cURL:

curl -X GET http://localhost:9000/api/cloud/locations/5002/availabilityzones \ 
	 -H 'Accept:application/vnd.abiquo.availabilityzones+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "links": [], 
  "collection": [
    {
      "name": "azA", 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/locations/5002/availabilityzones/azA", 
          "type": "application/vnd.abiquo.availabilityzone+json", 
          "rel": "self", 
          "title": "azA"
        }
      ]
    }, 
    {
      "name": "azB", 
      "links": [
        {
          "href": "http://localhost:9009/api/cloud/locations/5002/availabilityzones/azB", 
          "type": "application/vnd.abiquo.availabilityzone+json", 
          "rel": "self", 
          "title": "azB"
        }
      ]
    }
  ]
}

See also XML example: GET_cld_locs_X_avzones_AC_avzones_x

Retrieve an availability zone

Return a single availability zone where you can create a private network in this location

Synopsis: GET http://example.com/api/cloud/locations/{id}/availabilityzones/{id}
Roles Required: VDC_ENUMERATE
Request Headers: Accept: application/vnd.abiquo.availabilityzone+json; version=4.4; application/vnd.abiquo.availabilityzone+xml; version=4.4;
Request Parameters:

Request Message Body Entity: 

Response Message Body Entity: 
Request Example:

 Click here to show or hide the request example

GET_cld_locs_X_avzones_azA_AC_avzone_j.0001.txt

cURL:

curl -X GET http://localhost:9000/api/cloud/locations/5027/availabilityzones/azA \ 
	 -H 'Accept:application/vnd.abiquo.availabilityzone+json; version=4.2' \ 
	 -u user:password --verbose 

Success status code: 200

Request payload:

--none--

Response payload:

{
  "name": "azA", 
  "links": [
    {
      "href": "http://localhost:9009/api/cloud/locations/5027/availabilityzones/azA", 
      "type": "application/vnd.abiquo.availabilityzone+json", 
      "rel": "self", 
      "title": "azA"
    }
  ]
}

See also XML example: GET_cld_locs_X_avzones_azA_AC_avzone_x