curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/notifications/notification-center/v1/routers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"router": {
"createTime": "2023-11-07T05:31:56Z",
"description": "<string>",
"disabled": true,
"entityLabels": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"fallback": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
],
"fallbackTargets": [
{
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"target": {
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
}
],
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Router",
"routingLabels": {
"environment": "<string>",
"service": "<string>",
"team": "<string>"
},
"rules": [
{
"condition": "alertDef.priority == 'P3'",
"customDetails": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"name": "<string>",
"targets": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
]
}
],
"updateTime": "2023-11-07T05:31:56Z"
}
}
EOF{
"router": {
"createTime": "2023-11-07T05:31:56Z",
"description": "<string>",
"disabled": true,
"entityLabels": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"fallback": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
],
"fallbackTargets": [
{
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"target": {
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
}
],
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Router",
"routingLabels": {
"environment": "<string>",
"service": "<string>",
"team": "<string>"
},
"rules": [
{
"condition": "alertDef.priority == 'P3'",
"customDetails": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"name": "<string>",
"targets": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
]
}
],
"updateTime": "2023-11-07T05:31:56Z"
}
}No description available
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/notifications/notification-center/v1/routers \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"router": {
"createTime": "2023-11-07T05:31:56Z",
"description": "<string>",
"disabled": true,
"entityLabels": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"fallback": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
],
"fallbackTargets": [
{
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"target": {
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
}
],
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Router",
"routingLabels": {
"environment": "<string>",
"service": "<string>",
"team": "<string>"
},
"rules": [
{
"condition": "alertDef.priority == 'P3'",
"customDetails": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"name": "<string>",
"targets": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
]
}
],
"updateTime": "2023-11-07T05:31:56Z"
}
}
EOF{
"router": {
"createTime": "2023-11-07T05:31:56Z",
"description": "<string>",
"disabled": true,
"entityLabels": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"fallback": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
],
"fallbackTargets": [
{
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"target": {
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
}
],
"id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
"name": "My Router",
"routingLabels": {
"environment": "<string>",
"service": "<string>",
"team": "<string>"
},
"rules": [
{
"condition": "alertDef.priority == 'P3'",
"customDetails": {},
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"name": "<string>",
"targets": [
{
"connectorId": "<string>",
"customDetails": {},
"id": "d4b56246-64bb-4714-a8bd-97c999f1d801",
"presetId": "<string>"
}
]
}
],
"updateTime": "2023-11-07T05:31:56Z"
}
}API key authentication
Request which updates an existing global router
Defines a set of pre-configured routing rules for directing notifications
Show child attributes
Response which contains an updated global router
Defines a set of pre-configured routing rules for directing notifications
Show child attributes
Was this page helpful?