Statistics
| Branch: | Tag: | Revision:

root / api / templates / server.xml @ aa197ee4

History | View | Annotate | Download (1.1 kB)

1
{% spaceless %}
2

    
3
{% if is_root %}
4
<?xml version="1.0" encoding="UTF-8"?>
5
<server xmlns="http://docs.openstack.org/compute/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom"{% else %}<server{% endif %}
6
    {% if  %}adminPass="{{ server.adminPass }}"{% endif %}
7
    created="{{ server.created }}"
8
    description="{{ server.description }}"
9
    flavorRef="{{ server.flavorRef }}"
10
    hostId="{{ server.hostId }}"
11
    id="{{ server.id }}"
12
    imageRef="{{ server.imageRef }}"
13
    name="{{ server.name }}"
14
    progress="{{ server.progress }}"
15
    status="{{ server.status }}"
16
    updated="{{ server.updated}}">
17

    
18
    {% if server.metadata.values %}
19
    <metadata>
20
        {% for key, val in server.metadata.values.items %}<meta key="{{ key }}">{{ val }}</meta>{% endfor %}
21
    </metadata>
22
    {% endif %}
23

    
24
    <addresses>
25
        {% for network in server.addresses.values %}
26
        <network id="{{ network.id }}">
27
            {% for ip in network.values %}
28
            <ip version="{{ ip.version }}" addr="{{ ip.addr }}"/>
29
            {% endfor %}
30
        </network>
31
        {% endfor %}
32
    </addresses>
33

    
34
</server>
35

    
36
{% endspaceless %}