[{"label":"Latest (v1.0)","version":"latest"}]
vmware-sase-platform

Add Content Filtering Security Rules

Description

Add CWS Content Filtering Rule to a Security Policy

Request

Request

URL

URL


post
https://{api_host}//api/cws/v1/enterprises/{enterpriseLogicalId}/cwsPolicies/{policyId}/contentFilteringRules
Copy

Path Parameters

Path Parameters

string
enterpriseLogicalId Required

Enterprise ID


string
policyId Required

CWS Policy ID


Request Body

Request Body

createContentFilteringRuleBody of mimetype application/json Required
Response

Response

Response Body

Response Body

201 Created returns CreateSecurityRuleResponse of type application/json

CWS Content Filtering Rule Created

Errors

Errors

httpResponseError
400

Invalid Input


httpResponseError
500

Internal Server Error

Code Samples

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


Feedback

Was this page helpful?