Get Casb Rule By Id

Get Casb Rule By Id

Get CWS Casb rule by Id for a Security Policy

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

Enterprise ID

string
policyId
Required

CWS Policy ID

string
ruleId
Required

Security Rule ID

Query Parameters
fields
Optional

return fields


Responses
200

CWS Casb rule

Returns getCasbRuleResponse of type(s) application/json
{
    "name": "sample-policy",
    "enabled": false,
    "logicalId": "ac611099-9872-4b29-bd87-8c2ba8b62c81",
    "version": "ac611099-9872-4b29-bd87-8c2ba8b62c81",
    "_href": "/enterprise/1/cwsPolicies/7e5b6baa-e5fa-4272-ba4c-5f1941235584/casbRules/70844bf9-3b75-4a04-9c4d-83046ee52dc0",
    "attributes": {
        "appIds": [
            100,
            101
        ],
        "applicationGroupId": "string",
        "userEntity": {
            "all": false,
            "users": [
                "string"
            ],
            "userGroups": [
                "string"
            ]
        },
        "tags": [
            "string"
        ],
        "reason": "string"
    },
    "action": {
        "ruleTemplateId": "string",
        "browserAction": "string",
        "commonControls": [
            {
                "name": "Login",
                "allow": true
            },
            {
                "name": "Upload",
                "allow": false
            }
        ],
        "appSpecificControls": [
            {
                "name": "Like",
                "allow": true
            },
            {
                "name": "Post",
                "allow": false
            }
        ]
    }
}
string
name
Required

name

boolean
enabled
Optional

enabled

string
logicalId
Required

logicalId

string
version
Required

version

string
_href
Optional

_href

object
attributes
Required

attributes

object
action
Optional

action


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