16 lines
470 B
Django/Jinja
16 lines
470 B
Django/Jinja
<Request>
|
|
<Login>
|
|
<Username>{{ sophos_api_username }}</Username>
|
|
<Password>{{ sophos_api_password }}</Password>
|
|
</Login>
|
|
<Set operation="add">
|
|
<WebServer>
|
|
<Name>{{ item.name }}</Name>
|
|
<Host>{{ item.host }}</Host>
|
|
<Port>{{ item.port }}</Port>
|
|
<Protocol>{{ item.protocol | upper }}</Protocol>
|
|
<HealthCheck>{{ 'Enable' if item.health_check | default(true) else 'Disable' }}</HealthCheck>
|
|
</WebServer>
|
|
</Set>
|
|
</Request>
|