Table C-4. Flavor-related APIs

Action

URI

Description

GET

/v1.0/{tenant-id}/flavors

List flavors

GET

/v1.0/{tenant-id}/flavors/{id}

Show flavor

List Flavors

Title

List Flavors

URL

/v1.0/{tenant-id}/flavors

Method

GET

URL Parameters

None

Headers

X-Auth-Token: <token>

Accept: application/json

Content-Type: application/json

Data Parameters

None

Success Response

Code: 200

Notes

None

The following example demonstrates the use of the API call to list flavors:

ubuntu@trove-book:~/api$ cat ./get-flavors.bashcurl -g -i -H 'Content-Type: application/json' \-H 'X-Auth-Token: 5c63994f772940a28c6b6418eaa2db3b' \-H 'Accept: application/json' \-X GET \http://192.168.117.5:8779/v1.0/70195ed77e594c63b33c5403f2e2885c/flavorsubuntu@trove-book:~/api$ . ./get-flavors.bash ...

Get OpenStack Trove now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.