RoutingPolicies

RoutingPolicies - Create

Creates a new Routing Policy.

POST

https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RoutingPolicies

Parameters

Field
Label in UI
Type
Description

catch_all

Catch All

String

It is the default Repo. If none of the routing criteria matches then the default repo is selected. Mandatory Field

policy_name

Policy Name

String

Routing Policy name. Mandatory Field

routing_criteria

Routing Criteria

[json]

This field can be an empty List [] if Routing criteria doesn't need to be defined. See details below.

chevron-rightRouting criteria details (expand)hashtag

To define routing criteria, you must provide the following parameters:

  • category: Value can be "simple" or "type_based".

  • operation: Value must be "Equals".

  • prefix: Value can be "true" or "false". Mandatory only when category = "type_based".

  • event_key: Event id. Mandatory only when category = "simple".

  • source_key: Source id.

  • type: Value can only be "ip" or "string" or "num". Mandatory only when category = "type_based".

Request Example

{
    "data": {
        "catch_all": "default",
        "routing_criteria": [
            {
                "repo": "_logpoint",
                "drop": "store",
                "type": "KeyPresent",
                "key": "aa",
                "value": ""
            },
            {
                "repo": "",
                "drop": "store",
                "type": "KeyPresentValueMatches",
                "key": "hh",
                "value": "oo"
            }
        ],
        "policy_name": "testPolicy"
    }
}

Success Response

RoutingPolicies - Edit

Edits the Routing Policy with given ID.

PUT

Parameters

Field
Label in UI
Type
Description

policy_name

Policy Name

String

Routing Policy name. Mandatory Field

catch_all

Catch All

String

It is the default repo. If none of the routing criteria is matched then the default repo is selected. Mandatory Field

id

-

String

Routing Policy id. Mandatory Field

routing_criteria

Routing Criteria

[json]

This field can be an empty List [] if Routing criteria doesn't need to be defined. See routing criteria details in the Create section.

Request Example

Success Response

RoutingPolicies - Get

Fetches a Routing Policy with given ID.

GET

Parameter

Field
Label in UI
Type
Description

id

-

String

Routing Policy id.

Success Response

RoutingPolicies - List

Lists all Routing Policies.

GET

Success Response

RoutingPolicies - Trash

Deletes the Routing Policy with given ID.

DELETE

Parameter

Field
Label in UI
Type
Description

id

-

String

Routing Policy id. Mandatory Field

Success Response

Last updated

Was this helpful?