[{"label":"Latest (v1.0)","version":"latest"}]
vmware-sase-platform
Add Content Filtering Security Rules
DescriptionAdd CWS Content Filtering Rule to a Security Policy
Request
URLURL
https://{api_host}//api/cws/v1/enterprises/{enterpriseLogicalId}/cwsPolicies/{policyId}/contentFilteringRules
Path Parameters
Path Parameters
string
enterpriseLogicalId
Required
Enterprise ID
string
policyId
Required
CWS Policy ID
Response
Response
Response BodyResponse Body
201 Created returns
CreateSecurityRuleResponse
of type application/json
CWS Content Filtering Rule Created
Errors
httpResponseError
400
Invalid Input
httpResponseError
500
Internal Server Error
Code Samples
cURL Command
curl -X POST -H "Content-Type: application/json" -d '{"rule":{"action":{"allowedSites":{"action":"safedoc","downloadOriginal":"block","downloadSafe":"allow","passwordAction":"prompt","print":"allow","shareAction":"original","skipAV":false,"viewer":"full"},"isolatedSites":{"action":"safedoc","downloadOriginal":"block","downloadSafe":"allow","passwordAction":"prompt","print":"allow","shareAction":"original","skipAV":false,"viewer":"full"}},"attributes":{"categories":["string"],"fileType":"string","fileValues":{},"fqdns":{},"reason":"string","tags":["string"],"transferType":"UPLOAD","userEntity":{"all":false,"userGroups":["string"],"users":["string"]}},"enabled":false,"logicalId":"ac611099-9872-4b29-bd87-8c2ba8b62c81","name":"sample-policy"},"ruleIndex":0}' https://{api_host}/api/cws/v1/enterprises/{enterpriseLogicalId}/cwsPolicies/{policyId}/contentFilteringRules
[{"label":"Latest (v1.0)","version":"latest"}]
vmware-sase-platform