Create Security Policy

Create Security Policy

Creates a CWS Security Policy

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

Enterprise Logical ID


Request Body
createSecurityPolicyBody of type(s) application/json
Required
{
    "name": "sample-policy",
    "status": "IN_USE"
}
string As ^[a-zA-Z0-9!@#$&()\-`.+,/"]*$
name
Required

name

string
status
Optional

status

Possible values are : UNUSED, IN_USE, DISABLED,
Responses
201

CWS Security Policy Created

Returns createSecurityPolicyResponse of type(s) application/json
{
    "id": "ac611099-9872-4b29-bd87-8c2ba8b62c81"
}
string As uuid As uuid
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