{% import "_macros.html" as m %} {% if tokens %} {% for t in tokens %} {% endfor %}
NameScopeCreatedExpiresLast used
{{ t.name }} {{ t.scope }} {{ t.created_at | datetime }} {% if t.expires_at %}{% if t.expired %}expired{% else %}{{ t.expires_at | datetime }}{% endif %}{% else %}never{% endif %} {% if t.last_used_at %}{{ t.last_used_at | datetime }}{% else %}{% endif %} {{ m.icon_delete('/ui/security/tokens/' ~ (t.name|urlencode) ~ '/revoke', 'Revoke token “' ~ t.name ~ '”? Any automation using it will stop working immediately.', 'Revoke') }}
{% else %}

No API tokens yet. Create one above to use the automation API or to let Prometheus scrape /metrics.

{% endif %}