Listing flavors (cURL)#

  1. Issue the following cURL command.

    List flavors with cURL request

    $ curl -s https://$API_ENDPOINT/v2/$TENANT_ID/flavors \
           -H "X-Auth-Token: $AUTH_TOKEN" | python -m json.tool

    For each flavor, the command returns the flavor ID, links, and name.

    The following output shows just the information returned for an 15 GB Compute1 server. For brevity, other flavors in the array were removed. Your listing will return all available flavors.

    List flavors with cURL response

                "id": "6",
                "links": [
                        "href": "",
                        "rel": "self"
                        "href": "",
                        "rel": "bookmark"
                "name": "8GB Standard Instance"
  2. Copy the ID of the flavor you want to use from the id field in the output. The value from this field will be used for the flavorRef field when you create a server.

    In this example, use the flavor ID for the 8GB Standard Instance, which is 6.

Next topic: Booting server