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:
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"flavor": {
|
||||
"name": "test_flavor",
|
||||
"ram": 1024,
|
||||
"vcpus": 2,
|
||||
"disk": 10,
|
||||
"id": "10"
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user