Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / api / services.py @ d0545590

History | View | Annotate | Download (5.5 kB)

1 efb00000 Georgios D. Tsoukalas
# Copyright 2013 GRNET S.A. All rights reserved.
2 efb00000 Georgios D. Tsoukalas
#
3 efb00000 Georgios D. Tsoukalas
# Redistribution and use in source and binary forms, with or
4 efb00000 Georgios D. Tsoukalas
# without modification, are permitted provided that the following
5 efb00000 Georgios D. Tsoukalas
# conditions are met:
6 efb00000 Georgios D. Tsoukalas
#
7 efb00000 Georgios D. Tsoukalas
#   1. Redistributions of source code must retain the above
8 efb00000 Georgios D. Tsoukalas
#      copyright notice, this list of conditions and the following
9 efb00000 Georgios D. Tsoukalas
#      disclaimer.
10 efb00000 Georgios D. Tsoukalas
#
11 efb00000 Georgios D. Tsoukalas
#   2. Redistributions in binary form must reproduce the above
12 efb00000 Georgios D. Tsoukalas
#      copyright notice, this list of conditions and the following
13 efb00000 Georgios D. Tsoukalas
#      disclaimer in the documentation and/or other materials
14 efb00000 Georgios D. Tsoukalas
#      provided with the distribution.
15 efb00000 Georgios D. Tsoukalas
#
16 efb00000 Georgios D. Tsoukalas
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 efb00000 Georgios D. Tsoukalas
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 efb00000 Georgios D. Tsoukalas
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 efb00000 Georgios D. Tsoukalas
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 efb00000 Georgios D. Tsoukalas
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 efb00000 Georgios D. Tsoukalas
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 efb00000 Georgios D. Tsoukalas
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 efb00000 Georgios D. Tsoukalas
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 efb00000 Georgios D. Tsoukalas
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 efb00000 Georgios D. Tsoukalas
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 efb00000 Georgios D. Tsoukalas
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 efb00000 Georgios D. Tsoukalas
# POSSIBILITY OF SUCH DAMAGE.
28 efb00000 Georgios D. Tsoukalas
#
29 efb00000 Georgios D. Tsoukalas
# The views and conclusions contained in the software and
30 efb00000 Georgios D. Tsoukalas
# documentation are those of the authors and should not be
31 efb00000 Georgios D. Tsoukalas
# interpreted as representing official policies, either expressed
32 efb00000 Georgios D. Tsoukalas
# or implied, of GRNET S.A.
33 efb00000 Georgios D. Tsoukalas
34 efb00000 Georgios D. Tsoukalas
35 efb00000 Georgios D. Tsoukalas
# Required but undefined fields are given a value of None
36 efb00000 Georgios D. Tsoukalas
37 efb00000 Georgios D. Tsoukalas
cyclades_services = {
38 efb00000 Georgios D. Tsoukalas
    'cyclades_compute': {
39 efb00000 Georgios D. Tsoukalas
        'type': 'compute',
40 efb00000 Georgios D. Tsoukalas
        'component': 'cyclades',
41 efb00000 Georgios D. Tsoukalas
        'prefix': 'compute',
42 efb00000 Georgios D. Tsoukalas
        'public': True,
43 efb00000 Georgios D. Tsoukalas
        'endpoints': [
44 4080a1df Georgios D. Tsoukalas
            {'versionId': 'v2.0',
45 efb00000 Georgios D. Tsoukalas
             'publicURL': None},
46 47d421ae Georgios D. Tsoukalas
        ],
47 47d421ae Georgios D. Tsoukalas
        'resources': {
48 47d421ae Georgios D. Tsoukalas
            'vm': {
49 47d421ae Georgios D. Tsoukalas
                "name": "cyclades.vm",
50 47d421ae Georgios D. Tsoukalas
                "desc": "Number of virtual machines",
51 47d421ae Georgios D. Tsoukalas
                "service_type": "compute",
52 47d421ae Georgios D. Tsoukalas
                "service_origin": "cyclades_compute",
53 47d421ae Georgios D. Tsoukalas
            },
54 47d421ae Georgios D. Tsoukalas
            'cpu': {
55 47d421ae Georgios D. Tsoukalas
                "name": "cyclades.cpu",
56 47d421ae Georgios D. Tsoukalas
                "desc": "Number of virtual machine processors",
57 47d421ae Georgios D. Tsoukalas
                "service_type": "compute",
58 47d421ae Georgios D. Tsoukalas
                "service_origin": "cyclades_compute",
59 47d421ae Georgios D. Tsoukalas
            },
60 41a7fae7 Christos Stavrakakis
            'active_cpu': {
61 41a7fae7 Christos Stavrakakis
                "name": "cyclades.active_cpu",
62 41a7fae7 Christos Stavrakakis
                "desc": "Number of virtual machine processors of running"
63 41a7fae7 Christos Stavrakakis
                        " servers",
64 41a7fae7 Christos Stavrakakis
                "service_type": "compute",
65 41a7fae7 Christos Stavrakakis
                "service_origin": "cyclades_compute",
66 41a7fae7 Christos Stavrakakis
            },
67 47d421ae Georgios D. Tsoukalas
            'ram': {
68 47d421ae Georgios D. Tsoukalas
                "name": "cyclades.ram",
69 47d421ae Georgios D. Tsoukalas
                "desc": "Virtual machine memory size",
70 47d421ae Georgios D. Tsoukalas
                "unit": "bytes",
71 47d421ae Georgios D. Tsoukalas
                "service_type": "compute",
72 47d421ae Georgios D. Tsoukalas
                "service_origin": "cyclades_compute",
73 47d421ae Georgios D. Tsoukalas
            },
74 41a7fae7 Christos Stavrakakis
            'active_ram': {
75 41a7fae7 Christos Stavrakakis
                "name": "cyclades.active_ram",
76 41a7fae7 Christos Stavrakakis
                "desc": "Virtual machine memory size of running servers",
77 41a7fae7 Christos Stavrakakis
                "unit": "bytes",
78 41a7fae7 Christos Stavrakakis
                "service_type": "compute",
79 41a7fae7 Christos Stavrakakis
                "service_origin": "cyclades_compute",
80 41a7fae7 Christos Stavrakakis
            },
81 47d421ae Georgios D. Tsoukalas
            'disk': {
82 47d421ae Georgios D. Tsoukalas
                "name": "cyclades.disk",
83 47d421ae Georgios D. Tsoukalas
                "desc": "Virtual machine disk size",
84 47d421ae Georgios D. Tsoukalas
                "unit": "bytes",
85 47d421ae Georgios D. Tsoukalas
                "service_type": "compute",
86 47d421ae Georgios D. Tsoukalas
                "service_origin": "cyclades_compute",
87 47d421ae Georgios D. Tsoukalas
            },
88 47d421ae Georgios D. Tsoukalas
            'network-private': {
89 47d421ae Georgios D. Tsoukalas
                "name": "cyclades.network.private",
90 47d421ae Georgios D. Tsoukalas
                "desc": "Number of private networks",
91 47d421ae Georgios D. Tsoukalas
                "service_type": "compute",
92 47d421ae Georgios D. Tsoukalas
                "service_origin": "cyclades_compute",
93 47d421ae Georgios D. Tsoukalas
            },
94 8b41683a Christos Stavrakakis
            'floating_ip': {
95 8b41683a Christos Stavrakakis
                "name": "cyclades.floating_ip",
96 8b41683a Christos Stavrakakis
                "desc": "Number of Floating IP addresses",
97 8b41683a Christos Stavrakakis
                "service_type": "compute",
98 8b41683a Christos Stavrakakis
                "service_origin": "cyclades_compute",
99 8b41683a Christos Stavrakakis
            },
100 47d421ae Georgios D. Tsoukalas
        },
101 43d9e5f4 Giorgos Korfiatis
    },
102 b70c0e29 Georgios D. Tsoukalas
103 efb00000 Georgios D. Tsoukalas
    'cyclades_plankton': {
104 efb00000 Georgios D. Tsoukalas
        'type': 'image',
105 efb00000 Georgios D. Tsoukalas
        'component': 'cyclades',
106 efb00000 Georgios D. Tsoukalas
        'prefix': 'image',
107 efb00000 Georgios D. Tsoukalas
        'public': True,
108 efb00000 Georgios D. Tsoukalas
        'endpoints': [
109 125a1cee Georgios D. Tsoukalas
            {'versionId': 'v1.0',
110 47d421ae Georgios D. Tsoukalas
             'publicURL': None},
111 47d421ae Georgios D. Tsoukalas
        ],
112 47d421ae Georgios D. Tsoukalas
        'resources': {},
113 47d421ae Georgios D. Tsoukalas
    },
114 efb00000 Georgios D. Tsoukalas
115 efb00000 Georgios D. Tsoukalas
    'cyclades_vmapi': {
116 7103bed5 Georgios D. Tsoukalas
        'type': 'vmapi',
117 efb00000 Georgios D. Tsoukalas
        'component': 'cyclades',
118 efb00000 Georgios D. Tsoukalas
        'prefix': 'vmapi',
119 efb00000 Georgios D. Tsoukalas
        'public': True,
120 efb00000 Georgios D. Tsoukalas
        'endpoints': [
121 4080a1df Georgios D. Tsoukalas
            {'versionId': 'v1.0',
122 efb00000 Georgios D. Tsoukalas
             'publicURL': None},
123 47d421ae Georgios D. Tsoukalas
        ],
124 47d421ae Georgios D. Tsoukalas
        'resources': {},
125 47d421ae Georgios D. Tsoukalas
    },
126 efb00000 Georgios D. Tsoukalas
127 efb00000 Georgios D. Tsoukalas
    'cyclades_helpdesk': {
128 efb00000 Georgios D. Tsoukalas
        'type': 'cyclades_helpdesk',
129 efb00000 Georgios D. Tsoukalas
        'component': 'cyclades',
130 efb00000 Georgios D. Tsoukalas
        'prefix': 'helpdesk',
131 efb00000 Georgios D. Tsoukalas
        'public': False,
132 efb00000 Georgios D. Tsoukalas
        'endpoints': [
133 4080a1df Georgios D. Tsoukalas
            {'versionId': '',
134 efb00000 Georgios D. Tsoukalas
             'publicURL': None},
135 47d421ae Georgios D. Tsoukalas
        ],
136 47d421ae Georgios D. Tsoukalas
    },
137 efb00000 Georgios D. Tsoukalas
138 efb00000 Georgios D. Tsoukalas
    'cyclades_userdata': {
139 efb00000 Georgios D. Tsoukalas
        'type': 'cyclades_userdata',
140 efb00000 Georgios D. Tsoukalas
        'component': 'cyclades',
141 efb00000 Georgios D. Tsoukalas
        'prefix': 'userdata',
142 efb00000 Georgios D. Tsoukalas
        'public': False,
143 efb00000 Georgios D. Tsoukalas
        'endpoints': [
144 4080a1df Georgios D. Tsoukalas
            {'versionId': '',
145 efb00000 Georgios D. Tsoukalas
             'publicURL': None},
146 47d421ae Georgios D. Tsoukalas
        ],
147 47d421ae Georgios D. Tsoukalas
        'resources': {},
148 47d421ae Georgios D. Tsoukalas
    },
149 efb00000 Georgios D. Tsoukalas
150 efb00000 Georgios D. Tsoukalas
    'cyclades_ui': {
151 efb00000 Georgios D. Tsoukalas
        'type': 'cyclades_ui',
152 efb00000 Georgios D. Tsoukalas
        'component': 'cyclades',
153 3ab15f84 Georgios D. Tsoukalas
        'prefix': 'ui',
154 efb00000 Georgios D. Tsoukalas
        'public': False,
155 efb00000 Georgios D. Tsoukalas
        'endpoints': [
156 4080a1df Georgios D. Tsoukalas
            {'versionId': '',
157 efb00000 Georgios D. Tsoukalas
             'publicURL': None},
158 47d421ae Georgios D. Tsoukalas
        ],
159 47d421ae Georgios D. Tsoukalas
        'resources': {},
160 47d421ae Georgios D. Tsoukalas
    },
161 4a8667dc Christos Stavrakakis
162 4a8667dc Christos Stavrakakis
    'cyclades_admin': {
163 4a8667dc Christos Stavrakakis
        'type': 'admin',
164 4a8667dc Christos Stavrakakis
        'component': 'cyclades',
165 4a8667dc Christos Stavrakakis
        'prefix': 'admin',
166 4a8667dc Christos Stavrakakis
        'public': True,
167 4a8667dc Christos Stavrakakis
        'endpoints': [
168 4a8667dc Christos Stavrakakis
            {'versionId': '',
169 4a8667dc Christos Stavrakakis
             'publicURL': None},
170 4a8667dc Christos Stavrakakis
        ],
171 4a8667dc Christos Stavrakakis
        'resources': {},
172 4a8667dc Christos Stavrakakis
    },
173 efb00000 Georgios D. Tsoukalas
}