Skip to main content
Create Policy

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This data structue is used to create a new policy.

logRules
Log Rules · object
required

Log rules for a policy.

name
string
required

Human-readable name for the policy.

Example:

"My Policy"

priority
enum<string>
required

TCO priority level assigned to a policy, controlling how data is routed and archived.

Available options:
PRIORITY_TYPE_UNSPECIFIED,
PRIORITY_TYPE_BLOCK,
PRIORITY_TYPE_LOW,
PRIORITY_TYPE_MEDIUM,
PRIORITY_TYPE_HIGH
applicationRule
object

Rule.

archiveRetention
object

Archive retention.

description
string

Optional free-text description of the policy's purpose.

Example:

"My Policy Description"

disabled
boolean

When true, the policy is disabled and will not be evaluated.

placement
object

Placement.

priorityOverride
object

Priority override.

rumRules
Log Rules · object

Log rules for a policy.

spanRules
object

Span rules.

subsystemRule
object

Rule.

targets
Target · object[]

List of data targets/destinations to which this policy routes data.

Response

This data structue is obtained when creating a policy.

policy
Policy · object
required

A policy is a set of rules that define the behavior of the Coralogix system for a specific company.