Statistics
| Branch: | Tag: | Revision:

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

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

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

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

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

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

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