Get Security Policy

Get Security Policy

Get CWS Security Policy by id

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

Enterprise Logical ID

string
policyId
Required

CWS Security Policy ID


Responses
200

CWS Security Policy

Returns securityPolicyResponse of type(s) application/json
{
    "_href": "/enterprises/1/cwsPolicies/7e5b6baa-e5fa-4272-ba4c-5f1941235584",
    "name": "sample-policy",
    "isPublished": 1,
    "status": "IN_USE",
    "enterpriseId": "ac611099-9872-4b29-bd87-8c2ba8b62c82",
    "logicalId": "ac611099-9872-4b29-bd87-8c2ba8b62c81",
    "version": "ac611099-9872-4b29-bd87-8c2ba8b62c81",
    "modified": "2020-07-18T15:48:18.000Z",
    "created": "2020-07-18T15:48:18.000Z"
}
string
_href
Required

_href

string As ^[a-zA-Z0-9]*$
name
Optional

name

integer
isPublished
Optional

isPublished

string
status
Optional

status

Possible values are : UNUSED, IN_USE, DISABLED,
string
enterpriseId
Optional

enterpriseId

string
logicalId
Optional

logicalId

string
version
Optional

version

string
modified
Optional

modified

string
created
Optional

created


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


404

CWS Security Policy not found

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