Add Content Filtering Security Rules
Add CWS Content Filtering Rule to a Security Policy
Request
URI
POST
https://{api_host}/api/cws/v1/enterprises/{enterpriseLogicalId}/cwsPolicies/{policyId}/contentFilteringRules
COPY
Path Parameters
string
enterpriseLogicalId
Required
Enterprise ID
string
policyId
Required
CWS Policy ID
Request Body
createContentFilteringRuleBody of type(s) application/json
Required
{
"ruleIndex": "number",
"rule": {
"logicalId": "ac611099-9872-4b29-bd87-8c2ba8b62c81",
"name": "sample-policy",
"enabled": false,
"attributes": {
"transferType": "DOWNLOAD",
"fileType": "Archives and Compressed Packages",
"fileValues": [
"ZIP"
],
"fqdns": [
"www.google.com"
],
"userEntity": {
"users": [
"[email protected]"
]
}
},
"action": {
"isolatedSites": {
"action": "string",
"print": "string",
"viewer": "string",
"passwordAction": "string",
"skipAV": false,
"shareAction": "string",
"downloadOriginal": "string",
"downloadSafe": "string"
},
"allowedSites": {
"action": "string",
"print": "string",
"viewer": "string",
"passwordAction": "string",
"skipAV": false,
"shareAction": "string",
"downloadOriginal": "string",
"downloadSafe": "string"
}
}
}
}
number As float As float
ruleIndex
Optional
ruleIndex
object
rule
Required
rule
Responses
201
CWS Content Filtering Rule Created
Returns createSecurityRuleResponse of type(s) application/json
{
"id": "ac611099-9872-4b29-bd87-8c2ba8b62c81"
}
string
id
Required
id
400
Invalid Input
Returns httpResponseError of type(s) application/json
{
"code": "error code",
"errors": [
{
"message": "error message",
"path": "object.path"
}
]
}
string
code
Required
code
Possible values are : INTERNAL_ERROR, INVALID_PARAMS, INVALID_QUERY_PARAMS, INVALID_LICENSE,
array of object
errors
Required
errors
500
Internal Server Error
Returns httpResponseError of type(s) application/json
{
"code": "error code",
"errors": [
{
"message": "error message",
"path": "object.path"
}
]
}
string
code
Required
code
Possible values are : INTERNAL_ERROR, INVALID_PARAMS, INVALID_QUERY_PARAMS, INVALID_LICENSE,
array of object
errors
Required
errors
Cws Content Filtering Rules Operations
POST
Add Content Filtering Security Rules
DELETE
Delete Content Filtering Security Rule By Id
GET
Get Content Filtering Security Rule By Id
GET
Get Content Filtering Security Rules
PATCH
Update Content Filtering Security Rule By Id
PATCH
Update Content Filtering Security Rules