List flavors with access type

Method URI Description
GET /v2/{tenant_id}/flavors Lists flavors and includes the access type, which is public or private.

Normal response codes: 200

Request

This table shows the URI parameters for the list flavors with access type request:

Name Type Description
{tenant_id} String Project ID

This operation does not require a request body.

Response

Example. List flavors with access type: JSON response


{
	"flavors": [
		{
			"disk": 1,
			"id": "1",
			"links": [
				{
					"href": "http://openstack.example.com/v2/openstack/flavors/1",
					"rel": "self"
				},
				{
					"href": "http://openstack.example.com/openstack/flavors/1",
					"rel": "bookmark"
				}
			],
			"name": "m1.tiny",
			"os-flavor-access:is_public": true,
			"ram": 512,
			"vcpus": 1
		},
		{
			"disk": 20,
			"id": "2",
			"links": [
				{
					"href": "http://openstack.example.com/v2/openstack/flavors/2",
					"rel": "self"
				},
				{
					"href": "http://openstack.example.com/openstack/flavors/2",
					"rel": "bookmark"
				}
			],
			"name": "m1.small",
			"os-flavor-access:is_public": true,
			"ram": 2048,
			"vcpus": 1
		},
		{
			"disk": 40,
			"id": "3",
			"links": [
				{
					"href": "http://openstack.example.com/v2/openstack/flavors/3",
					"rel": "self"
				},
				{
					"href": "http://openstack.example.com/openstack/flavors/3",
					"rel": "bookmark"
				}
			],
			"name": "m1.medium",
			"os-flavor-access:is_public": true,
			"ram": 4096,
			"vcpus": 2
		},
		{
			"disk": 80,
			"id": "4",
			"links": [
				{
					"href": "http://openstack.example.com/v2/openstack/flavors/4",
					"rel": "self"
				},
				{
					"href": "http://openstack.example.com/openstack/flavors/4",
					"rel": "bookmark"
				}
			],
			"name": "m1.large",
			"os-flavor-access:is_public": true,
			"ram": 8192,
			"vcpus": 4
		},
		{
			"disk": 160,
			"id": "5",
			"links": [
				{
					"href": "http://openstack.example.com/v2/openstack/flavors/5",
					"rel": "self"
				},
				{
					"href": "http://openstack.example.com/openstack/flavors/5",
					"rel": "bookmark"
				}
			],
			"name": "m1.xlarge",
			"os-flavor-access:is_public": true,
			"ram": 16384,
			"vcpus": 8
		}
	]
}