Skip to main content
Get Policy by ID
curl --request GET \
  --url https://api.coralogix.com/mgmt/openapi/latest/dataplans/policies/v1/{id} \
  --header 'Authorization: <api-key>'
{
  "policy": {
    "companyId": 1234,
    "deleted": false,
    "enabled": true,
    "id": "policy_id",
    "name": "My Policy",
    "order": 1,
    "priority": "PRIORITY_TYPE_UNSPECIFIED",
    "applicationRule": {
      "name": "<string>",
      "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
    },
    "archiveRetention": {
      "id": "<string>"
    },
    "createdAt": "2021-01-01T00:00:00.000Z",
    "description": "My Policy Description",
    "logRules": {
      "severities": [
        "SEVERITY_UNSPECIFIED"
      ]
    },
    "subsystemRule": {
      "name": "<string>",
      "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
    },
    "updatedAt": "2021-01-01T00:00:00.000Z"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required
Example:

"id"

Response

This data structue is obtained when retrieving a policy by its ID.

policy
Policy · object

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