This repository was archived by the owner on Apr 24, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathinstances.xml
More file actions
61 lines (60 loc) · 2.64 KB
/
Copy pathinstances.xml
File metadata and controls
61 lines (60 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{% extends "response.xml" %}
{% block response_content %}
<reservationSet>
{% if response %}
<item>
<reservationId>None</reservationId>
<groupSet />
<instancesSet>
{% for instance in response.virtualmachine %}
<item>
<instanceId>{{ instance.id }}</instanceId>
<imageId>{{ instance.templateid }}</imageId>
<instanceState>
{% if instance.state == 'Starting' %}
<code>0</code>
<name>pending</name>
{% elif instance.state == 'Running' %}
<code>16</code>
<name>running</name>
{% elif instance.state == 'Destroyed' %}
<code>32</code>
<name>shutting-down</name>
{% elif instance.state == 'Stopping' %}
<code>64</code>
<name>stopping</name>
{% elif instance.state == 'Expunging' %}
<code>48</code>
<name>terminated</name>
{% elif instance.state == 'Stopped' %}
<code>80</code>
<name>stopped</name>
{% endif %}
</instanceState>
<keyName>{{ instance.keypair }}</keyName>
<instanceType>{{ instance.serviceofferingname }}</instanceType>
<launchTime>{{ instance.created }}</launchTime>
<placement>
<availabilityZone>{{ instance.zonename }}</availabilityZone>
<tenancy>default</tenancy>
</placement>
{% if 'nic' in instance %}
<privateIpAddress>{{ instance.nic.0.ipaddress }}</privateIpAddress>
<ipAddress>{{ instance.nic.0.ipaddress }}</ipAddress>
{% endif %}
<groupSet>
{% for securitygroup in instance.securitygroup %}
<item>
<groupId>{{ securitygroup.id }}</groupId>
<groupName>{{ securitygroup.name }}</groupName>
</item>
{% endfor %}
</groupSet>
<hypervisor>{{ instance.hypervisor }}</hypervisor>
</item>
{% endfor %}
</instancesSet>
</item>
{% endif %}
</reservationSet>
{% endblock %}