curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/3/dataplans/policies/v1/atomicOverwriteLogPolicies \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"policies": [
{
"logRules": {
"severities": [
"SEVERITY_UNSPECIFIED"
]
},
"policy": {
"description": "My Policy Description",
"name": "My Policy",
"priority": "PRIORITY_TYPE_UNSPECIFIED",
"applicationRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"archiveRetention": {
"id": "<string>"
},
"disabled": true,
"subsystemRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
}
}
}
]
}
'{
"createResponses": [
{
"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"
}
}
]
}No description available
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/3/dataplans/policies/v1/atomicOverwriteLogPolicies \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"policies": [
{
"logRules": {
"severities": [
"SEVERITY_UNSPECIFIED"
]
},
"policy": {
"description": "My Policy Description",
"name": "My Policy",
"priority": "PRIORITY_TYPE_UNSPECIFIED",
"applicationRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"archiveRetention": {
"id": "<string>"
},
"disabled": true,
"subsystemRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
}
}
}
]
}
'{
"createResponses": [
{
"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"
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt
Use this file to discover all available pages before exploring further.
API key authentication
In an atomic operation delete all existing log policies and create the provided list by order.
Show child attributes
This data structue is obtained when overwriting log policies atomically.
Show child attributes
Was this page helpful?