# Virtual Machine Flavor Controller Resource

The API allows you list and view Virtual Machine Flavors.

### GET /virtual-machine-flavors

Returns list of flavors filtered by specified query parameters.

Request Parameters
name | type | description
--- | --- | ---
direction | query |
filter | query |
hvCluster-uuid | query |
hypervisor-manager | query |
nameLike | query |
orderBy | query |
page | query |
project | query |
project-uuid | query |
size | query |

Response Body
media type | data type | description
--- | --- | ---
application/json | array of VmFlavorListRecord (JSON) | list of networks filtered by specified query parameters

#### Example

##### Request

    GET /virtual-machine-flavors
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ { } ]

### GET /virtual-machine-flavors/for-restore

Returns list of flavors for restore filtered by specified query parameters.

Request Parameters
name | type | description
--- | --- | ---
direction | query |
filter | query |
hvCluster-uuid | query |
hypervisor-manager | query |
nameLike | query |
orderBy | query |
page | query |
project | query |
project-uuid | query |
size | query |

Response Body
media type | data type | description
--- | --- | ---
application/json | array of VmFlavorForRestoreListRecord (JSON) | list of networks filtered by specified query parameters

#### Example

##### Request

    GET /virtual-machine-flavors/for-restore
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    [ { } ]

### DELETE /virtual-machine-flavors/{guid}

Request Parameters
name | type | description
--- | --- | ---
guid | path |

#### Example

##### Request

    DELETE /virtual-machine-flavors/{guid}
    Content-Type: */*

    ...

##### Response

    HTTP/1.1 204 No Content

### GET /virtual-machine-flavors/{guid}

Get a single flavor.

Request Parameters
name | type | description
--- | --- | ---
guid | path | specify local unique identifier for flavor (use by vProtect)

Response Body
media type | data type | description
--- | --- | ---
application/json | VmFlavorDetails (JSON) | flavor details

#### Example

##### Request

    GET /virtual-machine-flavors/{guid}
    Content-Type: */*
    Accept: application/json

    ...

##### Response

    HTTP/1.1 200 OK
    Content-Type: application/json

    { }