This command lists the flavors for images on the appropriate cloud for a specified configuration file.
Request
GET http://{hostname}:{port}
/landscaper/rest/cloud/resources/flavors/blueprint/{blueprint}/configuration/{configuration}
Accept: application/json
Table 1. URL parameters
Parameter |
Type |
Required |
Description |
blueprint |
string |
true |
The blueprint ID |
configuration |
string |
true |
The configuration file ID |
Example
curl -u jsmith:passwd
http://myserver.example.com:8080/landscaper/rest/cloud/resources/
flavors/blueprint/MyBlueprint/configuration/MyConfigOpenStack
Example response
[
{
"OS-FLV-DISABLED:disabled": false,
"OS-FLV-EXT-DATA:ephemeral": 0,
"disk": "80",
"id": "m1.large",
"links": [
{
"href": "http://cloud.example.com:8774/v2/abc/flavors/4",
"rel": "self",
"type": null
},
{
"href": "http://cloud.example.com:8774/v2/abc/flavors/4",
"rel": "bookmark",
"type": null
}
],
"name": "m1.large",
"os-flavor-access:is_public": true,
"public": true,
"ram": 8192,
"rxtx_cap": null,
"rxtx_factor": 1,
"rxtx_quota": null,
"swap": "",
"vcpus": "4"
},
{
"OS-FLV-DISABLED:disabled": false,
"OS-FLV-EXT-DATA:ephemeral": 0,
"disk": "40",
"id": "m1.medium",
"links": [
{
"href": "http://cloud.example.com:8774/v2/abc/flavors/3",
"rel": "self",
"type": null
},
{
"href": "http://cloud.example.com:8774/v2/abc/flavors/3",
"rel": "bookmark",
"type": null
}
],
"name": "m1.medium",
"os-flavor-access:is_public": true,
"public": true,
"ram": 4096,
"rxtx_cap": null,
"rxtx_factor": 1,
"rxtx_quota": null,
"swap": "",
"vcpus": "2"
}
]