Interface FlavorApi
@Consumes("application/json")
@Path("/flavors")
public interface FlavorApi
Provides access to the OpenStack Compute (Nova) Flavor API.
-
Method Summary
Modifier and TypeMethodDescriptionCreate flavor according to the provided objectvoid
Delete flavor with a given idList details of the specified flavorlist()
List all flavors (IDs, names, links)list
(PaginationOptions options) List all flavors (all details)listInDetail
(PaginationOptions options)
-
Method Details
-
list
List all flavors (IDs, names, links)- Returns:
- all flavors (IDs, names, links)
-
list
-
listInDetail
List all flavors (all details)- Returns:
- all flavors (all details)
-
listInDetail
@Named("flavor:list") @GET @Path("/detail") PaginatedCollection<Flavor> listInDetail(PaginationOptions options) -
get
List details of the specified flavor- Parameters:
id
- id of the flavor- Returns:
- flavor or null if not found
-
create
Create flavor according to the provided object- Parameters:
flavor
- - flavor object- Returns:
- newly created flavor
-
delete
Delete flavor with a given id- Parameters:
id
- - flavor id
-