Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (5.5 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
            'network-private': {
89
                "name": "cyclades.network.private",
90
                "desc": "Number of private networks",
91
                "service_type": "compute",
92
                "service_origin": "cyclades_compute",
93
            },
94
            'floating_ip': {
95
                "name": "cyclades.floating_ip",
96
                "desc": "Number of Floating IP addresses",
97
                "service_type": "compute",
98
                "service_origin": "cyclades_compute",
99
            },
100
        },
101
    },
102

    
103
    'cyclades_plankton': {
104
        'type': 'image',
105
        'component': 'cyclades',
106
        'prefix': 'image',
107
        'public': True,
108
        'endpoints': [
109
            {'versionId': 'v1.0',
110
             'publicURL': None},
111
        ],
112
        'resources': {},
113
    },
114

    
115
    'cyclades_vmapi': {
116
        'type': 'vmapi',
117
        'component': 'cyclades',
118
        'prefix': 'vmapi',
119
        'public': True,
120
        'endpoints': [
121
            {'versionId': 'v1.0',
122
             'publicURL': None},
123
        ],
124
        'resources': {},
125
    },
126

    
127
    'cyclades_helpdesk': {
128
        'type': 'cyclades_helpdesk',
129
        'component': 'cyclades',
130
        'prefix': 'helpdesk',
131
        'public': False,
132
        'endpoints': [
133
            {'versionId': '',
134
             'publicURL': None},
135
        ],
136
    },
137

    
138
    'cyclades_userdata': {
139
        'type': 'cyclades_userdata',
140
        'component': 'cyclades',
141
        'prefix': 'userdata',
142
        'public': False,
143
        'endpoints': [
144
            {'versionId': '',
145
             'publicURL': None},
146
        ],
147
        'resources': {},
148
    },
149

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

    
162
    'cyclades_admin': {
163
        'type': 'admin',
164
        'component': 'cyclades',
165
        'prefix': 'admin',
166
        'public': True,
167
        'endpoints': [
168
            {'versionId': '',
169
             'publicURL': None},
170
        ],
171
        'resources': {},
172
    },
173
}