Skip to main content
You are viewing v3 of the Coralogix API. v5 is the current version. Go to the v5 reference

Update Policy

PUThttps://api.coralogix.com/mgmt/openapi/3/dataplans/policies/v1

No description available

Authorizations

Authorizationstringheaderrequired
API key authentication

Request

Body

application/json
    oneOf
    description#string
    Example: My Policy Description
    enabled#boolean
    Example: true
    id#stringrequired
    Example: policy_id

    Log rules for a policy.

    name#string
    Example: My Policy
    priority#quota.v1.Priority

    Possible values: [PRIORITY_TYPE_UNSPECIFIED, PRIORITY_TYPE_BLOCK, PRIORITY_TYPE_LOW, PRIORITY_TYPE_MEDIUM, PRIORITY_TYPE_HIGH]

Response

application/json

This data structue is obtained when updating a policy.

    policy#objectrequired

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

    oneOf
    policy.companyId#int32required
    Example: 1234
    policy.createdAt#string
    Example: 2021-01-01T00:00:00.000Z
    policy.deleted#booleanrequired
    Example: false
    policy.description#string
    Example: My Policy Description
    policy.enabled#booleanrequired
    Example: true
    policy.id#stringrequired
    Example: policy_id

    Log rules for a policy.

    policy.name#stringrequired
    Example: My Policy
    policy.order#int32required
    Example: 1
    policy.priority#quota.v1.Priorityrequired

    Possible values: [PRIORITY_TYPE_UNSPECIFIED, PRIORITY_TYPE_BLOCK, PRIORITY_TYPE_LOW, PRIORITY_TYPE_MEDIUM, PRIORITY_TYPE_HIGH]

    policy.updatedAt#string
    Example: 2021-01-01T00:00:00.000Z