Skip to main content
Creates a policy for enforcement or suggestion workflows.

Parameters

mode
string
required
The operational mode of the policy.Available options: enforcement, suggestion
name
string
required
A human-readable name for the policy.
rules
object
required
Rules that define how the policy behaves.
status
string
The status of the policy.Available options: active, inactive

More parameters

description
string | null
An optional description of the policy’s purpose.
metadata
object
Set of key-value pairs that you can attach to an object.

Returns

Returns the created policy.