API to get the Cell Capacity
The total RAM and the available RAM are stored in memory of CellStateManager. This API gets the available slots per flavor for a given cell. Implements: blueprint get-cell-free-ram Change-Id: I2a6dbb8835cad04f3ee058c3012490782d7c8e67
This commit is contained in:
@@ -160,6 +160,14 @@
|
||||
"namespace": "http://docs.openstack.org/compute/ext/cells/api/v1.1",
|
||||
"updated": "2011-09-21T00:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"alias": "os-cell-capacities",
|
||||
"description": "Adding functionality to get cell capacities.",
|
||||
"links": [],
|
||||
"name": "CellCapacities",
|
||||
"namespace": "http://docs.openstack.org/compute/ext/cell_capacities/api/v1.1",
|
||||
"updated": "2013-05-27T00:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"alias": "os-certificates",
|
||||
"description": "Certificates support.",
|
||||
|
||||
@@ -68,6 +68,9 @@
|
||||
listing neighbor cells, and getting the capabilities of the local cell.
|
||||
</description>
|
||||
</extension>
|
||||
<extension alias="os-cell-capacities" updated="2013-05-27T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/cell_capacities/api/v1.1" name="CellCapacities">
|
||||
<description>Adds functionality to get cell capacities.</description>
|
||||
</extension>
|
||||
<extension alias="os-certificates" updated="2012-01-19T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/certificates/api/v1.1" name="Certificates">
|
||||
<description>Certificates support.</description>
|
||||
</extension>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"cell": {
|
||||
"capacities": {
|
||||
"ram_free": {
|
||||
"units_by_mb": {
|
||||
"8192": 0, "512": 13, "4096": 1, "2048": 3, "16384": 0
|
||||
},
|
||||
"total_mb": 7680
|
||||
},
|
||||
"disk_free": {
|
||||
"units_by_mb": {
|
||||
"81920": 11, "20480": 46, "40960": 23, "163840": 5, "0": 0
|
||||
},
|
||||
"total_mb": 1052672
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
19
doc/api_samples/os-cell-capacities/cells-capacities-resp.xml
Normal file
19
doc/api_samples/os-cell-capacities/cells-capacities-resp.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<cell xmlns="http://docs.rackspacecloud.com/servers/api/v1.0">
|
||||
<capacities>
|
||||
<ram_free total_mb="7680">
|
||||
<unit_by_mb unit="0" mb="8192"/>
|
||||
<unit_by_mb unit="13" mb="512"/>
|
||||
<unit_by_mb unit="1" mb="4096"/>
|
||||
<unit_by_mb unit="3" mb="2048"/>
|
||||
<unit_by_mb unit="0" mb="16384"/>
|
||||
</ram_free>
|
||||
<disk_free total_mb="1052672">
|
||||
<unit_by_mb unit="11" mb="81920"/>
|
||||
<unit_by_mb unit="46" mb="20480"/>
|
||||
<unit_by_mb unit="23" mb="40960"/>
|
||||
<unit_by_mb unit="5" mb="163840"/>
|
||||
<unit_by_mb unit="0" mb="0"/>
|
||||
</disk_free>
|
||||
</capacities>
|
||||
</cell>
|
||||
Reference in New Issue
Block a user