Operation: | Add Policy / Update Policy / Update Policy from API
Description: | To Add/Edit Web Filter Policy for controlling user's Web Access.

Sample Configuration
    	<WebFilterPolicy>
    		<Name>Name</Name>
    		<Description>Description</Description>
    		<DefaultAction>Allow/Deny</DefaultAction>
    		<EnableReporting>Enable/Disable</EnableReporting>
    		<!-- Maximum permitted size (in MB), between 1 and 1536 MB -->
    		<DownloadFileSizeRestriction>300</DownloadFileSizeRestriction>
    		<DownloadFileSizeRestrictionEnabled>0/1</DownloadFileSizeRestrictionEnabled>
    		<YouTubeEducationFilterEnabled>0/1</YouTubeEducationFilterEnabled>
    		<YouTubeEducationFilter>Text</YouTubeEducationFilter>
    		<GoogAppDomainListEnabled>0/1</GoogAppDomainListEnabled>
    		<!-- comma-separated list of allowed domains for Google Apps -->
    		<GoogAppDomainList>gmail.com, yahoo.com</GoogAppDomainList>
    		<RuleList>
    			<Rule>
    				<CategoryList>
    					<Category>
    						<!--category name -->
    						<ID>Extreme</ID>
    						<type>WebCategory/URLGroup/UserActivity/DynamicCategory/FileType</type>
    					</Category>
    						 :
    				</CategoryList>
    				<HTTPAction>Deny/Allow/Warn</HTTPAction>
    				<HTTPSAction>Deny/Allow/Warn</HTTPSAction>
    				<FollowHTTPAction>1/0</FollowHTTPAction>
    				<Schedule>All The Time</Schedule>
    				<PolicyRuleEnabled>1/0</PolicyRuleEnabled>
    			</Rule>
    			   :
    		</RuleList>
    	</WebFilterPolicy>

Attribute/Parameter Information :

Parameter | Mandatory | Default | Description
--- | --- | --- | ---
Name | No |  | Description: Specify a name for the Web Filter Policy. Name confines to: Type is 'SCALAR'. Datatype is 'STRING'. Maximum characters allowed are 50.
Description | No |  | Description: Specify Policy description. Description confines to: Type is 'SCALAR'. Datatype is 'STRING'. Maximum characters allowed are 255.
DefaultAction | Yes |  | Description: When default template is not given this parameter should provide for default action of policy. DefaultAction confines to: Type is 'SCALAR'. Datatype is 'STRING'. Maximum characters allowed are 1. Only 'Y', 'N' are allowed.
EnableReporting | No | Enable | Description: Select to enable reporting of policy. EnableReporting confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'on' are allowed.
DownloadFileSizeRestrictionEnabled | No |  | Description: Enable to check for maximum allowed file download size in MB. DownloadFileSizeRestrictionEnabled confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 't', 'f' are allowed.
DownloadFileSizeRestriction | Yes |  | Description: Specify maximum allowed file download size in MB. DownloadFileSizeRestriction confines to: Type is 'SCALAR'. Datatype is 'INTEGER'. Range 0 to 1536 is allowed. Maximum digits allowed are 4.
Template | No |  | Description: Select from the available templates to create new policy based on existing policy. Template confines to: Type is 'SCALAR'. Datatype is 'STRING'. Comma (,) is not allowed. Maximum characters allowed are 50. UTF-8 character(s) are allowed.
YouTubeEducationFilterEnabled | No |  | Description: Enable to specify the unique ID provided by "You Tube for Schools" while registration. YouTubeEducationFilterEnabled confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 't', 'f' are allowed.
YouTubeEducationFilter | No |  | Description: Specify the unique ID provided by "You Tube for Schools" while registration. YouTubeEducationFilter confines to: Type is 'SCALAR'. Datatype is 'STRING'. Allowed Characters: (0-9a-zA-Z _@\-\.). Maximum characters allowed are 44. UTF-8 character(s) are not allowed.
GoogAppDomainListEnabled | No |  | Description: Enable to specify domains allowed to access google service. GoogAppDomainListEnabled confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 't', 'f' are allowed.
GoogAppDomainList | No |  | Description: Specify domains allowed to access google service. GoogAppDomainList confines to: Type is 'SCALAR'. Datatype is 'STRING'. DOMAINNAMES Maximum characters allowed are 256.
RuleList | No |  | Description: Specify the rules contained in this policy RuleList confines to: Type is 'ARRAY'. Datatype is 'OBJECT'. webfilter::webfilterpolicyrules Multiple values are allowed.

Status Message Information :

Operation | Status | Message
--- | --- | ---
Update Policy | 200 |
Update Policy | 500 |
Update Policy | 502 |
Update Policy from API | 200 |
Update Policy from API | 500 |
Update Policy from API | 502 |
Add Policy | 200 |
Add Policy | 500 |
Add Policy | 502 |

) Copyright 2017 Sophos Limited. All rights reserved.
Sophos is registered trademarks of Sophos Limited and Sophos Group. All other product and company names mentioned are trademarks or registered trademarks of their respective owners.No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise unless you are either a valid licensee where the documentation can be reproduced in accordance with the license terms or you otherwise have the prior permission in writing of the copyright owner.