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

Create Security Policy

Description

Creates a CWS Security Policy

Request

Request

URL

URL


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

Path Parameters

Path Parameters

string
enterpriseLogicalId Required

Enterprise Logical ID


Request Body

Request Body

createSecurityPolicyBody of mimetype application/json Required
Response

Response

Response Body

Response Body

201 Created returns CreateSecurityPolicyResponse of type application/json

CWS Security Policy 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 '{"name":"sample-policy","status":"IN_USE"}' https://{api_host}/api/cws/v1/enterprises/{enterpriseLogicalId}/cwsPolicies


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

Was this page helpful?