Flavor Management

Management of Flavors is available via the following endpoint:

/api/flavors

Querying Flavors

Querying all available Flavors:

GET /api/flavors

Getting details on a specific Flavor:

GET /api/flavors/:id

Querying the Flavors for a specific Provider:

GET /api/providers/:id/flavors

Getting details on a specific Flavor of a Provider:

GET /api/providers/:id/flavors/:flavor_id

Managing Flavors

The following actions are available on Flavors of Providers:

Action Description
create Create Flavors
delete Delete Flavors

Create Flavors

Flavors can be created directly for a Provider as follows:

POST /api/providers/:id/flavors
{
  "name" : "base-system",
  "cpu_cores" : 2,
  "memory" :  4096000000,
  "root_disk_size" : 16384000000
}

Delete Flavors

Flavors of a Provider can be deleted via the delete action:

POST /api/providers/:id/flavors/:flavor_id
{
  "action" : "delete"
}

Multiple Flavors can also be deleted in a single request as follows:

POST /api/providers/:id/flavors
{
  "action" : "delete",
  "resources" : [
    { "href" : "http://localhost:3000/api/flavors/6" },
    { "id" : "7" }
  ]
}

Single Flavors can also be deleted with the DELETE HTTP method as follows:

DELETE /api/providers/:id/flavors/:flavor_id