curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/dataplans/span-policies/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"policies": [
{
"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,
"priorityOverride": {
"quotaBased": {
"usageTiers": [
{
"dailyQuotaPercentage": 80,
"priority": "PRIORITY_TYPE_UNSPECIFIED"
}
]
}
},
"subsystemRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"targets": [
{
"dataset": "dataset1"
}
]
},
"spanRules": {
"actionRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"serviceRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"tagRules": [
{
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
"tagName": "tag_name",
"tagValue": "tag_value"
}
]
}
}
]
}
'{
"createResponses": [
{
"policy": {
"companyId": 1234,
"deleted": false,
"enabled": true,
"id": "policy_id",
"logRules": {
"severities": [
"SEVERITY_UNSPECIFIED"
],
"dpxlExpression": "<string>"
},
"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",
"priorityOverride": {
"quotaBased": {
"usageTiers": [
{
"dailyQuotaPercentage": 80,
"priority": "PRIORITY_TYPE_UNSPECIFIED"
}
]
}
},
"priorityOverrideStatus": {
"quotaBased": {
"currentPriority": "PRIORITY_TYPE_UNSPECIFIED",
"currentUsage": 123,
"dailyLimit": 123
}
},
"subsystemRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"targets": [
{
"dataset": "dataset1"
}
],
"updatedAt": "2021-01-01T00:00:00.000Z"
}
}
]
}No description available
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/dataplans/span-policies/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"policies": [
{
"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,
"priorityOverride": {
"quotaBased": {
"usageTiers": [
{
"dailyQuotaPercentage": 80,
"priority": "PRIORITY_TYPE_UNSPECIFIED"
}
]
}
},
"subsystemRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"targets": [
{
"dataset": "dataset1"
}
]
},
"spanRules": {
"actionRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"serviceRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"tagRules": [
{
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
"tagName": "tag_name",
"tagValue": "tag_value"
}
]
}
}
]
}
'{
"createResponses": [
{
"policy": {
"companyId": 1234,
"deleted": false,
"enabled": true,
"id": "policy_id",
"logRules": {
"severities": [
"SEVERITY_UNSPECIFIED"
],
"dpxlExpression": "<string>"
},
"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",
"priorityOverride": {
"quotaBased": {
"usageTiers": [
{
"dailyQuotaPercentage": 80,
"priority": "PRIORITY_TYPE_UNSPECIFIED"
}
]
}
},
"priorityOverrideStatus": {
"quotaBased": {
"currentPriority": "PRIORITY_TYPE_UNSPECIFIED",
"currentUsage": 123,
"dailyLimit": 123
}
},
"subsystemRule": {
"name": "<string>",
"ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED"
},
"targets": [
{
"dataset": "dataset1"
}
],
"updatedAt": "2021-01-01T00:00:00.000Z"
}
}
]
}API key authentication
In an atomic operation delete all existing span policies and create the provided list by order.
Show child attributes
This data structue is obtained when overwriting span policies atomically.
Show child attributes
Was this page helpful?