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

Add Dlp Security Rules

Description

Add DLP Rule to a Security Policy

Request

Request

URL

URL


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

Path Parameters

Path Parameters

string
enterpriseLogicalId Required

Enterprise ID


string
policyId Required

CWS Policy ID


Request Body

Request Body

createDlpRuleBody of mimetype application/json Required
Response

Response

Response Body

Response Body

201 Created returns CreateSecurityRuleResponse of type application/json

DLP 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":{"action":"allow","categories":["string"],"dlpAuditors":{},"dlpDicts":["string"],"dlpGroups":["string"],"docTypes":[{"fileType":"Engineering Applications","name":"Visio"}],"domains":["string"],"inspectInputs":false,"maxFileSize":0,"maxFileSizeUnit":"B","protocols":["http"],"sendAlert":{},"sessionType":"all"},"attributes":{"desc":"string","notification":"string","reason":"string","tags":["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}/dlpRules


Feedback

Was this page helpful?