Configure Policy-Level Persistence

The following APIs allow configuring how policy execution results are stored for a specific policy.

Get Policy Persistence Configuration

Retrieves the persistence configuration associated with a policy.

Endpoints

Bash
Copy

Path Parameters

ParameterDescription
policyIdUnique identifier of the policy
policyNameName of the policy

Sample Request

Bash
Copy

Sample Response

Bash
Copy

Update Policy Persistence Configuration

This endpoint updates the persistence configuration for a policy.

Note The request body structure depends on the version and capabilities of the data plane associated with the policy.

Starting with Control Plane v26.3.0, persistence configuration behavior changed. The control plane enforces new request structures and removes support for legacy configuration fields.

Users can determine whether a data plane supports templated persistence by either:

  • Checking the data plane version or
  • Calling the Data plane Feature Support API

Endpoints

Bash
Copy

Data Plane v26.3.0 and Later

Data planes running v26.3.0 or later require the templated persistence configuration model.

Requirements

  • categoriesPersistenceConfig must be provided
  • persistenceFolderPrefix is not supported
  • persistentPathConfig is not supported

Request Body Parameters

FieldTypeDescription
categoriesPersistenceConfig.typestringConfiguration type (DEFAULT, SAVED, CUSTOM)
categoriesPersistenceConfig.configIdnumberID of saved configuration when type = SAVED
categoriesPersistenceConfig.categoriesConfigobjectTemplate configuration when type = CUSTOM
categoriesResultHandlingConfig.good.storeResultbooleanWhether to persist passing records
categoriesResultHandlingConfig.good.sampleOnlybooleanStore only sample records
categoriesResultHandlingConfig.bad.storeResultbooleanWhether to persist failing records
categoriesResultHandlingConfig.bad.sampleOnlybooleanStore only sample records

Note For Pushdown policies, the metadata template is not required.

Data Plane Versions Earlier Than v26.3.0 (Backward Compatibility)

Data planes running versions earlier than v26.3.0 do not support templated persistence paths.

Requirements

  • persistenceFolderPrefix must be used
  • categoriesPersistenceConfig is not supported
  • persistentPathConfig is not supported

Request Body

Bash
Copy

Optional: Check Data Plane Support for Templated Persistence via API

If you need to determine whether a data plane supports templated persistence programmatically, call the Get data plane features API: GET /analytics-pipelines/{id}/featuresEnabled

For more information, see Determine Data Plane Feature Support.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard