Editing and deleting flavors

Prerequisites

To change flavor access

Admin panel

  1. On the Compute > Virtual machines > Flavors tab, select the required flavor.
  2. On the flavor right pane, click Manage in the Access section.
  3. In the Manage access window, configure the flavor access:

    • To make the flavor public, select Public.
    • To share the flavor with all projects in a domain, select Private and select the required domain.
    • To share the flavor with specific projects in a domain, select Private, click the required domain, and select projects.
    • To make the flavor private with no access, select Private.
  4. Click Save.

Command-line interface

Use the following command:

vinfra service compute flavor set [--access-list <json>] [--public] <flavor>
<flavor>
Flavor ID or name
--access-list <json>

Access list in JSON format. Omit this parameter or use null to make the flavor public.

Examples:

  • '[{"domain_id": "d1", "projects": ["p1"]}]' for specific projects in a domain
  • '[{"domain_id": "d1"}]' for all projects in a domain
  • '[{"projects": ["p1"]}]' for projects without a domain
  • '[]' to make the flavor private with no access
--public
Make the flavor public (clears access_list). If both --public and --access-list are provided, --public takes precedence.

For example, to share the flavor myflavorwith the project myproject in the domain mydomain, run:

# vinfra service compute flavor set myflavor --access-list '[{"domain_id": "mydomain", "projects": ["myproject"]}]'

To delete a flavor

Admin panel

  1. On the Compute > Virtual machines > Flavors tab, select the flavor you want to delete.
  2. On the flavor right pane, click Delete.
  3. Click Delete in the confirmation window.

Command-line interface

Use the following command:

vinfra service compute flavor delete <flavor>
<flavor>
Flavor ID or name

For example, to delete the flavor myflavor, run:

# vinfra service compute flavor delete myflavor