Claude 1
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<Request>
|
||||
<Login>
|
||||
<Username>{{ sophos_api_username }}</Username>
|
||||
<Password>{{ sophos_api_password }}</Password>
|
||||
</Login>
|
||||
<Set operation="add">
|
||||
<WebPolicy>
|
||||
<Name>{{ item.name }}</Name>
|
||||
<Domain>{{ item.domain }}</Domain>
|
||||
<ListeningIP>{{ item.listening_ip }}</ListeningIP>
|
||||
<ListeningPort>{{ item.listening_port }}</ListeningPort>
|
||||
<Protocol>{{ item.protocol | upper }}</Protocol>
|
||||
{% if item.ssl_certificate is defined %}
|
||||
<SSLCertificate>{{ item.ssl_certificate }}</SSLCertificate>
|
||||
{% endif %}
|
||||
<BackendServers>
|
||||
{% for backend in item.backend_servers %}
|
||||
<Server>{{ backend }}</Server>
|
||||
{% endfor %}
|
||||
</BackendServers>
|
||||
<LoadBalancing>{{ item.load_balancing | default('round-robin') }}</LoadBalancing>
|
||||
<ProtectionPolicy>{{ item.protection_policy }}</ProtectionPolicy>
|
||||
<SessionTimeout>{{ item.session_timeout | default(1800) }}</SessionTimeout>
|
||||
<HSTS>{{ 'Enable' if item.enable_hsts | default(false) else 'Disable' }}</HSTS>
|
||||
<Compression>{{ 'Enable' if item.enable_compression | default(false) else 'Disable' }}</Compression>
|
||||
{% if item.websocket_support is defined %}
|
||||
<WebSocketSupport>{{ 'Enable' if item.websocket_support else 'Disable' }}</WebSocketSupport>
|
||||
{% endif %}
|
||||
</WebPolicy>
|
||||
</Set>
|
||||
</Request>
|
||||
Reference in New Issue
Block a user