Editing and deleting flavors
Prerequisites
- A flavor is created, as described in Creating flavors.
To change flavor access
Admin panel
- On the Compute > Virtual machines > Flavors tab, select the required flavor.
- On the flavor right pane, click Manage in the Access section.
-
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.
- 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
nullto 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--publicand--access-listare provided,--publictakes 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
- On the Compute > Virtual machines > Flavors tab, select the flavor you want to delete.
- On the flavor right pane, click Delete.
- 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