Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (5.2 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
        },
95
    },
96

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

    
109
    'cyclades_vmapi': {
110
        'type': 'vmapi',
111
        'component': 'cyclades',
112
        'prefix': 'vmapi',
113
        'public': True,
114
        'endpoints': [
115
            {'versionId': 'v1.0',
116
             'publicURL': None},
117
        ],
118
        'resources': {},
119
    },
120

    
121
    'cyclades_helpdesk': {
122
        'type': 'cyclades_helpdesk',
123
        'component': 'cyclades',
124
        'prefix': 'helpdesk',
125
        'public': False,
126
        'endpoints': [
127
            {'versionId': '',
128
             'publicURL': None},
129
        ],
130
    },
131

    
132
    'cyclades_userdata': {
133
        'type': 'cyclades_userdata',
134
        'component': 'cyclades',
135
        'prefix': 'userdata',
136
        'public': False,
137
        'endpoints': [
138
            {'versionId': '',
139
             'publicURL': None},
140
        ],
141
        'resources': {},
142
    },
143

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

    
156
    'cyclades_admin': {
157
        'type': 'admin',
158
        'component': 'cyclades',
159
        'prefix': 'admin',
160
        'public': True,
161
        'endpoints': [
162
            {'versionId': '',
163
             'publicURL': None},
164
        ],
165
        'resources': {},
166
    },
167
}