blob: a73e21482c82ae49ff61664181366850ea3cbe12 [file] [log] [blame]
Haiwei Xu54432cf2014-03-17 22:58:11 +09001# Copyright 2014 NEC Corporation. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15list_hosts = {
16 'status_code': [200],
17 'response_body': {
18 'type': 'object',
19 'properties': {
20 'hosts': {
21 'type': 'array',
22 'items': {
23 'type': 'object',
24 'properties': {
25 'host_name': {'type': 'string'},
26 'service': {'type': 'string'},
27 'zone': {'type': 'string'}
28 },
29 'required': ['host_name', 'service', 'zone']
30 }
31 }
32 },
33 'required': ['hosts']
34 }
35}
Haiwei Xud99dd482014-03-19 05:28:36 +090036
37show_host_detail = {
38 'status_code': [200],
39 'response_body': {
40 'type': 'object',
41 'properties': {
42 'host': {
43 'type': 'array',
44 'item': {
45 'type': 'object',
46 'properties': {
47 'resource': {
48 'type': 'object',
49 'properties': {
50 'cpu': {'type': 'integer'},
51 'disk_gb': {'type': 'integer'},
52 'host': {'type': 'string'},
53 'memory_mb': {'type': 'integer'},
54 'project': {'type': 'string'}
55 },
56 'required': ['cpu', 'disk_gb', 'host',
57 'memory_mb', 'project']
58 }
59 },
60 'required': ['resource']
61 }
62 }
63 },
64 'required': ['host']
65 }
66}