Creates a new Routing Policy.
POST
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RoutingPolicies
Parameter
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.
|
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
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
Edits the Routing Policy with given ID.
PUT
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RoutingPolicies/{id}
Parameter
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.
|
Request Example
{
"data": {
"routing_criteria": [
{
"repo": "_logpoint",
"drop": "store",
"type": "KeyPresent",
"key": "aa",
"value": ""
},
{
"repo": "",
"drop": "store",
"type": "KeyPresentValueMatches",
"key": "hh",
"value": "oo"
}
],
"policy_name": "testPolicy",
"catch_all": "default"
}
}
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
Fetches a Routing Policy with given ID.
GET
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RoutingPolicies/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
Routing Policy id . |
Success Response
{
"routing_criteria": [
{
"type": "KeyPresent",
"key": "aa",
"value": "",
"repo": "_logpoint",
"drop": "store"
},
{
"type": "KeyPresentValueMatches",
"key": "hh",
"value": "oo",
"repo": "",
"drop": "store"
}
],
"policy_name": "testPolicy",
"catch_all": "default",
"id": "574fb123d8aaa4625bfe2d23"
}
Lists all Routing Policies.
GET
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RoutingPolicies
Success Response
[
{
"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",
"id": "574fb123d8aaa4625bfe2d23"
}
]
Deletes the Routing Policy with given ID.
DELETE
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RoutingPolicies/{id}
Parameter
Field |
Label in UI |
Type |
Description |
|---|---|---|---|
id |
- |
String |
Routing Policy id . Mandatory Field |
Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}
We are glad this guide helped.
Please don't include any personal information in your comment
Contact Support