Skip to content

Flavors API reference

See https://docs.openstack.org/api-ref/compute/.

These endpoints allow you to perform various operations related to flavor management, such as creating, listing, updating, and deleting flavors, as well as managing access to private flavors. The {flavor_id} and {project_id} in the URLs are placeholders that should be replaced with the actual IDs of the flavor and the project.

List flavors

Bash
GET /flavors

Show flavor details

Bash
GET /flavors/{flavor_id}

Create a flavor

Bash
POST /flavors

Update a flavor

Bash
PUT /flavors/{flavor_id}

Delete a flavor

Bash
DELETE /flavors/{flavor_id}

List flavor access (for private flavors)

Bash
GET /flavors/{flavor_id}/os-flavor-access

Add flavor access (make a flavor private and grant access to specific projects)

Bash
POST /flavors/{flavor_id}/action with {"addTenantAccess": {"tenant": "{project_id}"}} in the request body

Remove flavor access (revoke access from specific projects)

Bash
POST /flavors/{flavor_id}/action with {"removeTenantAccess": {"tenant": "{project_id}"}} in the request body