Openstack Flavors
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/openstack-flavors/ |
List flavors |
| GET | /api/openstack-flavors/{uuid}/ |
Get flavor details |
| Other Actions | ||
| GET | /api/openstack-flavors/usage_stats/ |
Get flavor usage statistics |
Core CRUD
List flavors
Get a list of available VM instance flavors.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
openstack_flavors_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
cores |
integer | |
cores__gte |
integer | |
cores__lte |
integer | |
disk |
integer | |
disk__gte |
integer | |
disk__lte |
integer | |
field |
array | |
name |
string | Name |
name_exact |
string | Name (exact) |
name_iregex |
string | Name (regex) |
o |
array | Ordering |
offering_uuid |
string (uuid) | Offering UUID |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
ram |
integer | |
ram__gte |
integer | |
ram__lte |
integer | |
settings |
string | Settings URL |
settings_uuid |
string (uuid) | Settings UUID |
tenant |
string | Tenant URL |
tenant_uuid |
string (uuid) | Tenant UUID |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
url |
string (uri) | |
uuid |
string (uuid) | |
name |
string | |
settings |
string (uri) | |
cores |
integer | Number of cores in a VM |
ram |
integer | Memory size in MiB |
disk |
integer | Root disk size in MiB |
backend_id |
string | |
display_name |
string |
Get flavor details
Retrieve details of a specific VM instance flavor.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
openstack_flavors_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type |
|---|---|
field |
array |
200 -
| Field | Type | Description |
|---|---|---|
url |
string (uri) | |
uuid |
string (uuid) | |
name |
string | |
settings |
string (uri) | |
cores |
integer | Number of cores in a VM |
ram |
integer | Memory size in MiB |
disk |
integer | Root disk size in MiB |
backend_id |
string | |
display_name |
string |
Other Actions
Get flavor usage statistics
Retrieve usage statistics for VM instance flavors, showing running and created instance counts for each flavor.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 | |
- API Source:
openstack_flavors_usage_stats_retrieve
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type |
|---|---|
field |
array |
200 -
| Field | Type | Description |
|---|---|---|
url |
string (uri) | |
uuid |
string (uuid) | |
name |
string | |
settings |
string (uri) | |
cores |
integer | Number of cores in a VM |
ram |
integer | Memory size in MiB |
disk |
integer | Root disk size in MiB |
backend_id |
string | |
display_name |
string |