root / snf-astakos-app / astakos / im / templates / im / api_access_base.html @ db66a81a
History | View | Annotate | Download (5.2 kB)
1 |
{% extends "im/account_base.html" %} |
---|---|
2 |
{% load filters %} |
3 |
|
4 |
{% block headjs %} |
5 |
{{ block.super }} |
6 |
<script>
|
7 |
var CHANGE_TOKEN_URL = '{% url update_token %}';
|
8 |
</script>
|
9 |
{% endblock %} |
10 |
|
11 |
{% block page.body %} |
12 |
<form>{% csrf_token %}</form> |
13 |
<div class="api-access-view"> |
14 |
<div class="subsection"> |
15 |
{% block page.body.title %} |
16 |
<h2>API ACCESS</h2> |
17 |
{% endblock %} |
18 |
{% block page.body.description %} |
19 |
<div class="two-cols dotted clearfix"> |
20 |
<div class="rt"> |
21 |
<p>
|
22 |
If |
23 |
you want to learn more about the specification of the REST API itself, |
24 |
please take a look at the <a href="https://www.synnefo.org/docs" |
25 |
alt="Synnefo documentation">Synnefo documentation</a>. |
26 |
</p>
|
27 |
</div>
|
28 |
<div class="lt"> |
29 |
<p>{{ BRANDING_SERVICE_NAME }} provides a complete REST API that allows you to access and
|
30 |
control your virtual resources programmatically. This means you can execute |
31 |
all the actions you do from the {{ BRANDING_SERVICE_NAME }} Web UI by using a command |
32 |
line client or importing the corresponding library inside your own code.</p>
|
33 |
</div>
|
34 |
|
35 |
</div>
|
36 |
|
37 |
{% endblock %} |
38 |
</div>
|
39 |
|
40 |
<div class="subsection dotted"> |
41 |
{% block page.body.token %} |
42 |
<h2>API details</h2> |
43 |
<p>
|
44 |
To use {{ BRANDING_SERVICE_NAME }} via its REST API the only things you will need is your |
45 |
Authentication Token and the Identity Service's public URL, which you can |
46 |
find right below.<br /><br /> |
47 |
</p>
|
48 |
<div class="token-view"> |
49 |
<div class="detail small clearfix"> |
50 |
<span class="title">Authentication url</span> |
51 |
<input type="text" value="{{ token_url }}" disabled |
52 |
</div |
53 |
<div ="detail "> |
54 |
<div class="facts clearfix"> |
55 |
<span class="title">API Token</span> |
56 |
<input type="text" value="{{ request.user.auth_token }}" disabled |
57 |
<span ="expires"> |
58 |
<span class="date"> |
59 |
expires in {{ request.user.auth_token_expires|timeuntil }} |
60 |
({{ request.user.auth_token_expires|date }}) |
61 |
</span>
|
62 |
</span>
|
63 |
</div>
|
64 |
<div class="actions"> |
65 |
<div class="renew-token"> |
66 |
<a href="#" class="do">renew token</a> |
67 |
<a href="#" class="confirm">confirm</a> |
68 |
<a href="#" class="close">x</a> |
69 |
<p class="sub">Make sure to set the new token in any client you may be using each |
70 |
time you renew your token.</p>
|
71 |
</div>
|
72 |
</div>
|
73 |
|
74 |
|
75 |
<span class="extra-img" id="token-span"> </span> |
76 |
</div>
|
77 |
|
78 |
</div>
|
79 |
{% endblock %} |
80 |
</div>
|
81 |
|
82 |
|
83 |
|
84 |
<div class="two-cols dotted clearfix"> |
85 |
<div class="rt"> |
86 |
{% block page.body.api_advanced %} |
87 |
<h2>API Advanced Usage</h2> |
88 |
<p>
|
89 |
Apart from using the kamaki command line client, you can also import the |
90 |
kamaki library inside your code and use it directly. More details on how |
91 |
to do that on the corresponding kamaki |
92 |
<a href="{{ client_url }}">kamaki </a>page.</p> |
93 |
<p>You can also implement the REST API calls by yourself, without
|
94 |
using the official kamaki library if you feel confident with your |
95 |
programming skills. To do so, you first need to get a good grasp of the |
96 |
API itself; for more information take a look at the corresponding page |
97 |
inside the |
98 |
<a href="https://synnefo.org/docs/">Synnefo documentation</a>. |
99 |
</p>
|
100 |
{% endblock %} |
101 |
</div>
|
102 |
<div class="lt"> |
103 |
{% block page.body.clients %} |
104 |
<h2>Kamaki</h2> |
105 |
<p><a href="{{ client_url }}" alt="kamaki">Kamaki</a> is the official |
106 |
{{ BRANDING_SERVICE_NAME }} command line client. You can use it to control your virtual |
107 |
resources from the command line or use it inside your scripts.</p>
|
108 |
<p>Kamaki allows you to execute all the operations you do from the Web UI. You can use kamaki to<br><br> |
109 |
- register images,<br>- spawn clusters of customized VMs,<br>- connect them to |
110 |
Private Virtual Networks,<br>- have them executing computations dynamically and
|
111 |
many other neat things.</p>
|
112 |
<p> Kamaki is available for most Linux distributions,
|
113 |
Windows and Mac OS X. To use it you will need to set it up using your |
114 |
Authentication Token and the Identity Service's public URL, found above. To |
115 |
learn more about kamaki and how to install, configure and use, take a look |
116 |
at its <a href="http://www.synnefo.org/docs/kamaki/latest/index.html">corresponding page</a> |
117 |
</p>
|
118 |
<p class="download">You can download kamaki |
119 |
from the <a href="{{ client_url }}">project homepage</a></p> |
120 |
|
121 |
</div>
|
122 |
{% endblock %} |
123 |
</div>
|
124 |
</div>
|
125 |
{% endblock %} |