Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (5.7 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
            'cpu': {
55
                "name": "cyclades.cpu",
56
                "desc": "Number of virtual machine processors",
57
                "service_type": "compute",
58
                "service_origin": "cyclades_compute",
59
            },
60
            'active_cpu': {
61
                "name": "cyclades.active_cpu",
62
                "desc": "Number of virtual machine processors of running"
63
                        " servers",
64
                "service_type": "compute",
65
                "service_origin": "cyclades_compute",
66
            },
67
            'ram': {
68
                "name": "cyclades.ram",
69
                "desc": "Virtual machine memory size",
70
                "unit": "bytes",
71
                "service_type": "compute",
72
                "service_origin": "cyclades_compute",
73
            },
74
            'active_ram': {
75
                "name": "cyclades.active_ram",
76
                "desc": "Virtual machine memory size of running servers",
77
                "unit": "bytes",
78
                "service_type": "compute",
79
                "service_origin": "cyclades_compute",
80
            },
81
            'disk': {
82
                "name": "cyclades.disk",
83
                "desc": "Virtual machine disk size",
84
                "unit": "bytes",
85
                "service_type": "compute",
86
                "service_origin": "cyclades_compute",
87
            },
88
        },
89
    },
90

    
91
    'cyclades_plankton': {
92
        'type': 'image',
93
        'component': 'cyclades',
94
        'prefix': 'image',
95
        'public': True,
96
        'endpoints': [
97
            {'versionId': 'v1.0',
98
             'publicURL': None},
99
        ],
100
        'resources': {},
101
    },
102

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

    
128
    'cyclades_vmapi': {
129
        'type': 'vmapi',
130
        'component': 'cyclades',
131
        'prefix': 'vmapi',
132
        'public': True,
133
        'endpoints': [
134
            {'versionId': 'v1.0',
135
             'publicURL': None},
136
        ],
137
        'resources': {},
138
    },
139

    
140
    'cyclades_helpdesk': {
141
        'type': 'cyclades_helpdesk',
142
        'component': 'cyclades',
143
        'prefix': 'helpdesk',
144
        'public': False,
145
        'endpoints': [
146
            {'versionId': '',
147
             'publicURL': None},
148
        ],
149
    },
150

    
151
    'cyclades_userdata': {
152
        'type': 'cyclades_userdata',
153
        'component': 'cyclades',
154
        'prefix': 'userdata',
155
        'public': False,
156
        'endpoints': [
157
            {'versionId': '',
158
             'publicURL': None},
159
        ],
160
        'resources': {},
161
    },
162

    
163
    'cyclades_ui': {
164
        'type': 'cyclades_ui',
165
        'component': 'cyclades',
166
        'prefix': 'ui',
167
        'public': False,
168
        'endpoints': [
169
            {'versionId': '',
170
             'publicURL': None},
171
        ],
172
        'resources': {},
173
    },
174

    
175
    'cyclades_admin': {
176
        'type': 'admin',
177
        'component': 'cyclades',
178
        'prefix': 'admin',
179
        'public': True,
180
        'endpoints': [
181
            {'versionId': '',
182
             'publicURL': None},
183
        ],
184
        'resources': {},
185
    },
186
}