Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.4 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
            'ram': {
61
                "name": "cyclades.ram",
62
                "desc": "Virtual machine memory size",
63
                "unit": "bytes",
64
                "service_type": "compute",
65
                "service_origin": "cyclades_compute",
66
            },
67
            'disk': {
68
                "name": "cyclades.disk",
69
                "desc": "Virtual machine disk size",
70
                "unit": "bytes",
71
                "service_type": "compute",
72
                "service_origin": "cyclades_compute",
73
            },
74
            'network-private': {
75
                "name": "cyclades.network.private",
76
                "desc": "Number of private networks",
77
                "service_type": "compute",
78
                "service_origin": "cyclades_compute",
79
            },
80
        },
81

    
82
    'cyclades_plankton': {
83
        'type': 'image',
84
        'component': 'cyclades',
85
        'prefix': 'image',
86
        'public': True,
87
        'endpoints': [
88
            {'versionId': 'v1.0',
89
             'publicURL': None},
90
        ],
91
        'resources': {},
92
    },
93

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

    
106
    'cyclades_helpdesk': {
107
        'type': 'cyclades_helpdesk',
108
        'component': 'cyclades',
109
        'prefix': 'helpdesk',
110
        'public': False,
111
        'endpoints': [
112
            {'versionId': '',
113
             'publicURL': None},
114
        ],
115
    },
116

    
117
    'cyclades_userdata': {
118
        'type': 'cyclades_userdata',
119
        'component': 'cyclades',
120
        'prefix': 'userdata',
121
        'public': False,
122
        'endpoints': [
123
            {'versionId': '',
124
             'publicURL': None},
125
        ],
126
        'resources': {},
127
    },
128

    
129
    'cyclades_ui': {
130
        'type': 'cyclades_ui',
131
        'component': 'cyclades',
132
        'prefix': 'ui',
133
        'public': False,
134
        'endpoints': [
135
            {'versionId': '',
136
             'publicURL': None},
137
        ],
138
        'resources': {},
139
    },
140
}