blob: b9857f17e32d2073b51753b38668d7eebae0394e [file] [log] [blame]
Masayuki Igawa435fa492014-03-18 12:00:54 +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
15get_limit = {
16 'status_code': [200],
17 'response_body': {
18 'type': 'object',
19 'properties': {
20 'limits': {
21 'type': 'object',
22 'properties': {
23 'absolute': {
24 'type': 'object',
25 'properties': {
26 'maxTotalRAMSize': {'type': 'integer'},
27 'totalCoresUsed': {'type': 'integer'},
28 'maxTotalInstances': {'type': 'integer'},
29 'maxTotalFloatingIps': {'type': 'integer'},
30 'totalSecurityGroupsUsed': {'type': 'integer'},
31 'maxTotalCores': {'type': 'integer'},
32 'totalFloatingIpsUsed': {'type': 'integer'},
33 'maxSecurityGroups': {'type': 'integer'},
34 'maxServerMeta': {'type': 'integer'},
35 'maxPersonality': {'type': 'integer'},
36 'maxImageMeta': {'type': 'integer'},
37 'maxPersonalitySize': {'type': 'integer'},
38 'maxSecurityGroupRules': {'type': 'integer'},
39 'maxTotalKeypairs': {'type': 'integer'},
40 'totalRAMUsed': {'type': 'integer'},
41 'totalInstancesUsed': {'type': 'integer'}
42 },
43 'required': ['maxImageMeta',
44 'maxPersonality',
45 'maxPersonalitySize',
46 'maxSecurityGroupRules',
47 'maxSecurityGroups',
48 'maxServerMeta',
49 'maxTotalCores',
50 'maxTotalFloatingIps',
51 'maxTotalInstances',
52 'maxTotalKeypairs',
53 'maxTotalRAMSize',
54 'totalCoresUsed',
55 'totalFloatingIpsUsed',
56 'totalInstancesUsed',
57 'totalRAMUsed',
58 'totalSecurityGroupsUsed']
59 },
60 'rate': {
61 'type': 'array',
62 'items': {
63 'type': 'object',
64 'properties': {
65 'limit': {
66 'type': 'array',
67 'items': {
68 'type': 'object',
69 'properties': {
70 'next-available':
71 {'type': 'string'},
72 'remaining':
73 {'type': 'integer'},
74 'unit':
75 {'type': 'string'},
76 'value':
77 {'type': 'integer'},
78 'verb':
79 {'type': 'string'}
80 }
81 }
82 },
83 'regex': {'type': 'string'},
84 'uri': {'type': 'string'}
85 }
86 }
87 }
88 },
89 'required': ['absolute', 'rate']
90 }
91 },
92 'required': ['limits']
93 }
94}