Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6.1 kB)

1
# Copyright 2013 GRNET S.A. All rights reserved.
2
#
3
# Redistribution and use in source and binary forms, with or
4
# without modification, are permitted provided that the following
5
# conditions are met:
6
#
7
#   1. Redistributions of source code must retain the above
8
#      copyright notice, this list of conditions and the following
9
#      disclaimer.
10
#
11
#   2. Redistributions in binary form must reproduce the above
12
#      copyright notice, this list of conditions and the following
13
#      disclaimer in the documentation and/or other materials
14
#      provided with the distribution.
15
#
16
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
# POSSIBILITY OF SUCH DAMAGE.
28
#
29
# The views and conclusions contained in the software and
30
# documentation are those of the authors and should not be
31
# interpreted as representing official policies, either expressed
32
# or implied, of GRNET S.A.
33

    
34

    
35
# Required but undefined fields are given a value of None
36

    
37
cyclades_services = {
38
    'cyclades_compute': {
39
        'type': 'compute',
40
        'component': 'cyclades',
41
        'prefix': 'compute',
42
        'public': True,
43
        'endpoints': [
44
            {'versionId': 'v2.0',
45
             'publicURL': None},
46
        ],
47
        'resources': {
48
            'vm': {
49
                "name": "cyclades.vm",
50
                "desc": "Number of virtual machines",
51
                "service_type": "compute",
52
                "service_origin": "cyclades_compute",
53
            },
54
            'total_cpu': {
55
                "name": "cyclades.total_cpu",
56
                "desc": "Number of virtual machine processors",
57
                "service_type": "compute",
58
                "service_origin": "cyclades_compute",
59
                "ui_visible": False,
60
                "api_visible": False,
61
            },
62
            'cpu': {
63
                "name": "cyclades.cpu",
64
                "desc": "Number of virtual machine processors of running"
65
                        " servers",
66
                "service_type": "compute",
67
                "service_origin": "cyclades_compute",
68
            },
69
            'total_ram': {
70
                "name": "cyclades.total_ram",
71
                "desc": "Virtual machine memory size",
72
                "unit": "bytes",
73
                "service_type": "compute",
74
                "service_origin": "cyclades_compute",
75
                "ui_visible": False,
76
                "api_visible": False,
77
            },
78
            'ram': {
79
                "name": "cyclades.ram",
80
                "desc": "Virtual machine memory size of running servers",
81
                "unit": "bytes",
82
                "service_type": "compute",
83
                "service_origin": "cyclades_compute",
84
            },
85
            'disk': {
86
                "name": "cyclades.disk",
87
                "desc": "Virtual machine disk size",
88
                "unit": "bytes",
89
                "service_type": "compute",
90
                "service_origin": "cyclades_compute",
91
            },
92
        },
93
    },
94

    
95
    'cyclades_plankton': {
96
        'type': 'image',
97
        'component': 'cyclades',
98
        'prefix': 'image',
99
        'public': True,
100
        'endpoints': [
101
            {'versionId': 'v1.0',
102
             'publicURL': None},
103
        ],
104
        'resources': {},
105
    },
106

    
107
    'cyclades_network': {
108
        'type': 'network',
109
        'component': 'cyclades',
110
        'prefix': 'network',
111
        'public': True,
112
        'endpoints': [
113
            {'versionId': 'v2.0',
114
             'publicURL': None},
115
        ],
116
        'resources': {
117
            'network-private': {
118
                "name": "cyclades.network.private",
119
                "desc": "Number of private networks",
120
                "service_type": "network",
121
                "service_origin": "cyclades_network",
122
            },
123
            'floating_ip': {
124
                "name": "cyclades.floating_ip",
125
                "desc": "Number of Floating IP addresses",
126
                "service_type": "network",
127
                "service_origin": "cyclades_network",
128
            },
129
        },
130
    },
131

    
132
    'cyclades_vmapi': {
133
        'type': 'vmapi',
134
        'component': 'cyclades',
135
        'prefix': 'vmapi',
136
        'public': True,
137
        'endpoints': [
138
            {'versionId': 'v1.0',
139
             'publicURL': None},
140
        ],
141
        'resources': {},
142
    },
143

    
144
    'cyclades_helpdesk': {
145
        'type': 'cyclades_helpdesk',
146
        'component': 'cyclades',
147
        'prefix': 'helpdesk',
148
        'public': False,
149
        'endpoints': [
150
            {'versionId': '',
151
             'publicURL': None},
152
        ],
153
    },
154

    
155
    'cyclades_userdata': {
156
        'type': 'cyclades_userdata',
157
        'component': 'cyclades',
158
        'prefix': 'userdata',
159
        'public': False,
160
        'endpoints': [
161
            {'versionId': '',
162
             'publicURL': None},
163
        ],
164
        'resources': {},
165
    },
166

    
167
    'cyclades_ui': {
168
        'type': 'cyclades_ui',
169
        'component': 'cyclades',
170
        'prefix': 'ui',
171
        'public': False,
172
        'endpoints': [
173
            {'versionId': '',
174
             'publicURL': None},
175
        ],
176
        'resources': {},
177
    },
178

    
179
    'cyclades_admin': {
180
        'type': 'admin',
181
        'component': 'cyclades',
182
        'prefix': 'admin',
183
        'public': True,
184
        'endpoints': [
185
            {'versionId': '',
186
             'publicURL': None},
187
        ],
188
        'resources': {},
189
    },
190

    
191
    'cyclades_volume': {
192
        'type': 'volume',
193
        'component': 'cyclades',
194
        'prefix': 'volume',
195
        'public': True,
196
        'endpoints': [
197
            {'versionId': 'v2.0',
198
             'publicURL': None},
199
        ],
200
        'resources': {},
201
    },
202
}