Add V3 API samples for flavor-manage,flavor-extra-specs

Partially implements bp v3-api-extension-versioning

Change-Id: I54881677005cc085e5a2a604fc83eb4225ffd5d0
This commit is contained in:
He Jie Xu
2013-09-05 13:45:09 +08:00
parent c898bf8ec4
commit eb4519c683
34 changed files with 299 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{
"flavor": {
"name": "test_flavor",
"ram": 1024,
"vcpus": 2,
"disk": 10,
"id": "10"
}
}

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<flavor>
<name>test_flavor</name>
<ram>1024</ram>
<vcpus>2</vcpus>
<disk>10</disk>
<id>10</id>
</flavor>

View File

@@ -0,0 +1,22 @@
{
"flavor": {
"disabled": false,
"disk": 10,
"ephemeral": "",
"id": "10",
"links": [
{
"href": "http://openstack.example.com/v3/flavors/10",
"rel": "self"
},
{
"href": "http://openstack.example.com/flavors/10",
"rel": "bookmark"
}
],
"name": "test_flavor",
"ram": 1024,
"swap": "",
"vcpus": 2
}
}

View File

@@ -0,0 +1,5 @@
<?xml version='1.0' encoding='UTF-8'?>
<flavor xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1" name="test_flavor" ram="1024" ephemeral="" disabled="False" vcpus="2" swap="" disk="10" id="10">
<atom:link href="http://openstack.example.com/v3/flavors/10" rel="self"/>
<atom:link href="http://openstack.example.com/flavors/10" rel="bookmark"/>
</flavor>