Skip to main content
Create Global Router
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/3/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>",
    "entityLabelMatcher": {},
    "entityLabels": {},
    "entityType": "ENTITY_TYPE_UNSPECIFIED",
    "fallback": [
      {
        "connectorId": "<string>",
        "customDetails": {},
        "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": {},
            "presetId": "<string>"
          }
        ]
      }
    ],
    "updateTime": "2023-11-07T05:31:56Z"
  }
}
EOF
{
  "router": {
    "createTime": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "entityLabelMatcher": {},
    "entityLabels": {},
    "entityType": "ENTITY_TYPE_UNSPECIFIED",
    "fallback": [
      {
        "connectorId": "<string>",
        "customDetails": {},
        "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": {},
            "presetId": "<string>"
          }
        ]
      }
    ],
    "updateTime": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Request to create a global router

router
Global Router · object

Defines a set of pre-configured routing rules for directing notifications

Response

200 - application/json

Response which contains a created global router

router
Global Router · object

Defines a set of pre-configured routing rules for directing notifications