Skip to content
Start here

Policy Sets

List policy sets
GET/accounts/{account_id}/cws/policy-sets
Get a policy set by ID
GET/accounts/{account_id}/cws/policy-sets/{policy_set_id}
Create a new policy set
POST/accounts/{account_id}/cws/policy-sets
Update a policy set
PUT/accounts/{account_id}/cws/policy-sets/{policy_set_id}
Delete a policy set
DELETE/accounts/{account_id}/cws/policy-sets/{policy_set_id}
ModelsExpand Collapse
PolicySet object { id, created_at, exclude_workload_ids, 6 more }
id: string

Server-assigned UUID

formatuuid
created_at: string
formatdate-time
exclude_workload_ids: array of string

IDs of workloads that exclude matching requests. Exclusions take precedence.

include_workload_ids: array of string

IDs of workloads that include matching requests. Empty includes all requests before exclusions.

name: string

Human-readable name; unique per account

maxLength100
minLength1
policies: array of object { enforce, policy_id }

Member policies and their per-membership enforcement mode

enforce: boolean

Whether this policy should enforce when it matches. False keeps the policy attached for non-enforcing evaluation.

policy_id: string

ID of the member policy

formatuuid
tags: map[string]

Tags attached to this policy set

updated_at: string
formatdate-time
description: optional string

Optional free-form description.

maxLength1024
PolicySetDeleteResponse object { id }
id: string
formatuuid