Add Dlp Security Rules

Add Dlp Security Rules

Add DLP Rule to a Security Policy

Request
URI
POST
https://{api_host}/api/cws/v1/enterprises/{enterpriseLogicalId}/cwsPolicies/{policyId}/dlpRules
COPY
Path Parameters
string
enterpriseLogicalId
Required

Enterprise ID

string
policyId
Required

CWS Policy ID


Request Body
createDlpRuleBody of type(s) application/json
Required
{
    "ruleIndex": "number",
    "rule": {
        "logicalId": "ac611099-9872-4b29-bd87-8c2ba8b62c81",
        "name": "sample-policy",
        "enabled": false,
        "action": {
            "action": "string",
            "categories": [
                "string"
            ],
            "dlpDicts": [
                "string"
            ],
            "dlpGroups": [
                "string"
            ],
            "docTypes": [
                {
                    "name": "Visio",
                    "fileType": "Engineering Applications"
                }
            ],
            "domains": [
                "string"
            ],
            "inspectInputs": false,
            "maxFileSize": "number",
            "maxFileSizeUnit": "string",
            "protocols": [
                "string"
            ],
            "sessionType": "string"
        },
        "attributes": {
            "userEntity": {
                "all": false,
                "users": [
                    "string"
                ],
                "userGroups": [
                    "string"
                ]
            },
            "notification": "string",
            "desc": "string",
            "tags": [
                "string"
            ],
            "reason": "string"
        }
    }
}
number As float As float
ruleIndex
Optional

ruleIndex

object
rule
Required

rule

Responses
201

DLP 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