Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / templates / api / access.xml @ d29f0371

History | View | Annotate | Download (1012 Bytes)

1
<?xml version="1.0" encoding="UTF-8"?>
2
{% load filters %}
3
<access xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xmlns="http://docs.openstack.org/identity/api/v2.0">
5
    {% if d.access.token %}
6
    <token id="{{d.access.token.id}}" expires="{{d.access.token.expires}}">
7
        <tenant id="{{d.access.token.tenant.id}}" name="{{d.access.token.tenant.name}}" />
8
    </token>
9
    {% endif %}
10
    {% if d.access.user %}
11
    <user id="{{d.access.user.id}}" name="{{d.access.user.name}}">
12
        <roles>
13
            {% for r in d.access.user.roles %}
14
                <role id="{{r.id}}" name="{{r.name}}"/>
15
            {% endfor %}
16
        </roles>
17
    </user>
18
    {% endif %}
19
    <serviceCatalog>
20
    {% for s in d.access.serviceCatalog %}
21
        <service type="{{s.type}}" name="{{s.name}}">
22
            {% for e in s.endpoints %}
23
            <endpoint {% for , v  e.items %} {{k}}="{{v}}" {% endfor %} />
24
            {% endfor %}
25
        </service>
26
    {% endfor %}
27
    </serviceCatalog>
28
</access>