{% extends 'base.html' %} {% block title %}Recherche Qualys{% endblock %} {% block content %}

Recherche Assets Qualys

{% if search %}Export CSV{% endif %}
{% set msg = request.query_params.get('msg') %} {% if msg %}
{% if msg.startswith('resync_') %}{{ msg.split('_')[1] }} asset(s) resynchronisé(s).{% elif msg.startswith('bulk_add_') %}Tags ajoutés: {{ msg.split('_')[2] }} OK, {{ msg.split('_')[3] }} KO.{% elif msg.startswith('bulk_rm_') %}Tags retirés: {{ msg.split('_')[2] }} OK, {{ msg.split('_')[3] }} KO.{% endif %}
{% endif %} {% if search %}

{% if api_msg %}{{ api_msg }}{% else %}{{ assets|length }} résultat(s){% endif %}

{% endif %} {% if assets %} {% if can_edit_qualys %} {% endif %}
{% if can_edit_qualys %}{% endif %} {% for a in assets %} {% set hn = a.hostname %} {% set ip = a.ip_address %} {% set os = a.os %} {% set agent = a.agent_status %} {% set tl = a.tags_list %} {% set qid = a.qualys_asset_id %} {% if can_edit_qualys %}{% endif %} {% endfor %}
Hostname IP OS Agent Tags Actions
{% if qid %}{% endif %}{{ hn or '-' }} {{ ip or '-' }} {{ (os or '-')[:30] }} {% if agent %}{{ agent[:10] }} {% else %}N/A{% endif %} {{ (tl or '-')[:80] }} {% if qid %} {% endif %}
{% endif %} {% endblock %}