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

Add URL Filtering Security Rules

Description

Add CWS URL Filtering Rule to a Security Policy

Request

Request

URL

URL


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

Path Parameters

Path Parameters

string
enterpriseLogicalId Required

Enterprise ID


string
policyId Required

CWS Policy ID


Request Body

Request Body

createUrlFilteringRuleBody of mimetype application/json Required
Response

Response

Response Body

Response Body

201 Created returns CreateSecurityRuleResponse of type application/json

CWS URL 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":{"value":"ALLOW"},"attributes":{"categories":["string"],"fqdns":{},"reason":"string","tags":["string"],"threats":["string"],"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}/urlFilteringRules


Feedback

Was this page helpful?